scss: unify code between remove/zebra subblocks (#45369)

This commit is contained in:
Frédéric Péters 2021-02-19 10:08:44 +01:00
parent 5854643fc6
commit 223b8a1b7d
1 changed files with 4 additions and 2 deletions

View File

@ -753,6 +753,7 @@ div.section.foldable {
.wcs-block-with-remove-button {
.BlockSubWidget {
position: relative;
@include clearfix();
}
.remove-button {
position: absolute;
@ -770,11 +771,12 @@ div.section.foldable {
}
.pk-blocks-zebra {
// add a gray background for even numbered blocks, but that means odd
// childs when the first child is an error.
.BlockSubWidget {
position: relative;
@include clearfix();
}
// add a gray background for even numbered blocks, but that means odd
// childs when the first child is an error.
.error ~ .BlockSubWidget:nth-child(odd),
.BlockSubWidget:first-child ~ .BlockSubWidget:nth-child(even) {
background: hsla(0, 0%, 0%, 0.05);