git ssb

30+

cel / git-ssb-web



Tree: bdbcf3382e534954bdeab3f996415d9bc9077a57

Files: bdbcf3382e534954bdeab3f996415d9bc9077a57 / static / styles.css

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

Built with git-ssb-web