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