git ssb

30+

cel / git-ssb-web



Tree: c3fa37e1f770dde1fde438bca606593bb9f3f9ab

Files: c3fa37e1f770dde1fde438bca606593bb9f3f9ab / static / styles.css

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

Built with git-ssb-web