article block: organise styles by core block
This commit is contained in:
12
resources/views/blocks/article/css/_gallery.scss
Normal file
12
resources/views/blocks/article/css/_gallery.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
@use "sass:math";
|
||||
|
||||
@use "../../../../css/global/variables/breakpoints";
|
||||
@use "../../../../css/global/variables/spacing";
|
||||
|
||||
.wp-block-badegg-article {
|
||||
.wp-block-gallery {
|
||||
@for $i from 2 through 8 {
|
||||
&.columns-#{$i} > * { width: calc(math.div(1, $i) * 100% - (spacing.$gap - math.div(spacing.$gap, $i))); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user