Created
September 3, 2015 13:32
-
-
Save asvny/a55a40689c3e703db00d 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) | |
// ---- | |
$breakpoints: ( | |
small: 320px, | |
medium: 600px, | |
large: 768px | |
); | |
// Respond-To Mixin | |
@mixin respond-to($breakpoint) { | |
@if map-has-key($breakpoints, $breakpoint) { | |
$value: map-get($breakpoints, $breakpoint); | |
@media screen and (min-width: $value) { | |
@content; | |
} | |
} | |
@warn "Unknown `#{$breakpoint}` in $breakpoints"; | |
} | |
.m-tabs { | |
background-color: #f2f2f2; | |
@include respond-to(medium) { | |
background-color: #666; | |
} | |
} | |
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
.m-tabs { | |
background-color: #f2f2f2; | |
} | |
@media screen and (min-width: 600px) { | |
.m-tabs { | |
background-color: #666; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment