Created
May 13, 2015 16:33
-
-
Save una/e520c8ce9d900701b42f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
<ul class="icons"> | |
<li></li></li> | |
</ul> |
This file contains 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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
//////////// BASE STUFF | |
// base breakpoints map | |
$breakpoints: ( | |
'break-1': 26.250em, | |
'break-2': 85.375em | |
); | |
@mixin breakpoint($name, $map: $breakpoints) { | |
@if not map-has-key($map, $name) { | |
@warn "Invalid breakpoint `#{$name}`."; | |
} | |
@else { | |
@media (min-width: map-get($map, $name)) { | |
@content; | |
} | |
} | |
} | |
//////////// BETA STUFF | |
// breakpoints specific to beta | |
$bp--beta: ( | |
'1-col': 16em, | |
); | |
.item { | |
@include breakpoint('break-1') { | |
color: blue; | |
} | |
} | |
.item2 { | |
@include breakpoint('1-col', $bp--beta) { | |
df:sdf | |
} | |
} |
This file contains 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
@media (min-width: 26.25em) { | |
.item { | |
color: blue; | |
} | |
} | |
@media (min-width: 16em) { | |
.item2 { | |
df: sdf; | |
} | |
} |
This file contains 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
<ul class="icons"> | |
<li></li></li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment