Debian Codegraph @

src/pydata_sphinx_theme/assets/styles/sections/_skip-link.scss

raw
1 /***
2 * Rules for the UX/UI of skip navigation link btn.
3 * It's only visible to people
4 * navigating with keyboard for accessibility purposes
5 * ref: https://www.youtube.com/watch?v=VUR0I5mqq7I
6 ***/
7
8 .skip-link {
9 position: fixed;
10 top: 0;
11 left: 0;
12 right: 0;
13 text-align: center;
14 background-color: var(--pst-color-warning);
15 padding: 0.5rem;
16 z-index: $zindex-modal;
17 border-bottom: 1px solid var(--pst-color-border);
18
19 // This shows / hides the button
20 transform: translateY(-100%);
21 transition: transform 150ms ease-in-out;
22
23 &:focus-within {
24 transform: translateY(0%);
25 }
26
27 a {
28 // Ensure we are using a WCAG conformant colour
29 color: var(--pst-color-warning-text) !important;
30
31 &:focus-visible {
32 // use color with sufficient contrast
33 outline-color: $foundation-black;
34 }
35 }
36 }