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