diff options
| author | Volpeon <git@volpeon.ink> | 2024-11-21 21:39:34 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-11-21 21:39:34 +0100 |
| commit | df42f092ba352edf0743f26e6bf7bb009abd6ceb (patch) | |
| tree | 2315f5c16e95f4763caa1b71d709b6c6a908aa21 | |
| parent | Fix (diff) | |
| download | iro-design-df42f092ba352edf0743f26e6bf7bb009abd6ceb.tar.gz iro-design-df42f092ba352edf0743f26e6bf7bb009abd6ceb.tar.bz2 iro-design-df42f092ba352edf0743f26e6bf7bb009abd6ceb.zip | |
Add u-sr-only
| -rw-r--r-- | src/_utils.scss | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/_utils.scss b/src/_utils.scss index 4fb122a..bd92454 100644 --- a/src/_utils.scss +++ b/src/_utils.scss | |||
| @@ -305,4 +305,16 @@ $-sizes: ( | |||
| 305 | content: ''; | 305 | content: ''; |
| 306 | } | 306 | } |
| 307 | } | 307 | } |
| 308 | |||
| 309 | @include bem.utility('sr-only') { | ||
| 310 | position: absolute; | ||
| 311 | width: 1px; | ||
| 312 | height: 1px; | ||
| 313 | padding: 0; | ||
| 314 | margin: -1px; | ||
| 315 | overflow: hidden; | ||
| 316 | clip-path: inset(50%); | ||
| 317 | white-space: nowrap; | ||
| 318 | border: 0; | ||
| 319 | } | ||
| 308 | } | 320 | } |
