Skip to content

Commit bf8c159

Browse files
authored
fix(grid): very compact variation specificity and alignment
* Fix very compact grid The padding rules weren't specific enough, so they were always overruled by those of compact grid. Also padding-right on line 1912 contained an incorrect placeholder. * Add left and right padding to very compact grid row
1 parent 83e45ad commit bf8c159

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/definitions/collections/grid.less

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,25 +1906,27 @@ each(@colors, {
19061906
Very compact
19071907
-----------------*/
19081908

1909-
.ui[class*="very compact"].grid > .column:not(.row),
1910-
.ui[class*="very compact"].grid > .row > .column {
1909+
.ui.ui.ui[class*="very compact"].grid > .column:not(.row),
1910+
.ui.ui.ui[class*="very compact"].grid > .row > .column {
19111911
padding-left: (@veryCompactGutterWidth / 2);
1912-
padding-right: (@compactGutterWidth / 2);
1912+
padding-right: (@veryCompactGutterWidth / 2);
19131913
}
19141914

1915-
.ui[class*="very compact"].grid > * {
1915+
.ui.ui.ui[class*="very compact"].grid > * {
19161916
padding-left: (@veryCompactGutterWidth / 2);
19171917
padding-right: (@veryCompactGutterWidth / 2);
19181918
}
19191919

19201920
/* Row */
1921-
.ui[class*="very compact"].grid > .row {
1921+
.ui.ui.ui[class*="very compact"].grid > .row {
19221922
padding-top: (@veryCompactRowSpacing / 2);
19231923
padding-bottom: (@veryCompactRowSpacing / 2);
1924+
padding-left: (@veryCompactGutterWidth * 1.5);
1925+
padding-right: (@veryCompactGutterWidth * 1.5);
19241926
}
19251927

19261928
/* Columns */
1927-
.ui[class*="very compact"].grid > .column:not(.row) {
1929+
.ui.ui.ui[class*="very compact"].grid > .column:not(.row) {
19281930
padding-top: (@veryCompactRowSpacing / 2);
19291931
padding-bottom: (@veryCompactRowSpacing / 2);
19301932
}

0 commit comments

Comments
 (0)