css: add [hidden] rule.

This commit is contained in:
evazion
2021-02-22 01:48:50 -06:00
parent d32501944c
commit b598a11f02

View File

@@ -2,6 +2,14 @@
box-sizing: border-box;
}
/*
* Make sure elements with the HTML5 [hidden] attribute (e.g. <span hidden>blah</span>)
* really are hidden. Otherwise the `display` property can override the [hidden] attribute.
*/
[hidden] {
display: none !important;
}
body {
color: var(--text-color);
background-color: var(--body-background-color);