git ssb

30+

cel / git-ssb-web



Tree: b1774da6c9e4418f3d04d0e9d7f770345bb7e20a

Files: b1774da6c9e4418f3d04d0e9d7f770345bb7e20a / static / styles.css

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

Built with git-ssb-web