]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
more media query mixins
authorMark Otto <markdotto@gmail.com>
Thu, 18 Sep 2014 04:56:27 +0000 (21:56 -0700)
committerMark Otto <markdotto@gmail.com>
Thu, 18 Sep 2014 04:56:27 +0000 (21:56 -0700)
less/_carousel.less
less/_dropdown.less
less/_forms.less
less/_grid.less
less/_jumbotron.less
less/_modal.less

index 19313ed6ab0431c50d04976eda3b71b0011e3b06..a00d289df610108541ffc66d8fc06f7bd0da5d42 100644 (file)
 
 
 // Scale up controls for tablets and up
-@media screen and (min-width: @screen-sm-min) {
-
+.media-sm({
   // Scale up the controls a smidge
   .carousel-control {
     .icon-prev,
   .carousel-indicators {
     bottom: 20px;
   }
-}
+});
index 6ccd7566cee2351d8ac8c49cdc016c90fe3049e9..a4bd721e40657bd1d7d9bb86739e4593af3340a7 100644 (file)
 //
 // Reiterate per navbar.less and the modified component alignment there.
 
-@media (min-width: @grid-float-breakpoint) {
+.media-sm({
   .navbar-right {
     .dropdown-menu {
       .dropdown-menu-right();
       .dropdown-menu-left();
     }
   }
-}
+});
index 8a9ba01e1b06be12f179df3ca07a2d53d6232099..302216556213e4944dcca942353a9771a9134e72 100644 (file)
@@ -424,7 +424,7 @@ input[type="checkbox"] {
 .form-inline {
 
   // Kick in the inline
-  @media (min-width: @screen-sm-min) {
+  .media-sm({
     // Inline-block all the things for "inline"
     .form-group {
       display: inline-block;
@@ -489,7 +489,7 @@ input[type="checkbox"] {
     .has-feedback .form-control-feedback {
       top: 0;
     }
-  }
+  });
 }
 
 
@@ -525,13 +525,13 @@ input[type="checkbox"] {
 
   // Reset spacing and right align labels, but scope to media queries so that
   // labels on narrow viewports stack the same as a default form example.
-  @media (min-width: @screen-sm-min) {
+  .media-sm({
     .control-label {
       text-align: right;
       margin-bottom: 0;
       padding-top: (@padding-base-vertical + 1); // Default padding plus a border
     }
-  }
+  });
 
   // Validation states
   //
index 9957a44af8393b08d53af49b04ff39039660faee..28dbb9f9709667ce01dadbd54544416fd0db8023 100644 (file)
 // Columns, offsets, pushes, and pulls for the small device range, from phones
 // to tablets.
 
-@media (min-width: @screen-sm-min) {
+.media-sm({
   .make-grid(sm);
-}
+});
 
 
 // Medium grid
 //
 // Columns, offsets, pushes, and pulls for the desktop device range.
 
-@media (min-width: @screen-md-min) {
+.media-md({
   .make-grid(md);
-}
+});
 
 
 // Large grid
 //
 // Columns, offsets, pushes, and pulls for the large desktop device range.
 
-@media (min-width: @screen-lg-min) {
+.media-lg({
   .make-grid(lg);
-}
+});
index 840de26596c1f4c052cf817a7fc3a6a9b7fc8b34..c59690550d35264bc9bca6488a0af833c27ed19d 100644 (file)
@@ -27,7 +27,7 @@
   border-top-color: darken(@jumbotron-bg, 10%);
 }
 
-@media (min-width: @screen-sm-min) {
+.media-sm({
   .jumbotron {
     padding: (@jumbotron-padding * 1.6) 0;
 
@@ -41,4 +41,4 @@
   .jumbotron-heading {
     font-size: (@font-size-base * 4.5);
   }
-}
+});
index 09cef4b31fdc26018ef86438b637fc39c5f59bed..539d0fef2ab8a53bac7de9f52d40f2007b483f01 100644 (file)
 }
 
 // Scale up the modal
-@media (min-width: @screen-sm-min) {
+.media-sm({
   // Automatically set modal's width for larger viewports
   .modal-dialog {
     width: @modal-md;
 
   // Modal sizes
   .modal-sm { width: @modal-sm; }
-}
+});
 
-@media (min-width: @screen-md-min) {
+.media-sm({
   .modal-lg { width: @modal-lg; }
-}
+});