Created
February 16, 2016 16:02
-
-
Save alice-liu/11f930e16ba35afec163 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@import "include-media"; | |
$breakpoints: ( | |
phone: 736px, | |
tablet: 1024px, | |
desktop-large: 1280px | |
); | |
$is-rwd-scoped: false; // Toggle to enable page-scoping | |
@mixin _responsive() { | |
@if $is-rwd-scoped { | |
.adb-rwd & { | |
@content | |
} | |
} | |
@else { | |
@content | |
} | |
} | |
.button { | |
color: red; | |
@include _responsive { | |
@include media('>phone') { | |
color: blue; | |
} | |
} | |
} | |
$is-rwd-scoped: true; | |
.button { | |
color: red; | |
@include _responsive { | |
@include media('>phone') { | |
color: blue; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.button { | |
color: red; | |
} | |
@media (min-width: 737px) { | |
.button { | |
color: blue; | |
} | |
} | |
.button { | |
color: red; | |
} | |
@media (min-width: 737px) { | |
.adb-rwd .button { | |
color: blue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment