scss: unify code between remove/zebra subblocks (#45369)
This commit is contained in:
parent
5854643fc6
commit
223b8a1b7d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue