Skip to content

Instantly share code, notes, and snippets.

@una
Created May 12, 2015 20:16
Show Gist options
  • Save una/4f79f08a5ffbb433ef2b to your computer and use it in GitHub Desktop.
Save una/4f79f08a5ffbb433ef2b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<ul class="icons">
<li></li></li>
</ul>
// ----
// 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($breakpoints, $name)) {
@content;
}
}
}
//////////// BETA STUFF
// breakpoints specific to beta
$bp--beta: (
'break-1': 26.250em,
'break-2': 85.375em
);
.item {
@include breakpoint('break-1') {
color: blue;
}
}
.item2 {
@include breakpoint('break-1', $bp--beta) {
df:sdf
}
}
@media (min-width: 26.25em) {
.item {
color: blue;
}
}
@media (min-width: 26.25em) {
.item2 {
df: sdf;
}
}
<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