Desktop-/mobile-only css classes.

This commit is contained in:
2021-01-02 13:19:16 +01:00
parent dfe89160b1
commit fea81dcd63
2 changed files with 13 additions and 2 deletions

View File

@@ -25,4 +25,16 @@ $desktop-max: 2004px;
@media (min-width: #{$desktop-max + 1px}){
@content;
}
}
.desktop-only {
@include mobile {
display: none;
}
}
.mobile-only {
@include tablet {
display: none;
}
}