]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add legacy breakpoint variables for Foundation 5 to 6 migration #7474
authorGeoff Kimball <geoff@zurb.com>
Fri, 11 Dec 2015 21:21:53 +0000 (13:21 -0800)
committerGeoff Kimball <geoff@zurb.com>
Fri, 11 Dec 2015 21:21:53 +0000 (13:21 -0800)
scss/util/_breakpoint.scss

index 6d57b449b4d80ded4d43cf80d7860a36489f82eb..c6fec75fb8a0ac7cefcf031b0128b58204d7b59f 100644 (file)
@@ -186,3 +186,41 @@ $breakpoint-classes: (small medium large) !default;
     @return nth($values, $i);
   }
 }
+
+// Legacy breakpoint variables
+// These will be removed in 6.2
+$small-up: null;
+$small-only: null;
+$medium-up: null;
+$medium-only: null;
+$large-up: null;
+$large-only: null;
+$xlarge-up: null;
+$xlarge-only: null;
+$xxlarge-up: null;
+$xxlarge-only: null;
+
+@if map-has-key($breakpoints, small) {
+  $small-up: screen;
+  $small-only: screen and #{breakpoint(small only)};
+}
+
+@if map-has-key($breakpoints, medium) {
+  $medium-up: screen and #{breakpoint(medium)};
+  $medium-only: screen and #{breakpoint(medium only)};
+}
+
+@if map-has-key($breakpoints, large) {
+  $large-up: screen and #{breakpoint(large)};
+  $large-only: screen and #{breakpoint(large only)};
+}
+
+@if map-has-key($breakpoints, xlarge) {
+  $xlarge-up: screen and #{breakpoint(xlarge)};
+  $xlarge-only: screen and #{breakpoint(xlarge only)};
+}
+
+@if map-has-key($breakpoints, xxlarge) {
+  $xxlarge-up: screen and #{breakpoint(xxlarge)};
+  $xxlarge-only: screen and #{breakpoint(xxlarge only)};
+}