blob: 65f06d88dcae8ac3e88defba6199682b7610616e (
plain)
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
|
@use "@styles/abstracts/functions" as fun;
@use "@styles/abstracts/mixins" as mix;
/*=========================================================================
>>> TABLE OF CONTENTS:
===========================================================================
1.0 Accessibility
2.0. Alignments
===========================================================================*/
//=========================================================================
// 1.0. Accessibility
//=========================================================================
/* Text meant only for screen readers. */
.screen-reader-text {
width: fun.convert-px(1);
height: fun.convert-px(1);
padding: 0;
position: absolute !important;
overflow: hidden;
border: 0;
clip: rect(1px, 1px, 1px, 1px);
word-break: normal;
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
&:focus {
display: block;
width: auto;
height: auto;
padding: var(--spacing-xs) var(--spacing-sm);
left: var(--spacing-2xs);
top: var(--spacing-xs);
z-index: 100000;
background: var(--color-primary);
box-shadow: fun.convert-px(2) fun.convert-px(2) fun.convert-px(2) 0
var(--color-shadow-dark);
clip: auto !important;
color: var(--color-fg-inverted);
font-size: var(--font-size-md);
font-weight: 600;
}
}
@include mix.motion("reduce") {
* {
animation: none !important;
transition: none !important;
}
}
[data-reduced-motion="true"] {
* {
animation: none !important;
transition: none !important;
}
}
|