aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/stylesheets/responsive/_utils.scss
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-05-15 16:09:29 +0100
committerLouise Crow <louise.crow@gmail.com>2014-05-15 16:09:29 +0100
commit26348ce676f7ebbabcc535b2ecf00f99f8fe85c0 (patch)
tree6034dd656a0f9af152f24d6c491b5e61a7190a7d /app/assets/stylesheets/responsive/_utils.scss
parent851ef575cf3c55a3bb194381497b958c2a3ebf1a (diff)
parentb3fa23047bf96bd6a08273c9491ac1ee3b4a3f80 (diff)
Merge branch 'release/0.18' into wdtk
Diffstat (limited to 'app/assets/stylesheets/responsive/_utils.scss')
-rw-r--r--app/assets/stylesheets/responsive/_utils.scss35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/assets/stylesheets/responsive/_utils.scss b/app/assets/stylesheets/responsive/_utils.scss
new file mode 100644
index 000000000..68884fa7a
--- /dev/null
+++ b/app/assets/stylesheets/responsive/_utils.scss
@@ -0,0 +1,35 @@
+$fix-mqs: false !default;
+
+@mixin respond-min($width) {
+ // If we're outputting for a fixed media query set...
+ @if $fix-mqs {
+ // ...and if we should apply these rules...
+ @if $fix-mqs >= $width {
+ // ...output the content the user gave us.
+ @content;
+ }
+ }
+ @else {
+ // Otherwise, output it using a regular media query
+ @media(min-width: $width) {
+ @content;
+ }
+ }
+}
+
+$ie8: false !default;
+$lte-ie7: false !default;
+
+@mixin ie8 {
+ // Only use this content if we're dealing with IE8
+ @if $ie8 {
+ @content;
+ }
+}
+
+@mixin lte-ie7 {
+ // Only use this content if we're dealing with oldest IE (<= 7)
+ @if $lte-ie7 {
+ @content;
+ }
+}