Skip to content

Commit d8cab82

Browse files
fix (columns): disallow column order from spilling over to nested column blocks
1 parent ef45da5 commit d8cab82

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/block/columns/style.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
margin-right: auto;
1616
}
1717

18+
// Add a 0 specificity style to set the default column order. This is to prevent
19+
// the column order from spilling to nested blocks.
20+
:where(.stk-block-columns) {
21+
@for $i from 1 through 20 {
22+
--stk-col-order-#{ $i }: #{ $i };
23+
}
24+
}
25+
1826
// Column order.
1927
@for $i from 1 through 20 {
2028
.stk-block-column:nth-child(#{ $i }) {

0 commit comments

Comments
 (0)