-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharia.css
More file actions
64 lines (56 loc) · 1.32 KB
/
aria.css
File metadata and controls
64 lines (56 loc) · 1.32 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
/* [aria-label] as tooltip */
[aria-label]::before {
content:attr(aria-label);
position:absolute;
transform:translate(-1rem, -130%);
display:none;
border-radius:3px;
padding:.2rem .5rem;
filter: drop-shadow(0 0 .2em #0008);
background-color:#000;
color:#fff;
font-size:.7rem;
pointer-events:none;
/* add arrow */
border-width:0 0 .7rem 0;
border-color:transparent;
border-style:solid;
background-color: transparent;
background-image:
linear-gradient(#000,#000),
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><path d="M12 21L0 3h24z"/></svg>');
background-repeat: no-repeat, no-repeat;
background-origin: padding-box, border-box;
background-size: 100%, auto 1rem;
background-position: 0 0, bottom 0 left .8rem;
transform:translate(-1rem, -100%);
/**/
}
[aria-label]:focus::before, [aria-label]:hover::before {
display:block;
}
label[aria-label]:focus-within::before {
display:block;
}
/* more */
[aria-controls] {
cursor: pointer;
}
[aria-busy=true] {
cursor: progress;
}
nav a[aria-current] { color:var(--color); } /* parent pages */
nav a[aria-current=page] { font-weight:bold; } /* current page */
/*
sticky footer plugin
main {
background-color:var(--color-bg);
}
[role=contentinfo] {
position:sticky;
z-index:-1;
bottom:0;
left:0;
right:0;
}
*/