Skip to content

Commit 99ffe98

Browse files
Merge branch 'develop' into feat/generate-css-file
2 parents 48f8fac + 887566a commit 99ffe98

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/block/columns/style.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
@for $columns from 2 through 6 {
5656
@for $index from 1 through $columns {
5757
:where(body:not(.wp-admin) .stk-block-column:nth-child(#{ $index }):nth-last-child(#{ $columns - ($index - 1) })) {
58-
// "* 1px" is added to prevent optimizers that remove the "px" unit from "0px" values from destroying calculations.
59-
flex: 1 1 calc(( 100% / #{ $columns } ) - var(--stk-column-gap, 0px) * 1px * #{ $columns - 1 } / #{ $columns }) !important;
58+
flex: 1 1 calc(( 100% / #{ $columns } ) - var(--stk-column-gap, 0px) * #{ $columns - 1 } / #{ $columns }) !important;
6059
}
6160
}
6261
}

src/block/feature-grid/style.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
.stk-block-feature-grid.stk--column-wrap-desktop .stk--flex > .stk-block-column,
44
.stk-block-feature-grid.stk--column-wrap-desktop .stk--flex > * > * > [data-type="stackable/column"] {
5-
// "* 1px" is added to prevent optimizers that remove the "px" unit from "0px" values from destroying calculations.
6-
flex: var(--stk-flex-grow, 1) 1 calc(100% - var(--stk-column-gap, 0px) * 1px * 0 / 1) !important;
5+
flex: var(--stk-flex-grow, 1) 1 calc(100% - var(--stk-column-gap, 0px) * 0 / 1) !important;
76
}

src/block/posts/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
// We need this to make advanced position work.
5151
position: relative;
5252
// Generate a flex basis value based on the number of columns.
53-
flex-basis: calc((100%/var(--stk-columns, 2)) - (var(--stk-column-gap, 16px) * 1px) + ((var(--stk-column-gap, 16px) * 1px)/var(--stk-columns, 2)));
54-
width: calc((100%/var(--stk-columns, 2)) - (var(--stk-column-gap, 16px) * 1px) + ((var(--stk-column-gap, 16px) * 1px)/var(--stk-columns, 2)));
53+
flex-basis: calc((100%/var(--stk-columns, 2)) - (var(--stk-column-gap, 16px)) + (var(--stk-column-gap, 16px)/var(--stk-columns, 2)));
54+
width: calc((100%/var(--stk-columns, 2)) - (var(--stk-column-gap, 16px)) + (var(--stk-column-gap, 16px)/var(--stk-columns, 2)));
5555
overflow: hidden;
5656
// Make the contents occupy entire area.
5757
display: flex;

0 commit comments

Comments
 (0)