-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.a11y.css
More file actions
64 lines (53 loc) · 1.5 KB
/
Copy pathglobal.a11y.css
File metadata and controls
64 lines (53 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*! mCSS v1.4.0 | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES
https://github.com/argyleink/open-props/blob/main/src/props.media.css
https://open-props.style/#media-queries
Can't use var() inside media queries 🤦♂️
https://stackoverflow.com/questions/40722882/css-native-variables-not-working-in-media-queries/47212942#47212942
so breakpoints are not in theme.default.tokens.css
xxs: 240px
xs: 360px
sm: 480px
md: 768px
lg: 1024px
xl: 1440px
xxl: 1920px
*/
/* https://github.com/postcss/postcss-mixins */
/* Example */
/* truncate single line of text and adds … */
@layer global {
/* Unified keyboard focus ring (themable via the --focus-ring-* tokens).
Applies everywhere so keyboard users get one consistent treatment. */
:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
}
/* Skip-to-content link. Place it as the first element in <body>, pointing
at the id of your main content; it stays off-screen until focused. */
.a11y-skipLink {
position: fixed;
z-index: var(--z-top);
inset-block-start: -100vb;
inset-inline-start: 0;
padding: 0.75em 1.25em;
background-color: var(--body-background-color);
color: var(--text-color);
}
.a11y-skipLink:focus {
inset-block-start: 0;
}
/* hide in browser but accessible in screen readers */
.a11y-srOnly {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
}