LibWebView: Properly hide filtered advanced settings
The gap between card groups and their separators would still paint when one of the groups were hidden. We now only add the gap/separator between unhidden groups. We must also add !important to the `hidden` class to ensure it overrides other class rules (it was previously resolving with `display: flex`).
This commit is contained in:
parent
790d5c0489
commit
a3e6335afa
2 changed files with 4 additions and 4 deletions
|
|
@ -67,11 +67,11 @@ header img {
|
|||
margin: 0 8px 16px 8px;
|
||||
}
|
||||
|
||||
.card-group + .card-group {
|
||||
.card-group:not(.hidden) ~ .card-group:not(.hidden) {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.card-separator + .card-separator {
|
||||
.card-separator:not(.hidden) ~ .card-separator:not(.hidden) {
|
||||
border-top: 1px solid var(--border-color);
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ body {
|
|||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
opacity: 0;
|
||||
display: none !important;
|
||||
opacity: 0 !important;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue