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