|
7 | 7 | padding: 1.5em !important; |
8 | 8 | } |
9 | 9 |
|
10 | | -[data-theme='dark'] .notion-code { |
| 10 | +.dark-mode .notion-code { |
11 | 11 | background-color: rgba(17, 24, 39, 1); |
12 | 12 | border-color: rgba(55, 65, 81, 1); |
13 | 13 | } |
|
18 | 18 | background: none !important; |
19 | 19 | padding: 0 !important; |
20 | 20 | } |
21 | | -[data-theme='dark'] .notion code { |
| 21 | +.dark-mode .notion code { |
22 | 22 | color: rgba(229, 231, 235, 1); |
23 | 23 | } |
24 | 24 |
|
25 | | -[data-theme='dark'] .notion .notion-inline-code { |
| 25 | +.dark-mode .notion .notion-inline-code { |
26 | 26 | background: rgb(71, 76, 80) !important; |
27 | 27 | color: #ff4081; |
28 | 28 | padding: 0.2em 0.4em !important; |
29 | 29 | } |
30 | 30 |
|
31 | | -.light-mode .notion .notion-inline-code { |
| 31 | +.notion .notion-inline-code { |
32 | 32 | color: #ff4081; |
33 | 33 | background: rgba(127, 122, 107, 0.1) !important; |
34 | 34 | padding: 0.2em 0.4em !important; |
|
42 | 42 | .token.comment { |
43 | 43 | color: #5b9b4c; |
44 | 44 | } |
45 | | -[data-theme='dark'] .token.cdata, |
46 | | -[data-theme='dark'] .token.doctype, |
47 | | -[data-theme='dark'] .token.prolog { |
| 45 | +.dark-mode .token.cdata, |
| 46 | +.dark-mode .token.doctype, |
| 47 | +.dark-mode .token.prolog { |
48 | 48 | color: rgba(209, 213, 219, 1); |
49 | 49 | } |
50 | 50 | .token.punctuation { |
51 | 51 | color: rgba(55, 65, 81, 1); |
52 | 52 | } |
53 | | -[data-theme='dark'] .token.punctuation { |
| 53 | +.dark-mode .token.punctuation { |
54 | 54 | color: rgba(209, 213, 219, 1); |
55 | 55 | } |
56 | 56 | .token.boolean, |
@@ -95,8 +95,8 @@ code[class*='language-'], |
95 | 95 | pre[class*='language-'] { |
96 | 96 | color: rgba(31, 41, 55, 1); |
97 | 97 | } |
98 | | -[data-theme='dark'] code[class*='language-'], |
99 | | -[data-theme='dark'] pre[class*='language-'] { |
| 98 | +.dark-mode code[class*='language-'], |
| 99 | +.dark-mode pre[class*='language-'] { |
100 | 100 | color: rgba(249, 250, 251, 1); |
101 | 101 | } |
102 | 102 | pre::-webkit-scrollbar { |
|
0 commit comments