git ssb

30+

cel / git-ssb-web



Tree: bdbeb9c156a4c8b0e0ecd33e2613564c8491ee66

Files: bdbeb9c156a4c8b0e0ecd33e2613564c8491ee66 / static / styles.css

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

Built with git-ssb-web