Fix min-width/max-width conflict
Opened this issue · 0 comments
cferdinandi commented
// Calculate pixels from ems
@function calc-px($em, $base: 16) {
$em: strip-unit($em);
$base: strip-unit($base);
@if $em == 1px {
@return 1px;
}
@return ($em * $base) * 1px;
}
@media (max-width: (calc-em(calc-px($bp-large) - 1))) { ... }