Created
September 25, 2014 11:32
-
-
Save AMeijerNL/984e95f68f6329d74aba to your computer and use it in GitHub Desktop.
Viewport helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ================================= | |
VIEWPORTS HELPERS | |
================================= */ | |
.show-from { | |
&--mobile { | |
display: none; | |
@include breakpoint($mq-mobile){ | |
display: initial; | |
} | |
} | |
&--tablet { | |
display: none; | |
@include breakpoint($mq-tablet){ | |
display: initial; | |
} | |
} | |
&--destkop { | |
display: none; | |
@include breakpoint($mq-desktop){ | |
display: initial; | |
} | |
} | |
} | |
.show-until { | |
&--mobile { | |
@include breakpoint($mq-mobile){ | |
display: none; | |
} | |
} | |
&--tablet { | |
@include breakpoint($mq-tablet){ | |
display: none; | |
} | |
} | |
&--destkop { | |
@include breakpoint($mq-desktop){ | |
display: none; | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$map: (mobile: $mq-mobile, tablet: $mq-tablet, destkop: $mq-desktop);
.show-from {
@each $key, $value in $map {
&--#{$key} {
display: none;
@include breakpoint(#{$value}){
display: initial;
}
}
}
}
.show-until {
@each $key, $value in $map {
&--#{$key} {
@include breakpoint($mq-mobile){
display: none;
}
}
}
}