-
Notifications
You must be signed in to change notification settings - Fork 2
/
content.js
31 lines (21 loc) · 924 Bytes
/
content.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
// https://www.w3schools.com/css/css3_variables_javascript.asp
const r = document.querySelector(':root');
// text
r.style.setProperty("--ds-color-london-5", "#eeeeee")
r.style.setProperty("--ds-color-london-10", "#eeeeee")
// masthead menu background color
r.style.setProperty("--ds-color-london-20", "#eeeeee")
// special article banner
r.style.setProperty("--ds-color-london-95", "#0d0d0d")
// Share modal
r.style.setProperty('--ds-color-london-100', '#0d0d0d')
// box thingy
r.style.setProperty("--ds-color-los-angeles-95", "transparent")
// anchor hover
r.style.setProperty("--ds-color-chicago-30", "#eeeeee");
// Underlined text and buttons
r.style.setProperty("--ds-color-chicago-45", "#1a2c78");
// if like me you dislike the new serif typeface
r.style.setProperty("--ds-type-system-serif", "EconomistSansOsF")
// anchor active background colour
r.style.setProperty("--ds-color-chicago-95", "#transparent");