Skip to content

Commit c003073

Browse files
Fix width def. Order in dimensions.scss #6840
1 parent 955e019 commit c003073

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

DNN Platform/Skins/Aperture/src/scss/utilities/_dimension.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,15 @@ $sizes: (
2828
max-height: $value;
2929
}
3030
}
31-
@each $breakpoint, $min-width in breakpoints.$breakpoints {
32-
@media (min-width: $min-width) {
31+
}
32+
33+
// Breakpoints must be the outer loop so that a larger breakpoint's rules
34+
// always come later in the stylesheet than a smaller breakpoint's rules.
35+
// Otherwise two !important rules from different breakpoints/sizes that are
36+
// simultaneously active fall back to source order, and the wrong one wins.
37+
@each $breakpoint, $min-width in breakpoints.$breakpoints {
38+
@media (min-width: $min-width) {
39+
@each $key, $value in $sizes {
3340
.aperture-#{$property}-#{$breakpoint}-#{$key} {
3441
@if ($property == 'w') {
3542
width: $value !important;

0 commit comments

Comments
 (0)