git ssb

30+

cel / git-ssb-web



Tree: 6a237e6dc3f9eb736761e27ad76821151b3d8034

Files: 6a237e6dc3f9eb736761e27ad76821151b3d8034 / static / styles.css

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

Built with git-ssb-web