Skip to content

Commit 177996c

Browse files
authored
fix: block styles specificity (#438)
1 parent 93e16c5 commit 177996c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

styles/mixins.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,13 @@
167167
//constructor
168168

169169
@mixin block {
170-
margin-top: $indentL;
171-
padding: 0 0 $indentL;
170+
@include add-specificity(&) {
171+
margin-top: $indentL;
172+
padding: 0 0 $indentL;
172173

173-
&:first-child {
174-
margin-top: var(--pc-first-block-indent, #{$indentXXL});
174+
&:first-child {
175+
margin-top: var(--pc-first-block-indent, #{$indentXXL});
176+
}
175177
}
176178
}
177179

0 commit comments

Comments
 (0)