Created
March 29, 2016 14:04
-
-
Save wiesson/ce8bfc99995629f7b03c to your computer and use it in GitHub Desktop.
scss mixin test
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
$size-sm: 544px; | |
$size-md: 768px; | |
$size-lg: 992px; | |
$size-xl: 1200px; | |
@mixin sm { | |
@media (min-width: $size-sm) { | |
@content; | |
} | |
} | |
@mixin md { | |
@media (min-width: $size-md) { | |
@content; | |
} | |
} | |
@mixin lg { | |
@media (min-width: $size-lg) { | |
@content; | |
} | |
} | |
@mixin xl { | |
@media (min-width: $size-xl) { | |
@content; | |
} | |
} | |
.container { | |
margin: 0 auto; | |
@include sm { | |
max-width: 576px; | |
} | |
@include md { | |
max-width: 720px; | |
} | |
@include lg { | |
max-width: 940px; | |
} | |
@include xl { | |
max-width: 1140px; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment