breakpoint-sass
Version:
Really Simple Media Queries with Sass
31 lines (29 loc) • 812 B
CSS
/*
* Set min-width/max-width
* if both values are numbers
* $min-max-default-feature : 500px 700px;
*/
@media (min-width: 500px) and (max-width: 700px) {
.foo {
content: "$min-max-default-feature";
content: "@media (min-width: 500px) and (max-width: 700px)";
}
}
@media (min-width: 500px) and (max-width: 700px) {
.foo {
content: "$min-max-default-feature";
content: "@media (min-width: 500px) and (max-width: 700px)";
}
}
@media (min-width: 31.25em) and (max-width: 43.75em) {
.bar {
content: "$min-max-default-feature";
content: "@media (min-width: 31.25em) and (max-width: 43.75em)";
}
}
@media (min-width: 31.25em) and (max-width: 43.75em) {
.bar {
content: "$min-max-default-feature";
content: "@media (min-width: 31.25em) and (max-width: 43.75em)";
}
}