Better screen breakpoint mixins and classes
This commit is contained in:
parent
3c2313252c
commit
6a8f38a182
1 changed files with 42 additions and 2 deletions
|
@ -15,3 +15,43 @@ $breakpoints: (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin from($key) {
|
||||||
|
@media (min-width: map.get($breakpoints, $key)) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin until($key) {
|
||||||
|
@media (max-width: #{map.get($breakpoints, $key) - 1}) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.from.desktop {
|
||||||
|
@include until(desktop) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.from.tablet {
|
||||||
|
@include until(tablet) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.until.tablet {
|
||||||
|
@include from(tablet) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.until.desktop {
|
||||||
|
@include from(desktop) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue