]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Added mixin to handle media queries that span multiple breakpoints
authorDavid Baughman <david.baughman@capitalone.com>
Tue, 25 Aug 2015 19:53:14 +0000 (12:53 -0700)
committerDavid Baughman <david.baughman@capitalone.com>
Tue, 25 Aug 2015 19:53:14 +0000 (12:53 -0700)
scss/mixins/_breakpoints.scss

index 790bb73433ee9dd9ebba954c015537474f5a484f..05de17536535f183389c98a1c4a36b3682977530 100644 (file)
     }
   }
 }
+
+// Media that spans multiple breakpoint widths.
+// Makes the @content apply between the min and max breakpoints
+@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
+  @include media-breakpoint-up($lower, $breakpoints) {
+    @include media-breakpoint-down($upper, $breakpoints) {
+      @content;
+    }
+  }
+}
\ No newline at end of file