1
0
mirror of https://koodu.h-i.works/projects/thebadspace synced 2025-05-06 14:41:02 -05:00

feat: add visually-hidden utility

This commit is contained in:
Zoë 2025-05-02 18:54:51 +02:00
parent 1420d61892
commit d138198305
No known key found for this signature in database
GPG Key ID: B4CA6F5B4034F028
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,4 @@
@import "../global/utilities.css";
@import "../global/colors.css";
@import "../global/forms.css";
@import "../global/typography.css";

View File

@ -0,0 +1,13 @@
/**
* Utilities
*/
.visually-hidden:not(:focus):not(:active) {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}