-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path_a11y.scss
60 lines (54 loc) · 1.22 KB
/
_a11y.scss
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
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute !important;
width: 1px;
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}
.screen-reader-text:focus {
background-color: #fff;
color: #000;
clip: auto !important;
clip-path: none;
display: block;
top: 0;
left: 0;
width: 100%;
height: auto;
padding: 20px 0;
line-height: normal;
text-decoration: none;
z-index: 100000;
text-align: center;
text-transform: uppercase;
font-family: var(--body-alt-font);
/* Above WP toolbar. */
}
/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
outline: 0;
}
/* Setting dark-mode */
@media (prefers-color-scheme: dark) {
// The colors are being changed from the `zuari_dark_mode`
// function in `inc/customizer.php`. This is because it loads
// a <style> tag AFTER all the customizations, thus
// overriding them.
.content__body {
img {
opacity: 0.75;
transition: opacity var(--transition-duration);
}
img:hover {
opacity: 1;
}
p {
line-height: 1.75rem;
}
}
}