Converting from sass to nested vanilla css with layers (#147)
This commit is contained in:
parent
8e611f3a64
commit
57244c3f33
1 changed files with 2687 additions and 2751 deletions
28
assets/css/components/_hidden.css
Normal file
28
assets/css/components/_hidden.css
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* Hidden
|
||||
|
||||
Hide elements from all users. Compare to the visually-hidden component.
|
||||
|
||||
Used for elements which should not be immediately displayed to any user. An
|
||||
example would be a collapsible fieldset that will be expanded with a click
|
||||
from a user.
|
||||
|
||||
For anything you want to hide on page load when JavaScript is enabled, use
|
||||
the `.js-hidden` class. */
|
||||
|
||||
@layer components {
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.js-hidden {
|
||||
html.js & {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.nojs-hidden {
|
||||
html.nojs & {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue