aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Baughman <[email protected]>2015-08-25 12:53:14 -0700
committerDavid Baughman <[email protected]>2015-08-25 12:53:14 -0700
commit026682bf0dc828d8d689cb01e623eb311de0c013 (patch)
treec26357112e820255980fe6b5e241f91504c361ad
parent210e2b8100e0a90e097cd98f1abd7c3bfdc72a8b (diff)
downloadbootstrap-026682bf0dc828d8d689cb01e623eb311de0c013.tar.xz
bootstrap-026682bf0dc828d8d689cb01e623eb311de0c013.zip
Added mixin to handle media queries that span multiple breakpoints
-rw-r--r--scss/mixins/_breakpoints.scss10
1 files changed, 10 insertions, 0 deletions
diff --git a/scss/mixins/_breakpoints.scss b/scss/mixins/_breakpoints.scss
index 790bb7343..05de17536 100644
--- a/scss/mixins/_breakpoints.scss
+++ b/scss/mixins/_breakpoints.scss
@@ -74,3 +74,13 @@
}
}
}
+
+// 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