Add code comment explaining how the CSS selector works for deprecated items
This commit is contained in:
parent
0e240d3232
commit
c60ae4dcf2
1 changed files with 4 additions and 0 deletions
|
|
@ -2656,6 +2656,10 @@ However, it's not needed with smaller screen width because the doc/code block is
|
|||
.deprecated-count {
|
||||
display: none;
|
||||
}
|
||||
/*
|
||||
The `:not(:empty)` is a little trick to not have to add conditions in JS to hide/show the marker.
|
||||
It's entirely based on whether it has content and if the setting is enabled.
|
||||
*/
|
||||
.hide-deprecated-items .deprecated-count:not(:empty) {
|
||||
display: block;
|
||||
margin: 10px 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue