Alters common breakpoint utilities to not overlap at breakpoints which
would cause broken layout at those points.
For #5396
updateLayout() {
let newLayout = 'tablet';
if (window.innerWidth <= 1000) newLayout = 'mobile';
- if (window.innerWidth >= 1400) newLayout = 'desktop';
+ if (window.innerWidth > 1400) newLayout = 'desktop';
if (newLayout === this.lastLayoutType) return;
if (this.onDestroy) {
@media screen and (max-width: $size) { @content; }
}
@mixin larger-than($size) {
- @media screen and (min-width: $size) { @content; }
+ @media screen and (min-width: ($size + 1)) { @content; }
}
@mixin between($min, $max) {
- @media screen and (min-width: $min) and (max-width: $max) { @content; }
+ @media screen and (min-width: ($min + 1)) and (max-width: $max) { @content; }
}
// Padding shorthand using logical operators to better support RTL.