gitile.css
1 | :root { |
2 | --blue: #6eaee6; |
3 | --darkblue: #176ECB; |
4 | --lightblue: #a1d9f4; |
5 | --darkwhite: #faf5f0; |
6 | --black: #333; |
7 | --lighterblack: #777; |
8 | --white: #fff; |
9 | --darkgreen: #2cae0e; |
10 | --gray: #ccc; |
11 | --darkerwhite: #eae5e0; |
12 | --lighterred: #fbe9eb; |
13 | --lightergreen: #ecfdf0; |
14 | --lightred: #f9d7dc; |
15 | --lightgreen: #ddfbe6; |
16 | --bordergreen: #b0eab9; |
17 | --borderred: #eac0c9; |
18 | |
19 | /* syntax highlighting */ |
20 | --comment: #777; |
21 | --string: #b22; |
22 | --keyword: #35a; |
23 | --keyword2: #732; |
24 | } |
25 | |
26 | html, body { |
27 | margin: 0; |
28 | padding: 0; |
29 | min-height: 100%; |
30 | background: var(--darkwhite); |
31 | } |
32 | |
33 | body { |
34 | display: flex; |
35 | flex-direction: column; |
36 | color: var(--black); |
37 | height: 100%; |
38 | } |
39 | |
40 | #content { |
41 | flex: 1; |
42 | width: 1200px; |
43 | margin: auto; |
44 | text-align: justify; |
45 | line-height: 1.25em; |
46 | padding: 2em; |
47 | } |
48 | |
49 | header { |
50 | background: var(--blue); |
51 | } |
52 | |
53 | footer { |
54 | background: var(--darkerwhite); |
55 | } |
56 | |
57 | header, footer { |
58 | text-align: center; |
59 | } |
60 | |
61 | a { |
62 | text-decoration: none; |
63 | } |
64 | |
65 | header ul { |
66 | list-style: none; |
67 | margin: 0; |
68 | } |
69 | |
70 | header li { |
71 | display: inline-block; |
72 | } |
73 | |
74 | header li a { |
75 | display: inline-block; |
76 | padding: 1em; |
77 | color: var(--white); |
78 | } |
79 | |
80 | header li a:hover { |
81 | background-color: var(--darkblue); |
82 | } |
83 | |
84 | header li.first { |
85 | margin-right: 2em; |
86 | } |
87 | |
88 | footer a { |
89 | color: var(--darkgreen); |
90 | } |
91 | |
92 | .content { |
93 | display: flex; |
94 | flex-direction: row; |
95 | align-items: center; |
96 | } |
97 | |
98 | .content p:first-child { |
99 | flex: 1; |
100 | } |
101 | |
102 | .content img { |
103 | max-height: 1.5em; |
104 | max-width: 1.5em; |
105 | } |
106 | |
107 | .content p { |
108 | margin: 0; |
109 | } |
110 | |
111 | .content, thead { |
112 | background: var(--darkerwhite); |
113 | padding: 0.5em; |
114 | margin: 0; |
115 | border: 1px solid var(--gray); |
116 | border-bottom: none; |
117 | } |
118 | |
119 | pre, article.formatted-file-content { |
120 | border: 1px solid var(--gray); |
121 | border-top: none; |
122 | padding: 0.5em; |
123 | margin: 0; |
124 | background: var(--white); |
125 | line-height: 1em; |
126 | font-size: 0.85em; |
127 | font-family: monospace, monospace; |
128 | } |
129 | |
130 | .formatted-file-content pre { |
131 | border: 1px solid #ddd; |
132 | box-shadow: 1px 1px 0 #eee; |
133 | overflow: auto; |
134 | } |
135 | |
136 | .formatted-file-content h1 { |
137 | text-align: left; |
138 | border-bottom: 1px solid #ddd; |
139 | } |
140 | |
141 | .formatted-file-content h2 { |
142 | border-bottom: 1px solid #ddd; |
143 | } |
144 | |
145 | article.formatted-file-content { |
146 | font-family: inherit; |
147 | font-size: 0.85em; |
148 | line-height: inherit; |
149 | padding: 1em 5em; |
150 | } |
151 | |
152 | table { |
153 | background: var(--white); |
154 | border-collapse: collapse; |
155 | width: 100%; |
156 | border: 1px solid var(--gray); |
157 | margin-bottom: 1em; |
158 | } |
159 | |
160 | tbody tr { |
161 | transition-duration: 300ms; |
162 | } |
163 | |
164 | tbody tr:hover { |
165 | background: var(--lightblue); |
166 | } |
167 | |
168 | td { |
169 | padding: 0.5em; |
170 | } |
171 | |
172 | table.file-diff, table.file-content { |
173 | margin-bottom: 1em; |
174 | user-select: none; |
175 | } |
176 | |
177 | table.file-diff td, table.file-content td { |
178 | padding: 0; |
179 | line-height: 1em; |
180 | } |
181 | |
182 | table.file-diff .hunk-delim { |
183 | background: #fafafa; |
184 | border-bottom: 1px solid var(--darkerwhite); |
185 | border-top: 1px solid var(--darkerwhite); |
186 | text-align: center; |
187 | } |
188 | |
189 | table.file-diff .hunk-delim td { |
190 | padding: 0.25em; |
191 | } |
192 | |
193 | table.file-diff .diff-no-data { |
194 | background: var(--darkerwhite); |
195 | } |
196 | |
197 | table.file-diff .diff-no-data td { |
198 | padding: 1em; |
199 | user-select: text; |
200 | text-align: center; |
201 | } |
202 | |
203 | table.file-diff td:nth-child(3) { |
204 | font-family: monospace; |
205 | text-align: center; |
206 | } |
207 | |
208 | table.file-diff .diff-line-num, table.file-content .content-line-num { |
209 | background: var(--darkerwhite); |
210 | color: var(--lighterblack); |
211 | font-family: monospace; |
212 | text-align: center; |
213 | border-right: 1px solid var(--gray); |
214 | border-left: 1px solid var(--gray); |
215 | } |
216 | |
217 | table.file-diff .diff-line, table.file-content .content-line { |
218 | border-right: 1px solid var(--gray); |
219 | user-select: text; |
220 | } |
221 | |
222 | table.file-diff pre, table.file-content pre { |
223 | border: none; |
224 | background: none; |
225 | } |
226 | |
227 | table.file-diff .diff-minus, |
228 | table.file-diff .diff-minus:hover { |
229 | background: var(--lighterred); |
230 | border-color: var(--red); |
231 | } |
232 | |
233 | table.file-diff .diff-plus, |
234 | table.file-diff .diff-plus:hover{ |
235 | background: var(--lightergreen); |
236 | } |
237 | |
238 | table.file-diff tr:hover, table.file-content tr:hover { |
239 | background: none; |
240 | } |
241 | |
242 | table.file-diff .diff-minus .diff-line-num { |
243 | background: var(--lightred); |
244 | } |
245 | |
246 | table.file-diff .diff-plus .diff-line-num { |
247 | background: var(--lightgreen); |
248 | } |
249 | |
250 | table.file-diff .diff-minus td { |
251 | border-color: var(--borderred); |
252 | } |
253 | |
254 | table.file-diff .diff-plus td { |
255 | border-color: var(--bordergreen); |
256 | } |
257 | |
258 | p.diff-file-name { |
259 | background: #cccac5; |
260 | margin: 0; |
261 | padding: 0.5em; |
262 | border: 1px solid var(--gray); |
263 | border-bottom: none; |
264 | } |
265 | |
266 | .commit-info, .tag-box { |
267 | border: 1px solid var(--gray); |
268 | margin-top: 1em; |
269 | margin-bottom: 1em; |
270 | padding: 1em; |
271 | display: flex; |
272 | flex-direction: row; |
273 | justify-content: center; |
274 | align-content: center; |
275 | background: var(--white); |
276 | } |
277 | |
278 | .commit-info .commit, .tag-box .tag { |
279 | flex: 1 |
280 | } |
281 | |
282 | .commit-info .message, .tag-box .tag-name { |
283 | font-weight: bold; |
284 | } |
285 | |
286 | .commit-info .author, .commit-info .date, .tag-box .date { |
287 | display: inline-block; |
288 | padding: 0.5em 0; |
289 | } |
290 | |
291 | .tag-box .tag p { |
292 | margin: 0; |
293 | } |
294 | |
295 | .tag-box img { |
296 | margin-right: 0.5em; |
297 | } |
298 | |
299 | .commit-info img { |
300 | max-width: 64px; |
301 | max-height: 64px; |
302 | margin-right: 1em; |
303 | } |
304 | |
305 | .commit-info .commit-id { |
306 | margin-left: 1em; |
307 | border: 1px solid var(--gray); |
308 | border-radius: 10px; |
309 | padding: 0; |
310 | background: var(--darkerwhite); |
311 | height: 2.5em; |
312 | display: flex; |
313 | flex-direction: row; |
314 | align-items: center; |
315 | } |
316 | |
317 | .commit-info .commit-id .short-id { |
318 | background: var(--darkwhite); |
319 | display: inline-block; |
320 | padding: 0.5em; |
321 | border-bottom-left-radius: 10px; |
322 | border-top-left-radius: 10px; |
323 | border-right: 1px solid var(--gray); |
324 | font-family: monospace, monospace; |
325 | font-size: 0.85em; |
326 | } |
327 | |
328 | .commit-info p { |
329 | margin: 0; |
330 | } |
331 | |
332 | .commit-info .commit-id button { |
333 | background: none; |
334 | border: none; |
335 | cursor: pointer; |
336 | } |
337 | |
338 | .commit-info .commit-id img { |
339 | max-width: 1.5em; |
340 | max-height: 1.5em; |
341 | margin-right: 0.3em; |
342 | } |
343 | |
344 | .commit-info .date, .tag-box .date { |
345 | font-style: italic; |
346 | margin-left: 1em; |
347 | } |
348 | |
349 | .commit-info .author::before, .tag-box .author::before { |
350 | content: "Authored by: "; |
351 | } |
352 | |
353 | h1 { |
354 | text-align: center; |
355 | } |
356 | |
357 | code { |
358 | background: var(--darkerwhite); |
359 | display: inline-block; |
360 | padding: 3px; |
361 | font-family: monospace, monospace; |
362 | font-size: 0.85em; |
363 | } |
364 | |
365 | .formatted-file-content pre code { |
366 | font-size: inherit; |
367 | font-family: inherit; |
368 | padding: 0; |
369 | background: none; |
370 | display: block; |
371 | } |
372 | |
373 | .formatted-file-content code { |
374 | background: none; |
375 | padding: 0; |
376 | display: inline; |
377 | } |
378 | |
379 | .clone { |
380 | text-align: right; |
381 | } |
382 | |
383 | .icon-link { |
384 | display: flex; |
385 | flex-direction: row; |
386 | align-content: center; |
387 | } |
388 | |
389 | .icon-link img { |
390 | height: 1em; |
391 | width: 1em; |
392 | margin-right: 0.3em; |
393 | } |
394 | |
395 | .path-box a { |
396 | display: inline-block; |
397 | padding: 0.5em; |
398 | } |
399 | |
400 | .button-row a { |
401 | display: inline-block; |
402 | background: var(--white); |
403 | padding: 0.5em; |
404 | border: 1px solid var(--gray); |
405 | margin: 0.5em; |
406 | } |
407 | |
408 | |
409 | /* syntax highlighting */ |
410 | .syntax-comment { |
411 | color: var(--comment); |
412 | } |
413 | |
414 | .syntax-string { |
415 | color: var(--string); |
416 | } |
417 | |
418 | /* for scheme */ |
419 | .syntax-special { |
420 | color: var(--keyword2); |
421 | font-weight: bold; |
422 | } |
423 | |
424 | .syntax-keyword { |
425 | color: var(--keyword); |
426 | font-weight: bold; |
427 | } |
428 | |
429 | @media screen and (max-width: 1250px) { |
430 | #content { |
431 | width: 100%; |
432 | padding: 0; |
433 | } |
434 | article.formatted-file-content { |
435 | padding: 0.25em; |
436 | } |
437 | } |
438 |