scss: include clearfix on blocks zebra rows (forgotten from #45369)

This commit is contained in:
Frédéric Péters 2021-02-19 10:04:30 +01:00
parent b5dac6b505
commit 5854643fc6
1 changed files with 3 additions and 0 deletions

View File

@ -772,6 +772,9 @@ 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 {
@include clearfix();
}
.error ~ .BlockSubWidget:nth-child(odd),
.BlockSubWidget:first-child ~ .BlockSubWidget:nth-child(even) {
background: hsla(0, 0%, 0%, 0.05);