Spaces:
Sleeping
Sleeping
Petr Tsvetkov
commited on
Commit
•
5ff8f6f
1
Parent(s):
f8e5276
Force light theme for HF Spaces
Browse files- head.html +1 -1
- style_overrides.css +58 -148
head.html
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
drawFileList: true,
|
17 |
matching: 'lines',
|
18 |
highlight: true,
|
19 |
-
colorScheme: '
|
20 |
};
|
21 |
var diff2htmlUi = new Diff2HtmlUI(targetElement, diff, configuration);
|
22 |
diff2htmlUi.draw();
|
|
|
16 |
drawFileList: true,
|
17 |
matching: 'lines',
|
18 |
highlight: true,
|
19 |
+
colorScheme: 'light'
|
20 |
};
|
21 |
var diff2htmlUi = new Diff2HtmlUI(targetElement, diff, configuration);
|
22 |
diff2htmlUi.draw();
|
style_overrides.css
CHANGED
@@ -65,171 +65,81 @@
|
|
65 |
}
|
66 |
|
67 |
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
Updated: 2021-05-15
|
75 |
-
|
76 |
-
Outdated base version: https://github.com/primer/github-syntax-light
|
77 |
-
Current colors taken from GitHub's CSS
|
78 |
-
*/
|
79 |
-
.hljs {
|
80 |
-
color: #24292e;
|
81 |
-
background: #fff
|
82 |
-
}
|
83 |
-
|
84 |
-
.hljs-doctag, .hljs-keyword, .hljs-meta .hljs-keyword, .hljs-template-tag, .hljs-template-variable, .hljs-type, .hljs-variable.language_ {
|
85 |
-
color: #d73a49
|
86 |
-
}
|
87 |
-
|
88 |
-
.hljs-title, .hljs-title.class_, .hljs-title.class_.inherited__, .hljs-title.function_ {
|
89 |
-
color: #6f42c1
|
90 |
-
}
|
91 |
-
|
92 |
-
.hljs-attr, .hljs-attribute, .hljs-literal, .hljs-meta, .hljs-number, .hljs-operator, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-id, .hljs-variable {
|
93 |
-
color: #005cc5
|
94 |
-
}
|
95 |
-
|
96 |
-
.hljs-meta .hljs-string, .hljs-regexp, .hljs-string {
|
97 |
-
color: #032f62
|
98 |
-
}
|
99 |
-
|
100 |
-
.hljs-built_in, .hljs-symbol {
|
101 |
-
color: #e36209
|
102 |
-
}
|
103 |
-
|
104 |
-
.hljs-code, .hljs-comment, .hljs-formula {
|
105 |
-
color: #6a737d
|
106 |
-
}
|
107 |
-
|
108 |
-
.hljs-name, .hljs-quote, .hljs-selector-pseudo, .hljs-selector-tag {
|
109 |
-
color: #22863a
|
110 |
-
}
|
111 |
-
|
112 |
-
.hljs-subst {
|
113 |
-
color: #24292e
|
114 |
-
}
|
115 |
-
|
116 |
-
.hljs-section {
|
117 |
-
color: #005cc5;
|
118 |
-
font-weight: 700
|
119 |
-
}
|
120 |
-
|
121 |
-
.hljs-bullet {
|
122 |
-
color: #735c0f
|
123 |
-
}
|
124 |
-
|
125 |
-
.hljs-emphasis {
|
126 |
-
color: #24292e;
|
127 |
-
font-style: italic
|
128 |
-
}
|
129 |
-
|
130 |
-
.hljs-strong {
|
131 |
-
color: #24292e;
|
132 |
-
font-weight: 700
|
133 |
-
}
|
134 |
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
}
|
139 |
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
}
|
144 |
}
|
145 |
|
|
|
|
|
|
|
146 |
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
overflow-x: auto;
|
151 |
-
padding: 1em
|
152 |
-
}
|
153 |
-
|
154 |
-
code.hljs {
|
155 |
-
padding: 3px 5px
|
156 |
-
}
|
157 |
-
|
158 |
-
/*!
|
159 |
-
Theme: GitHub Dark
|
160 |
-
Description: Dark theme as seen on github.com
|
161 |
-
Author: github.com
|
162 |
-
Maintainer: @Hirse
|
163 |
-
Updated: 2021-05-15
|
164 |
-
|
165 |
-
Outdated base version: https://github.com/primer/github-syntax-dark
|
166 |
-
Current colors taken from GitHub's CSS
|
167 |
-
*/
|
168 |
-
.hljs {
|
169 |
-
color: #c9d1d9;
|
170 |
-
background: #0d1117
|
171 |
-
}
|
172 |
-
|
173 |
-
.hljs-doctag, .hljs-keyword, .hljs-meta .hljs-keyword, .hljs-template-tag, .hljs-template-variable, .hljs-type, .hljs-variable.language_ {
|
174 |
-
color: #ff7b72
|
175 |
-
}
|
176 |
-
|
177 |
-
.hljs-title, .hljs-title.class_, .hljs-title.class_.inherited__, .hljs-title.function_ {
|
178 |
-
color: #d2a8ff
|
179 |
-
}
|
180 |
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
}
|
233 |
}
|
234 |
|
235 |
|
|
|
65 |
}
|
66 |
|
67 |
|
68 |
+
/*!
|
69 |
+
Theme: GitHub
|
70 |
+
Description: Light theme as seen on github.com
|
71 |
+
Author: github.com
|
72 |
+
Maintainer: @Hirse
|
73 |
+
Updated: 2021-05-15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
+
Outdated base version: https://github.com/primer/github-syntax-light
|
76 |
+
Current colors taken from GitHub's CSS
|
77 |
+
*/
|
|
|
78 |
|
79 |
+
.hljs {
|
80 |
+
color: #24292e;
|
81 |
+
background: #fff
|
|
|
82 |
}
|
83 |
|
84 |
+
.hljs-doctag, .hljs-keyword, .hljs-meta .hljs-keyword, .hljs-template-tag, .hljs-template-variable, .hljs-type, .hljs-variable.language_ {
|
85 |
+
color: #d73a49
|
86 |
+
}
|
87 |
|
88 |
+
.hljs-title, .hljs-title.class_, .hljs-title.class_.inherited__, .hljs-title.function_ {
|
89 |
+
color: #6f42c1
|
90 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
|
92 |
+
.hljs-attr, .hljs-attribute, .hljs-literal, .hljs-meta, .hljs-number, .hljs-operator, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-id, .hljs-variable {
|
93 |
+
color: #005cc5
|
94 |
+
}
|
95 |
|
96 |
+
.hljs-meta .hljs-string, .hljs-regexp, .hljs-string {
|
97 |
+
color: #032f62
|
98 |
+
}
|
99 |
|
100 |
+
.hljs-built_in, .hljs-symbol {
|
101 |
+
color: #e36209
|
102 |
+
}
|
103 |
|
104 |
+
.hljs-code, .hljs-comment, .hljs-formula {
|
105 |
+
color: #6a737d
|
106 |
+
}
|
107 |
|
108 |
+
.hljs-name, .hljs-quote, .hljs-selector-pseudo, .hljs-selector-tag {
|
109 |
+
color: #22863a
|
110 |
+
}
|
111 |
|
112 |
+
.hljs-subst {
|
113 |
+
color: #24292e
|
114 |
+
}
|
115 |
|
116 |
+
.hljs-section {
|
117 |
+
color: #005cc5;
|
118 |
+
font-weight: 700
|
119 |
+
}
|
120 |
|
121 |
+
.hljs-bullet {
|
122 |
+
color: #735c0f
|
123 |
+
}
|
124 |
|
125 |
+
.hljs-emphasis {
|
126 |
+
color: #24292e;
|
127 |
+
font-style: italic
|
128 |
+
}
|
129 |
|
130 |
+
.hljs-strong {
|
131 |
+
color: #24292e;
|
132 |
+
font-weight: 700
|
133 |
+
}
|
134 |
|
135 |
+
.hljs-addition {
|
136 |
+
color: #22863a;
|
137 |
+
background-color: #f0fff4
|
138 |
+
}
|
139 |
|
140 |
+
.hljs-deletion {
|
141 |
+
color: #b31d28;
|
142 |
+
background-color: #ffeef0
|
|
|
143 |
}
|
144 |
|
145 |
|