Skip to content

Commit

Permalink
Fix notification and stopwatch empty states
Browse files Browse the repository at this point in the history
Previous solution was relying on fomantic selector `.ui.label.hidden` to
hide the elements in their empty state, but this doesn't work any more
with the removal of the `label` class. Instead, introduce a standalone
CSS rule for the `hidden` class, which is universally usable as a single
class.

We can unfortunately not use the existing `hide` class because without the
`!important`, it does not have enough specificity to win against
fomantic's `.ui.menu:not(.vertical) .item {display: flex}` rule.
  • Loading branch information
silverwind committed Feb 9, 2023
1 parent affdd40 commit f569674
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web_src/less/_base.less
Expand Up @@ -1815,6 +1815,11 @@ footer {
}
}

/* same class as used by fomantic ui, but as a standalone selector */
.hidden {
display: none !important;
}

.center:not(.popup) {
text-align: center;
}
Expand Down

0 comments on commit f569674

Please sign in to comment.