(frontend) add sr-only class

add a utility class to hide content visually while keeping it available to sr.

Signed-off-by: Cyril <c.gromoff@gmail.com>
This commit is contained in:
lebaudantoine
2026-01-06 23:08:22 +01:00
committed by aleb_the_flash
parent a71a1fd968
commit 394a1be322

View File

@@ -7,6 +7,18 @@ body,
height: 100%;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
* {
outline: 2px solid transparent;
}