barebones/assets/styles/utils/_responsive.scss

17 lines
348 B
SCSS
Raw Normal View History

2015-10-14 12:10:55 +02:00
@each $breakpoint in $breakpoints {
2019-01-08 11:52:31 +01:00
$key : nth($breakpoint, 1);
$value : nth($breakpoint, 2);
2015-10-14 12:10:55 +02:00
2019-01-08 11:52:31 +01:00
.visible-#{$key} {
@media only screen and #{$value} {
display: block !important;
}
2015-10-14 12:10:55 +02:00
}
2019-01-08 11:52:31 +01:00
.hidden-#{$key} {
@media only screen and #{$value} {
display: none !important;
}
2015-10-14 12:10:55 +02:00
}
}