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