Files: 800afbccfdb2255a0afbc2b0e0008eddd8387374 / static / styles.css
5817 bytesRaw
1 | body { |
2 | margin: 1ex 1em; |
3 | line-height: 1.6; |
4 | background-color: #eee; |
5 | font-family: sans-serif; |
6 | } |
7 | |
8 | header, article { |
9 | width: 45em; |
10 | max-width: 100%; |
11 | min-width: 16em; |
12 | margin: 0 auto; |
13 | } |
14 | |
15 | pre { |
16 | font: 12px/1.45 Consolas, "Liberation Mono", Menlo, Courier, monospace; |
17 | padding: .5em 1.25ex; |
18 | border: 1px solid #ddd; |
19 | background: #f8f8f8; |
20 | border-radius: .5ex; |
21 | } |
22 | |
23 | section code { |
24 | padding: .5ex; |
25 | border-radius: .5ex; |
26 | background-color: #f5f5f5; |
27 | } |
28 | |
29 | pre > code { |
30 | padding: 0; |
31 | background-color: #f8f8f8; |
32 | } |
33 | |
34 | /* header */ |
35 | |
36 | header h1 { |
37 | font-weight: inherit; |
38 | font-size: 1.5em; |
39 | } |
40 | |
41 | header h1 a { |
42 | color: #666; |
43 | } |
44 | |
45 | header h1 sub { |
46 | color: #444; |
47 | font-style: oblique; |
48 | font-size: small; |
49 | } |
50 | |
51 | /* content */ |
52 | |
53 | section { |
54 | background-color: white; |
55 | padding: 1ex 1ex; |
56 | margin-bottom: 1ex; |
57 | border-radius: .5ex; |
58 | border: 1px #ccc; |
59 | border-style: none solid solid none; |
60 | } |
61 | |
62 | section.collapse { |
63 | margin-bottom: 0; |
64 | } |
65 | |
66 | h1, h2, h3, h4, h5, h6 { |
67 | margin: 0; |
68 | } |
69 | |
70 | h3 ~ h4 { |
71 | margin-top: 1em; |
72 | } |
73 | |
74 | a:link, a:visited { |
75 | color: #006eff; |
76 | text-decoration: none; |
77 | } |
78 | a:hover { |
79 | color: #1f8fff; |
80 | } |
81 | |
82 | hr { |
83 | border: 0; |
84 | border-bottom: 1px solid #ddd; |
85 | } |
86 | |
87 | i { |
88 | font-family: Symbola, 'Apple Color Emoji', 'Android Emoji', |
89 | 'Segoe UI Symbol', 'DejaVu Sans', sans-serif; |
90 | font-style: inherit; |
91 | } |
92 | |
93 | /* repo page */ |
94 | |
95 | .repo-title { |
96 | height: 2em; |
97 | } |
98 | |
99 | .repo-title h2 { |
100 | height: 1.2em; |
101 | } |
102 | |
103 | .bgslash { |
104 | color: #888; |
105 | } |
106 | |
107 | .petname h2, |
108 | .petname h3 { |
109 | float: left; |
110 | } |
111 | |
112 | .right-bar { |
113 | float: right; |
114 | display: inline-block; |
115 | } |
116 | |
117 | .repo-title .right-bar { |
118 | margin-top: .25em; |
119 | } |
120 | |
121 | .btn { |
122 | font-size: 1em; |
123 | border-radius: .5ex; |
124 | |
125 | background-color: white; |
126 | border: 1px #ccc; |
127 | border-style: none solid solid none; |
128 | border-radius: .5ex; |
129 | cursor: pointer; |
130 | } |
131 | .btn:hover { |
132 | background-color: #f6f6f6; |
133 | } |
134 | |
135 | .name { |
136 | font-size: inherit; |
137 | margin-left: 1ex; |
138 | width: 20em; |
139 | } |
140 | |
141 | label { |
142 | cursor: pointer; |
143 | } |
144 | |
145 | .name-toggle { |
146 | font-size: 1.3em; |
147 | margin-left: .25ex; |
148 | } |
149 | |
150 | .name-checkbox, |
151 | .toggle, |
152 | .tab-radio { |
153 | position: absolute; |
154 | opacity: 0; |
155 | font-size: 0; |
156 | } |
157 | |
158 | .name-checkbox:checked ~ h2 :last-child, |
159 | .name-checkbox:checked ~ h3, |
160 | .name-checkbox:not(:checked) ~ .name, |
161 | .name-checkbox:not(:checked) ~ .name-btn { |
162 | display: none; |
163 | } |
164 | |
165 | .clone-url { |
166 | font-size: small; |
167 | color: #666; |
168 | padding: .3em 1ex; |
169 | background-color: white; |
170 | border: 1px #ccc; |
171 | border-style: none solid solid none; |
172 | border-radius: .5ex; |
173 | float: right; |
174 | margin: 0; |
175 | max-width: 50%; |
176 | } |
177 | .clone-url:hover { |
178 | background-color: #f6f6f6; |
179 | } |
180 | |
181 | nav { |
182 | margin: .5em 0 1ex 0; |
183 | clear: left; |
184 | } |
185 | |
186 | nav a { |
187 | border-radius: .5ex; |
188 | padding: 0 .5ex; |
189 | display: inline-block; |
190 | margin-right: .5ex; |
191 | } |
192 | nav a:hover { |
193 | color: #1a86ff; |
194 | } |
195 | |
196 | nav a.active { |
197 | text-decoration: underline; |
198 | } |
199 | |
200 | .raw-link { |
201 | float: right; |
202 | display: inline-block; |
203 | } |
204 | |
205 | .header-align { |
206 | margin-top: .25em; |
207 | } |
208 | |
209 | /* files list */ |
210 | |
211 | .files td:first-child { |
212 | padding: 0 1ex; |
213 | } |
214 | |
215 | /* user page */ |
216 | |
217 | .user-id { |
218 | float: right; |
219 | font-weight: normal; |
220 | display: inline-block; |
221 | margin: 0; |
222 | |
223 | } |
224 | |
225 | h2 .user-id { |
226 | font-size: 16px; |
227 | padding-top: .5em; |
228 | } |
229 | |
230 | h3 .user-id { |
231 | font-size: 15px; |
232 | padding-top: .25em; |
233 | } |
234 | |
235 | /* new issue form */ |
236 | |
237 | .wide-input { |
238 | width: 99%; |
239 | display: block; |
240 | font-size: inherit; |
241 | line-height: inherit; |
242 | } |
243 | |
244 | /* issues */ |
245 | |
246 | .issue-state { |
247 | margin-right: .25ex; |
248 | } |
249 | |
250 | .issue-state-open { |
251 | color: #38ae67; |
252 | } |
253 | |
254 | .issue-state-closed { |
255 | color: #d84a38; |
256 | } |
257 | |
258 | /* issue */ |
259 | |
260 | .issue-status { |
261 | padding: .4ex .75ex; |
262 | margin-right: .75ex; |
263 | border-radius: .5ex; |
264 | } |
265 | |
266 | .open { |
267 | background-color: #38ae67; |
268 | color: white; |
269 | font-weight: bold; |
270 | } |
271 | |
272 | .btn.open:hover { |
273 | background-color: #2b9d58; |
274 | } |
275 | |
276 | .closed { |
277 | background-color: #d84a38; |
278 | color: white; |
279 | } |
280 | |
281 | .mention-preview { |
282 | overflow: hidden; |
283 | white-space: nowrap; |
284 | text-overflow: ellipsis; |
285 | } |
286 | |
287 | .tab-links label, |
288 | .tab-links a { |
289 | padding: 1ex; |
290 | color: #333; |
291 | } |
292 | |
293 | #tab1:checked ~ .tab-links .tab1-link, |
294 | #tab2:checked ~ .tab-links .tab2-link { |
295 | text-decoration: underline; |
296 | } |
297 | |
298 | #tab1:not(:checked) ~ .tab1, |
299 | .tab2 { |
300 | display: none; |
301 | } |
302 | |
303 | .tab1, |
304 | #tab2:checked ~ .tab2 { |
305 | display: block; |
306 | } |
307 | |
308 | .preview-text { |
309 | border: 1px solid #c0bdba; |
310 | min-height: 6em; |
311 | margin: .25ex 0; |
312 | padding: .25ex; |
313 | } |
314 | |
315 | .preview-text :first-child { |
316 | margin-top: 0; |
317 | } |
318 | .preview-text :last-child { |
319 | margin-bottom: 0; |
320 | } |
321 | |
322 | .highlight { |
323 | background-color: #ff6; |
324 | padding: .25ex .5ex; |
325 | margin: -.25ex -.5ex; |
326 | } |
327 | |
328 | .item-id { |
329 | color: grey; |
330 | line-height: 2; |
331 | font-size: 10pt; |
332 | } |
333 | |
334 | /* code and diffs */ |
335 | |
336 | .code { |
337 | border-collapse: collapse; |
338 | text-align: left; |
339 | } |
340 | |
341 | .code th { |
342 | font-family: sans-serif; |
343 | font-size: 1.25em; |
344 | padding-bottom: .5ex; |
345 | } |
346 | |
347 | .diff-hunk-header { |
348 | background-color: #eee; |
349 | color: grey; |
350 | } |
351 | |
352 | .code td { |
353 | padding: 0 1ex 0; |
354 | } |
355 | |
356 | :target, |
357 | .code tr:hover { |
358 | background-color: #fff8d2 ; |
359 | } |
360 | |
361 | .code-linenum { |
362 | vertical-align: top; |
363 | text-align: right; |
364 | color: grey; |
365 | border-right: 1px solid rgba(0, 0, 0, 0.06); |
366 | } |
367 | |
368 | .code-linenum a { |
369 | color: inherit; |
370 | } |
371 | |
372 | .code-linenum a:hover { |
373 | color: #9f9999; |
374 | } |
375 | |
376 | .code-text { |
377 | white-space: pre-wrap; |
378 | width: 100%; |
379 | } |
380 | |
381 | .diff-old { background-color: #ffe2dd; } |
382 | .diff-new { background-color: #d1ffd6; } |
383 | |
384 | .code img { |
385 | max-width: 100%; |
386 | } |
387 | |
388 | /* Pull requests */ |
389 | |
390 | #commits:not(:target) ~ #commits-tab, |
391 | #commits:target ~ #files-tab { |
392 | display: none; |
393 | } |
394 | |
395 | #commits:not(:target) + .tab-links #files-link, |
396 | #commits:target + .tab-links #commits-link { |
397 | font-weight: bold; |
398 | } |
399 | |
400 | .compare-commits { |
401 | width: 100%; |
402 | } |
403 | |
404 | .compare-commits .date-info { |
405 | font-weight: normal; |
406 | text-align: left; |
407 | color: #666; |
408 | } |
409 | |
410 | .compare-commits td:first-child { |
411 | padding-left: 2ex; |
412 | } |
413 | |
414 | .pr-tab-links { |
415 | margin: .5em 0 0.25em; |
416 | } |
417 | |
418 | .merge-instructions { |
419 | margin-top: .5em; |
420 | } |
421 | |
422 | #merge-instructions:not(:checked) + h4 .toggle-open, |
423 | #merge-instructions:checked + h4 .toggle-closed, |
424 | #merge-instructions:not(:checked) ~ .contents { |
425 | display: none; |
426 | } |
427 | |
428 | .toggle-link { |
429 | color: #006eff; |
430 | font-weight: normal; |
431 | } |
432 |
Built with git-ssb-web