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