git ssb

30+

cel / git-ssb-web



Tree: 126b1bb2d5440631bb06f7e3ad4448677d202031

Files: 126b1bb2d5440631bb06f7e3ad4448677d202031 / static / styles.css

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

Built with git-ssb-web