-
-
Notifications
You must be signed in to change notification settings - Fork 393
/
Copy pathvar.css.js
61 lines (50 loc) · 909 Bytes
/
var.css.js
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
const css = String.raw;
// Prettier ignore only to keep code indented from level 0.
// prettier-ignore
export default css`
var:hover {
text-decoration: underline;
cursor: pointer;
}
var.respec-hl {
color: var(--color, #000);
background-color: var(--bg-color);
box-shadow: 0 0 0px 2px var(--bg-color);
}
@media (prefers-color-scheme: dark) {
var.respec-hl {
filter: saturate(0.9) brightness(0.9)
}
}
/* highlight colors
https://github.com/w3c/tr-design/issues/152
*/
var.respec-hl-c1 {
--bg-color: #f4d200;
}
var.respec-hl-c2 {
--bg-color: #ff87a2;
}
var.respec-hl-c3 {
--bg-color: #96e885;
}
var.respec-hl-c4 {
--bg-color: #3eeed2;
}
var.respec-hl-c5 {
--bg-color: #eacfb6;
}
var.respec-hl-c6 {
--bg-color: #82ddff;
}
var.respec-hl-c7 {
--bg-color: #ffbcf2;
}
@media print {
var.respec-hl {
background: none;
color: #000;
box-shadow: unset;
}
}
`;