Files: 4aef9079af3e876b9236a27d1cab03026dca7739 / static / styles.css
9705 bytesRaw
1 | body { |
2 | margin: 0; |
3 | line-height: 1.6; |
4 | color: #333; |
5 | background: #fff; |
6 | font-family: 'Source Sans Pro', sans-serif; |
7 | } |
8 | |
9 | * { |
10 | word-break: break-word; |
11 | } |
12 | |
13 | article { |
14 | width: 800px; |
15 | min-width: 60%; |
16 | max-width: 100%; |
17 | margin-left: auto; |
18 | margin-right: auto; |
19 | margin-top: 1.5em; |
20 | } |
21 | |
22 | .code-wrap { |
23 | padding: .5em 1.25ex; |
24 | border: 1px solid #ddd; |
25 | background: #f5f5f5; |
26 | } |
27 | |
28 | .diff-hunk-header, |
29 | .code-linenum, |
30 | .code-text { |
31 | font: .8em Consolas, "Liberation Mono", Menlo, Courier, monospace; |
32 | white-space: pre-wrap; |
33 | } |
34 | |
35 | pre { |
36 | font: .8em Consolas, "Liberation Mono", Menlo, Courier, monospace; |
37 | padding: 1em 1.25ex; |
38 | background: #f6f8fa; |
39 | white-space: pre-wrap; |
40 | font-size: 1em; |
41 | border-radius: 2px; |
42 | } |
43 | |
44 | section code { |
45 | padding: .5ex; |
46 | border-radius: .5ex; |
47 | background-color: #eff1f4; |
48 | } |
49 | |
50 | .code-wrap > code, |
51 | pre > code { |
52 | padding: 0; |
53 | background-color: #f5f5f5; |
54 | } |
55 | |
56 | /* header */ |
57 | |
58 | header { |
59 | width: 100%; |
60 | padding: 0 calc((100% - 800px)*0.5); |
61 | min-height: 56px; |
62 | background-color: #2f8eea; |
63 | box-sizing: border-box; |
64 | display: flex; |
65 | flex-direction: row; |
66 | line-height: 56px; |
67 | justify-content: flex-start; |
68 | align-items: center; |
69 | } |
70 | |
71 | header h1 { |
72 | font-weight: 100; |
73 | font-size: 1.5em; |
74 | display: inline; |
75 | } |
76 | |
77 | header h1 :link, |
78 | header h1 :visited { |
79 | color: #fff; |
80 | } |
81 | |
82 | header h1 sub { |
83 | color: #fff; |
84 | font-style: oblique; |
85 | font-size: small; |
86 | } |
87 | |
88 | header .search-bar { |
89 | margin-left: 1em; |
90 | height: 1.6em; |
91 | max-width: 300px; |
92 | padding: .25em .7em; |
93 | background: #1273d0; |
94 | border-radius: .25em; |
95 | border: none; |
96 | color: #98c4ff; |
97 | } |
98 | |
99 | a.profile-icon { |
100 | margin-left: auto; |
101 | height: 56px; |
102 | display: flex; |
103 | justify-content: center; |
104 | align-items: center; |
105 | } |
106 | img.profile-icon { |
107 | height: 2em; |
108 | width: 2em; |
109 | border-radius: 3px; |
110 | } |
111 | |
112 | /* content */ |
113 | |
114 | section { |
115 | background-color: white; |
116 | margin-bottom: .75em; |
117 | border-radius: 0; |
118 | border-bottom: 1px solid #eee; |
119 | } |
120 | |
121 | section.branch-info, section.files { |
122 | border: none; |
123 | } |
124 | |
125 | .branch-info > form { |
126 | display: flex; |
127 | } |
128 | |
129 | .rev-menu-line { |
130 | flex: 1; |
131 | } |
132 | |
133 | .missing-blobs-warning { |
134 | color: black; |
135 | } |
136 | |
137 | section.readme { |
138 | padding: calc(2em + 36px) 2em 2em; |
139 | border: 1px #dedede solid; |
140 | border-radius: 3px; |
141 | position: relative; |
142 | } |
143 | |
144 | .readme-filename { |
145 | position: absolute; |
146 | left: 0; |
147 | right: 0; |
148 | top: 0; |
149 | height: 36px; |
150 | line-height: 36px; |
151 | background-color: #f5f5f5; |
152 | border-bottom: 1px solid #dedede; |
153 | font-weight: 600; |
154 | padding: 0 10px; |
155 | box-sizing: border-box; |
156 | } |
157 | |
158 | section.collapse { |
159 | margin-bottom: 0; |
160 | } |
161 | |
162 | h1, h2, h3, h4, h5, h6 { |
163 | margin: 0; |
164 | } |
165 | |
166 | h3 ~ h4 { |
167 | margin-top: 1em; |
168 | } |
169 | |
170 | a:link, a:visited { |
171 | color: #1273d0; |
172 | text-decoration: none; |
173 | } |
174 | a:hover { |
175 | text-decoration: underline; |
176 | } |
177 | |
178 | hr { |
179 | border: 0; |
180 | border-bottom: 1px solid #eee; |
181 | } |
182 | |
183 | /* icons */ |
184 | |
185 | i { |
186 | font-family: Symbola, 'Apple Color Emoji', 'Android Emoji', |
187 | 'Segoe UI Symbol', 'DejaVu Sans', sans-serif; |
188 | font-style: inherit; |
189 | word-break: normal; |
190 | } |
191 | |
192 | section img { |
193 | max-width: 100%; |
194 | } |
195 | |
196 | /* repo page */ |
197 | |
198 | .repo-title { |
199 | height: 2em; |
200 | } |
201 | |
202 | .repo-title h2 { |
203 | height: 1.2em; |
204 | } |
205 | |
206 | .repo-author { |
207 | font-weight: normal; |
208 | } |
209 | |
210 | .bgslash { |
211 | color: #888; |
212 | } |
213 | |
214 | .petname h2, |
215 | .petname h3 { |
216 | float: left; |
217 | } |
218 | |
219 | .right-bar { |
220 | float: right; |
221 | display: inline-block; |
222 | } |
223 | |
224 | .right-bar .btn { |
225 | margin-top: 0.2em; |
226 | } |
227 | |
228 | input { border: 1px solid #eee;} |
229 | |
230 | .btn { |
231 | background: #eee; |
232 | border: 1px solid #e7e7e7; |
233 | border-bottom: 2px solid #ccc; |
234 | margin-top: .5em; |
235 | padding: .3em .6em; |
236 | border-radius: .3em; |
237 | cursor: pointer; |
238 | color: #333; |
239 | font-weight: 600; |
240 | } |
241 | |
242 | .btn:hover { |
243 | background: #ddd; |
244 | border: 1px solid #ccc; |
245 | border-bottom: 2px solid #aaa; |
246 | } |
247 | |
248 | .btn.btn-primary { |
249 | background: #0092db; |
250 | border: none; |
251 | color: #fff; |
252 | } |
253 | |
254 | .btn.btn-primary:hover { |
255 | background: #03a7f9; |
256 | } |
257 | |
258 | .name { |
259 | font-size: inherit; |
260 | margin-left: 1ex; |
261 | width: 20em; |
262 | } |
263 | |
264 | label { |
265 | cursor: pointer; |
266 | } |
267 | |
268 | .name-toggle { |
269 | font-size: 1.3em; |
270 | margin-left: .25ex; |
271 | } |
272 | |
273 | .name-checkbox, |
274 | .toggle, |
275 | .tab-radio { |
276 | position: absolute; |
277 | opacity: 0; |
278 | font-size: 0; |
279 | } |
280 | |
281 | .name-checkbox:checked ~ h2 :last-child, |
282 | .name-checkbox:checked ~ h3, |
283 | .name-checkbox:not(:checked) ~ .name, |
284 | .name-checkbox:not(:checked) ~ .name-btn { |
285 | display: none; |
286 | } |
287 | |
288 | .clone-urls { |
289 | position: relative; |
290 | width: 21rem; |
291 | max-width: 100%; |
292 | min-width: 3rem; |
293 | height: 1.5rem; |
294 | } |
295 | |
296 | select.custom-dropdown.clone-url-protocol { |
297 | border-radius: .3rem 0 0 .3rem; |
298 | width: 5rem; |
299 | position: absolute; |
300 | left: 0; |
301 | } |
302 | |
303 | .clone-url-wrapper { |
304 | position: absolute; |
305 | left: 5rem; |
306 | right: 0; |
307 | } |
308 | |
309 | .clone-url { |
310 | font-size: 1rem; |
311 | border: 1px #e1e1e1 solid; |
312 | border-radius: 0 .3rem .3rem 0; |
313 | box-sizing: border-box; |
314 | margin: 0; |
315 | padding: .1rem; |
316 | width: 100%; |
317 | |
318 | background-color: #eaeaea; |
319 | color: #6f6f6f; |
320 | vertical-align: top; |
321 | } |
322 | .clone-url:hover { |
323 | color: #000; |
324 | } |
325 | |
326 | nav { |
327 | margin: 1em 0 1em 0; |
328 | clear: left; |
329 | } |
330 | |
331 | nav a { |
332 | border-radius: .5ex; |
333 | padding: 0 1ex 0 0; |
334 | display: inline-block; |
335 | margin-right: .5ex; |
336 | } |
337 | nav a:hover { |
338 | color: #333; |
339 | } |
340 | |
341 | nav a.active { |
342 | font-weight: bold; |
343 | } |
344 | |
345 | .raw-link { |
346 | float: right; |
347 | display: inline-block; |
348 | } |
349 | |
350 | .header-align { |
351 | margin-top: .25em; |
352 | } |
353 | |
354 | /* files list */ |
355 | |
356 | table.files { |
357 | border: 1px #dedede solid; |
358 | border-radius: 3px; |
359 | } |
360 | |
361 | .files thead td { |
362 | background-color: #f5f5f5; |
363 | border-bottom: 1px solid #dedede; |
364 | padding: 5px 10px; |
365 | box-sizing: border-box; |
366 | } |
367 | |
368 | .files tbody td:first-child { |
369 | padding: 0 1ex; |
370 | width: .7rem; |
371 | } |
372 | |
373 | .files tbody tr:not(:first-child) td { |
374 | border-top: 1px solid #eaeaea; |
375 | } |
376 | |
377 | .files tbody tr:hover { |
378 | background-color: #f5f5f5; |
379 | } |
380 | |
381 | /* user page */ |
382 | |
383 | .user-id { |
384 | float: right; |
385 | font-weight: normal; |
386 | font-size: small; |
387 | display: inline-block; |
388 | margin: 0; |
389 | } |
390 | |
391 | h2 .user-id { |
392 | padding-top: .5em; |
393 | } |
394 | |
395 | h3 .user-id { |
396 | padding-top: .25em; |
397 | } |
398 | |
399 | /* new issue form */ |
400 | |
401 | .wide-input { |
402 | width: 99%; |
403 | display: block; |
404 | font-size: inherit; |
405 | line-height: inherit; |
406 | } |
407 | |
408 | /* issues */ |
409 | |
410 | .issue-state { |
411 | } |
412 | |
413 | .issue-state-open { |
414 | color: #38ae67; |
415 | } |
416 | |
417 | .issue-state-closed { |
418 | color: #d84a38; |
419 | } |
420 | |
421 | /* issue */ |
422 | |
423 | .issue-status { |
424 | margin-right: .75ex; |
425 | border-radius: .2em; |
426 | } |
427 | |
428 | .open { |
429 | font-weight: bold; |
430 | } |
431 | |
432 | .btn.open:hover { |
433 | } |
434 | |
435 | .closed { |
436 | } |
437 | |
438 | .mention-preview { |
439 | overflow: hidden; |
440 | white-space: nowrap; |
441 | text-overflow: ellipsis; |
442 | } |
443 | |
444 | .tab-links label, |
445 | .tab-links a { |
446 | padding: 1ex; |
447 | color: #333; |
448 | } |
449 | |
450 | #tab1:checked ~ .tab-links .tab1-link, |
451 | #tab2:checked ~ .tab-links .tab2-link { |
452 | text-decoration: underline; |
453 | } |
454 | |
455 | #tab1:not(:checked) ~ .tab1, |
456 | .tab2 { |
457 | display: none; |
458 | } |
459 | |
460 | .tab1, |
461 | #tab2:checked ~ .tab2 { |
462 | display: block; |
463 | } |
464 | |
465 | .preview-text { |
466 | border: 1px solid #c0bdba; |
467 | min-height: 6em; |
468 | margin: .25ex 0; |
469 | padding: .25ex; |
470 | } |
471 | |
472 | .preview-text :first-child { |
473 | margin-top: 0; |
474 | } |
475 | .preview-text :last-child { |
476 | margin-bottom: 0; |
477 | } |
478 | |
479 | .highlight { |
480 | background-color: #ff6; |
481 | padding: .25ex .5ex; |
482 | margin: -.25ex -.5ex; |
483 | } |
484 | |
485 | .item-id { |
486 | color: grey; |
487 | line-height: 2; |
488 | font-size: 10pt; |
489 | } |
490 | |
491 | /* code and diffs */ |
492 | |
493 | .code { |
494 | border-collapse: collapse; |
495 | text-align: left; |
496 | width: 100%; |
497 | } |
498 | |
499 | .code th { |
500 | font-family: sans-serif; |
501 | font-size: 1.25em; |
502 | padding-bottom: .5ex; |
503 | } |
504 | |
505 | .diff-info { |
506 | font-family: sans-serif; |
507 | font-size: 1.25em; |
508 | } |
509 | |
510 | .diff-hunk-header { |
511 | background-color: #eee; |
512 | color: grey; |
513 | } |
514 | |
515 | .code td { |
516 | padding: .5ex 1ex .5ex; |
517 | } |
518 | |
519 | :target { |
520 | background-color: #fff8d2 ; |
521 | } |
522 | |
523 | .code-linenum { |
524 | vertical-align: top; |
525 | text-align: right; |
526 | color: grey; |
527 | border-right: 1px solid rgba(0, 0, 0, 0.06); |
528 | white-space: nowrap; |
529 | } |
530 | |
531 | .code-linenum a { |
532 | color: inherit; |
533 | } |
534 | |
535 | .code-linenum a:hover { |
536 | color: #9f9999; |
537 | } |
538 | |
539 | .code-text { |
540 | white-space: pre-wrap; |
541 | width: 100%; |
542 | } |
543 | |
544 | .diff-old { background-color: #ffe2dd; } |
545 | .diff-new { background-color: #d1ffd6; } |
546 | |
547 | .code img { |
548 | max-width: 100%; |
549 | } |
550 | |
551 | /* Pull requests */ |
552 | |
553 | #commits:not(:target) ~ #commits-tab, |
554 | #commits:target ~ #files-tab { |
555 | display: none; |
556 | } |
557 | |
558 | #commits:not(:target) + .tab-links #files-link, |
559 | #commits:target + .tab-links #commits-link { |
560 | font-weight: bold; |
561 | } |
562 | |
563 | .date-info { |
564 | font-weight: normal; |
565 | text-align: left; |
566 | color: #666; |
567 | } |
568 | |
569 | .compare-commits td:first-child { |
570 | padding-left: 2ex; |
571 | white-space: nowrap; |
572 | text-overflow: ellipsis; |
573 | overflow: hidden; |
574 | max-width: 10em; |
575 | } |
576 | |
577 | .commit-title { |
578 | word-break: break-all; |
579 | } |
580 | |
581 | .pr-tab-links { |
582 | margin: .5em 0 0.25em; |
583 | } |
584 | |
585 | .merge-instructions { |
586 | margin-top: .5em; |
587 | } |
588 | |
589 | #merge-instructions:not(:checked) + h4 .toggle-open, |
590 | #merge-instructions:checked + h4 .toggle-closed, |
591 | #merge-instructions:not(:checked) ~ .contents { |
592 | display: none; |
593 | } |
594 | |
595 | .toggle-link { |
596 | color: #006eff; |
597 | font-weight: normal; |
598 | } |
599 | |
600 | .date { font-size: .8em; color: #666;} |
601 | |
602 | .dib { display: inline-block; } |
603 | |
604 | .w-100 { width: 100%; } |
605 | |
606 | .ml4 { margin-left: 2rem; } |
607 | .ml3 { margin-left: 1rem; } |
608 | .ml2 { margin-left: 0.5rem; } |
609 | .ml1 { margin-left: 0.25rem; } |
610 | |
611 | .mr4 { margin-right: 2rem; } |
612 | .mr3 { margin-right: 1rem; } |
613 | .mr2 { margin-right: 0.5rem; } |
614 | .mr1 { margin-right: 0.25rem; } |
615 | |
616 | .mt2 { margin-top: 0.5rem; } |
617 | |
618 | .float-right { float: right; } |
619 | |
620 | .light-grey { color: #909090; } |
621 | |
622 | select.custom-dropdown { |
623 | -webkit-appearance: none; /*REMOVES DEFAULT CHROME & SAFARI STYLE*/ |
624 | -moz-appearance: none; /*REMOVES DEFAULT FIREFOX STYLE*/ |
625 | |
626 | -webkit-border-radius: 1rem; |
627 | border: 1px #e1e1e1 solid; |
628 | border-radius: .3em; |
629 | font-size: 1rem; |
630 | padding: .125rem; |
631 | width: 30%; |
632 | cursor: pointer; |
633 | |
634 | background: #fff url(drop-down-arrow.png) no-repeat right center; |
635 | background-size: 32px 32px; /*TO ACCOUNT FOR @2X IMAGE FOR RETINA */ |
636 | } |
637 | |
638 | /* Fix select padding in Firefox. |
639 | * https://bugzilla.mozilla.org/show_bug.cgi?id=382142 */ |
640 | @-moz-document url-prefix() { |
641 | select.custom-dropdown { |
642 | padding: .05rem; |
643 | } |
644 | } |
645 | |
646 | select.custom-dropdown:active, |
647 | select.custom-dropdown:hover, |
648 | select.custom-dropdown:focus { |
649 | outline: 0; |
650 | } |
651 | |
652 | select.custom-dropdown optgroup { |
653 | margin: 0.5rem; |
654 | } |
655 | |
656 | .fileLocation { |
657 | border: 1px #dedede solid; |
658 | border-bottom: none; |
659 | padding: 0.2rem 0.7rem; |
660 | background-color: #f6f6f6; |
661 | } |
662 |
Built with git-ssb-web