git ssb

30+

cel / git-ssb-web



Tree: 5c44d260494ea080f8dc3bccd2392b5cf87db845

Files: 5c44d260494ea080f8dc3bccd2392b5cf87db845 / static / styles.css

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

Built with git-ssb-web