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
17
assets/css/components/_visually-hidden.css
Normal file
17
assets/css/components/_visually-hidden.css
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/* Visually hidden
|
||||
|
||||
Make an element visually hidden, but accessible to screen readers, etc. */
|
||||
|
||||
@layer components {
|
||||
.visually-hidden {
|
||||
&:not(:focus, :active) {
|
||||
position: absolute;
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
width: 1px;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue