diff options
Diffstat (limited to 'subprojects/docs/src/css')
-rw-r--r-- | subprojects/docs/src/css/custom.css | 2 | ||||
-rw-r--r-- | subprojects/docs/src/css/sr-only.css | 22 |
2 files changed, 24 insertions, 0 deletions
diff --git a/subprojects/docs/src/css/custom.css b/subprojects/docs/src/css/custom.css index 8646ba5f..a359649b 100644 --- a/subprojects/docs/src/css/custom.css +++ b/subprojects/docs/src/css/custom.css | |||
@@ -9,6 +9,8 @@ | |||
9 | @import '@fontsource-variable/jetbrains-mono/wght.css'; | 9 | @import '@fontsource-variable/jetbrains-mono/wght.css'; |
10 | @import '@fontsource-variable/jetbrains-mono/wght-italic.css'; | 10 | @import '@fontsource-variable/jetbrains-mono/wght-italic.css'; |
11 | 11 | ||
12 | @import './sr-only.css'; | ||
13 | |||
12 | :root { | 14 | :root { |
13 | --ifm-font-family-base: 'Open Sans Variable', | 15 | --ifm-font-family-base: 'Open Sans Variable', |
14 | 'Open Sans', | 16 | 'Open Sans', |
diff --git a/subprojects/docs/src/css/sr-only.css b/subprojects/docs/src/css/sr-only.css new file mode 100644 index 00000000..dbd65fd3 --- /dev/null +++ b/subprojects/docs/src/css/sr-only.css | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2010–2021 Kitty Giraudel | ||
3 | * | ||
4 | * SPDX-License-Identifier: MIT | ||
5 | * | ||
6 | * This snippet was copied from | ||
7 | * https://kittygiraudel.com/snippets/sr-only-class/ | ||
8 | */ | ||
9 | |||
10 | .sr-only { | ||
11 | border: 0 !important; | ||
12 | clip: rect(1px, 1px, 1px, 1px) !important; | ||
13 | -webkit-clip-path: inset(50%) !important; | ||
14 | clip-path: inset(50%) !important; | ||
15 | height: 1px !important; | ||
16 | overflow: hidden !important; | ||
17 | margin: -1px !important; | ||
18 | padding: 0 !important; | ||
19 | position: absolute !important; | ||
20 | width: 1px !important; | ||
21 | white-space: nowrap !important; | ||
22 | } | ||