Blob


1 /*
2 * Copyright (c) 2019 Jerome Kasper <neon.king.fr@gmail.com>
3 * Copyright (c) 2019, 2020 Tracey Emery <tracey@traceyemery.net>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */
18 *, *::after, *::before {
19 box-sizing: border-box;
20 }
22 a {
23 color: #444444;
24 text-decoration: none;
25 }
26 a:hover {
27 color: Gold;
28 text-decoration: none;
29 }
30 body {
31 background-color: #ffffff;
32 color: #000000;
33 margin: 0;
34 padding: 0;
35 font-family: sans-serif;
36 font-size: 16px;
37 }
39 pre {
40 font-family: monospace;
41 margin: 0;
42 }
44 .diff_minus, .diff_submodule {
45 color: magenta;
46 }
47 .diff_plus, .diff_symlink, .diff_author {
48 color: darkcyan;
49 }
50 .diff_chunk_header, .diff_date {
51 background-color: LightSlateGray;
52 color: yellow;
53 }
54 .diff_meta, .diff_executable, .diff_commit {
55 color: green;
56 }
57 .diff_directory {
58 color: blue;
59 }
61 .refs_str {
62 background-color: #243647;
63 color: #ffffff;
64 font-style: italic;
65 white-space: pre;
66 }
67 hr {
68 margin: 0;
69 height: 0;
70 border-top: 1px dotted #444444;
71 }
72 #header {
73 background-image: linear-gradient(to right, White, LightSlateGray);
74 }
75 #header a {
76 color: #ffffff;
77 text-decoration: none;
78 }
79 #header a:hover {
80 color: Gold;
81 text-decoration: none;
82 }
83 #site_path {
84 overflow: auto;
85 width: 100%;
86 background-color: #243647;
87 }
88 #site_link {
89 padding-left: 10px;
90 padding-top: 5px;
91 padding-bottom: 5px;
92 color: #ffffff;
93 overflow: hidden;
94 }
95 #site_link a {
96 color: #ffffff;
97 text-decoration: none;
98 }
99 #got_link {
100 padding-bottom: 10px;
101 padding-top: 10px;
103 #np_wrapper {
104 width: 100%;
105 border-bottom: 1px dotted #444444;
106 background-color: #f5fcfb;
107 overflow: hidden;
109 #nav_more {
110 padding: 5px 0;
111 text-align: center;
113 #nav_prev {
114 padding-left: 10px;
115 padding-top: 5px;
116 padding-bottom: 5px;
117 overflow: visible;
119 #nav_next {
120 padding-right: 10px;
121 padding-top: 5px;
122 padding-bottom: 5px;
123 text-align: right;
124 overflow: hidden;
126 .navs_wrapper {
127 width: 100%;
128 background-color: #ced7e0;
130 .navs {
131 padding-left: 10px;
132 padding-top: 2px;
133 padding-bottom: 2px;
135 @media (min-width: 680px) {
136 .navs {
137 font-size: .8em;
140 #site_owner_wrapper {
141 width: 100%;
142 background-color: LightSlateGray;
143 color: #ffffff;
145 #site_owner {
146 padding-left: 10px;
147 padding-top: 5px;
148 padding-bottom: 5px;
149 margin: 0;
152 #err_content {
153 padding-left: 20px;
154 padding-top: 20px;
155 padding-bottom: 20px;
158 header.subtitle {
159 background-color: LightSlateGray;
161 header.subtitle h2 {
162 margin: 0;
163 padding: 5px 10px;
164 font-size: 1rem;
165 font-weight: normal;
166 color: #ffffff;
169 .brief {
170 display: flex;
171 flex-direction: row;
172 align-items: center;
173 flex-wrap: wrap;
175 .brief p {
176 margin: 0;
178 .brief_meta {
179 flex-grow: 0;
180 flex-shrink: 0;
182 .briefs_age, .briefs_author { display: inline-block; }
183 .briefs_age {
184 padding-left: 10px;
185 padding-top: 5px;
186 padding-bottom: 5px;
187 width: 140px;
189 .briefs_author {
190 padding-top: 5px;
191 padding-bottom: 5px;
192 width: 8.5em;
193 font-style: italic;
195 .briefs_log {
196 padding-left: 10px;
197 padding-right: 10px;
198 padding-top: 5px;
199 padding-bottom: 5px;
200 width: 100%;
203 @media (min-width: 680px) {
204 .brief {
205 flex-wrap: nowrap;
207 .briefs_log {
208 width: auto;
212 .tag_age, .tag_name, .tag_log {
213 display: inline-block;
214 vertical-align: middle;
216 .tag_age {
217 padding-left: 10px;
218 padding-top: 5px;
219 padding-bottom: 5px;
220 width: 140px;
222 .tag_name {
223 width: 8.5em;
224 font-style: italic;
225 padding-top: 5px;
226 padding-bottom: 5px;
228 .tag_log {
229 padding-left: 10px;
230 padding-right: 10px;
231 padding-top: 5px;
232 padding-bottom: 5px;
233 width: 65%;
236 #tag_header_wrapper {
237 background-color: #f5fcfb;
239 #tag_header {
240 padding-left: 10px;
241 padding-top: 5px;
242 padding-bottom: 2px;
243 width: 80%;
245 #tag_commit {
246 padding-top: 20px;
247 padding-left: 20px;
248 padding-bottom: 20px;
249 overflow: auto;
252 #index_header {
253 background-color: Khaki;
255 .index_project, .index_project_description, .index_project_owner,
256 .index_project_age {
257 display: inline-block;
258 padding: 10px;
259 overflow: hidden;
260 vertical-align: middle;
262 .index_project {
263 width: 20%;
265 .index_project_description {
266 width: 30%;
268 .index_project_owner {
269 width: 25%;
271 .index_project_age {
272 width: 25%;
274 .index_project a {
275 color: #444444;
276 text-decoration: none;
278 .index_project a:hover {
279 color: SteelBlue;
280 text-decoration: none;
282 #index_next a {
283 color: #444444;
284 text-decoration: none;
286 #index_next a:hover {
287 color: SteelBlue;
288 text-decoration: none;
290 #index_prev a {
291 color: #444444;
292 text-decoration: none;
294 #index_prev a:hover {
295 color: SteelBlue;
296 text-decoration: none;
299 .commits_content {
300 width: 100%;
302 .commits_header_wrapper {
303 background-color: #f5fcfb;
305 .commits_header {
306 padding-top: 5px;
307 padding-bottom: 2px;
308 width: 80%;
310 .commit {
311 padding-left: 20px;
312 padding-bottom: 20px;
313 white-space: pre-wrap;
316 #blame_header_wrapper, #blob_header_wrapper {
317 background-color: #f5fcfb;
319 #blame_header, #blob_header {
320 padding-left: 10px;
321 padding-top: 5px;
322 padding-bottom: 2px;
324 #blame, #blob {
325 margin-top: 20px;
326 margin-left: 20px;
327 margin-bottom: 20px;
328 overflow: auto;
330 .blob_line > a {
331 display: inline-block;
332 text-align: right;
333 width: 60px;
334 padding-right: 20px;
336 .blob_code {
337 /* fixes the width of the first tab */
338 display: inline-block;
340 .blame_number, .blame_hash, .blame_date, .blame_author, .blame_code {
341 display: inline-block;
342 vertical-align: middle;
344 .blame_wrapper:target, .blob_line:target {
345 background-color: Khaki;
347 .blame_number, .blob_number {
348 width: 6em;
349 overflow: hidden;
351 .blame_hash {
352 width: 6em;
353 overflow: auto;
355 .blame_date {
356 width: 7em;
357 overflow: auto;
359 .blame_author {
360 width: 6em;
361 overflow: hidden;
364 #tree_header {
365 background-color: #f5fcfb;
366 padding-left: 10px;
367 padding-top: 5px;
368 padding-bottom: 2px;
370 #tree {
371 margin-left: 20px;
372 margin-top: 20px;
373 margin-bottom: 20px;
374 border-collapse: collapse;
376 .tree_wrapper {
377 background-color: #d8f3ef;
379 .tree_wrapper:nth-child(even) {
380 background-color: #ffffff;
382 .tree_line {
383 font-family: monospace;
384 width: 20em;
385 padding: 5px;
387 .tree_line_blank {
388 padding: 1px;
389 width: 9.5em;
392 #diff_header_wrapper {
393 background-color: #f5fcfb;
395 #diff_header {
396 padding-left: 10px;
397 padding-top: 5px;
398 padding-bottom: 2px;
400 #diff {
401 margin-top: 20px;
402 margin-left: 20px;
403 margin-bottom: 20px;
404 overflow: auto;
407 #summary_wrapper {
408 background-color: Khaki;
411 dl {
412 padding: 0;
413 margin: 0;
414 display: flex;
415 flex-wrap: wrap;
417 dt {
418 padding: 3px 7px;
419 width: 120px;
421 dd {
422 padding: 3px 7px;
423 margin-left: auto;
424 width: calc(100% - 130px);
425 flex-grow: 2;
428 .clone-url {
429 white-space: pre-wrap;
432 .commit-msg {
433 white-space: pre-wrap;
436 .commit-id {
437 width: 100%;
438 display: inline-block;
439 overflow: hidden;
440 text-overflow: ellipsis;
443 .branches_age, .branches_space, .branch {
444 display: inline-block;
445 vertical-align: middle;
447 .branches_age {
448 padding-left: 10px;
449 padding-top: 5px;
450 padding-bottom: 5px;
451 width: calc(140px + 8.5em);
453 .branch {
454 padding-right: 10px;
455 padding-top: 5px;
456 padding-bottom: 5px;
457 padding-left: 10px;