repo for single files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
528 B

@mixin font-size( $vmin, $minPx, $maxPx ) {
font-size: 1vmin * $vmin;
$breakpointMax: #{$minPx / $vmin * 100}px;
$breakpointMin: #{$maxPx / $vmin * 100}px;
@media all and ( max-width: $breakpointMax ) and (orientation: portrait),
all and ( max-height: $breakpointMax ) and (orientation: landscape) {
font-size: #{$minPx}px;
}
@media all and ( min-width: $breakpointMin ) and (orientation: portrait),
all and ( min-height: $breakpointMin ) and (orientation: landscape) {
font-size: #{$maxPx}px;
}
}