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