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