almost giving up on coloring svgs but not yet
[gitweb-theme-danix.git] / gitweb-danixland / gitweb.css
1 /* Fonts
2 ------------------------------------------------------------------------- */
3 @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,600;1,400;1,600&family=Red+Hat+Mono&display=swap');
4
5 /* Reset
6 ------------------------------------------------------------------------- */
7
8 /* Based on http://meyerweb.com/eric/tools/css/reset/ */
9 /* v1.0 | 20080212 */
10
11 html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
12 blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
13 font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b,
14 u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
15 caption, tbody, tfoot, thead, tr, th, td {
16 margin: 0;
17 padding: 0;
18 border: 0;
19 outline: 0;
20 font-size: 100%;
21 vertical-align: baseline;
22 background: transparent;
23 }
24
25 ol, ul { list-style: none; }
26
27 blockquote, q { quotes: none; }
28
29 blockquote:before, blockquote:after,
30 q:before, q:after {
31 content: '';
32 content: none;
33 }
34
35 :focus { outline: 0; }
36
37 ins { text-decoration: none; }
38
39 del { text-decoration: line-through; }
40
41 table {
42 border-collapse: collapse;
43 border-spacing: 0;
44 }
45
46 a { outline: none; }
47
48 /* Colors
49 ------------------------------------------------------------------------- */
50 :root {
51 --bg: #D8D9CF;
52 --bg-alt: #F0EEED;
53 --fg: #393E46;
54 --link: #FF8B13;
55 --link-visited: #e7b788;
56 --border: 34,40,49,0.035;
57 --accent: #FD7014;
58 --svg-color: navy;
59 --file-icon: url("file.svg");
60 --dir-icon: url("folder.svg");
61 --ref-icon: url("commit.svg");
62 --tag-icon: url("tag.svg");
63 --branch-icon: url("merge.svg");
64 }
65 @media screen and (prefers-color-scheme: dark) {
66 :root {
67 --bg: #393E46;
68 --bg-alt: #222831;
69 --fg: #D8D9CF;
70 --border: 216,217,207,0.2;
71 --svg-color: teal;
72 }
73 }
74
75
76 /* General
77 ---------------------------------------------------------------------------- */
78
79 html {
80 position: relative;
81 min-height: 100%;
82 }
83
84 body {
85 font: 13px 'Montserrat',Helvetica,arial,freesans,clean,sans-serif;
86 line-height: 1.4;
87 margin: 0 0 105px;
88 background-color: var(--bg);
89 color: var(--fg);
90 }
91
92 /* Monospaced Fonts */
93 .sha1, .mode, .diff_tree .list, .pre, .diff, .patchset {
94 font-family: 'Red Hat Mono','Consolas','Bitstream Vera Sans Mono',monospace;
95 }
96
97 a:link, a:visited {
98 text-decoration: none;
99 }
100
101 a:link {
102 color: var(--link);
103 }
104
105 a:visited {
106 color: var(--link-visited);
107 }
108
109 a:hover {
110 text-decoration: underline;
111 }
112
113 td.list a[href*='tree'], td.list a[href*='blob'] {
114 padding-left: 20px;
115 display: block;
116 float: left;
117 height: 32px;
118 line-height: 32px;
119 }
120
121 /* Folder Icon */
122 td.list a[href*='tree']:before {
123 color: var(--svg-color);
124 content: var(--dir-icon);
125 }
126
127 /* File Icon */
128 td.list a[href*='blob'] {
129 background: var(--svg-color) var(--file-icon) center left no-repeat;
130 }
131
132 i {
133 font-style: normal;
134 }
135
136 td, th {
137 padding: 5px;
138 }
139
140 .page_nav br {
141 display: none;
142 }
143
144 #generating_info {
145 font-size: 10px;
146 color: #aaa;
147 text-align: center;
148 }
149
150 #generating_time, #generating_cmd {
151 font-weight: bold;
152 }
153
154 /* Page Header
155 ---------------------------------------------------------------------------- */
156
157 .page_header {
158 height: 50px;
159 line-height: 50px;
160 position: relative;
161 padding: 0 27px;
162 margin-bottom: 20px;
163 font-size: 20px;
164 font-family: Helvetica, Arial, Freesans, Clean, sans-serif;
165 background: var(--bg); /* old browsers */
166 background: -moz-linear-gradient(top, var(--bg) 0%, var(--bg-alt) 100%); /* firefox */
167 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,var(--bg)), color-stop(100%,var(--bg-alt))); /* webkit */
168 background: -o-linear-gradient(top, var(--bg) 0%, var(--bg-alt) 100%);
169 border-bottom: 1px solid rgba(var(--border));
170 }
171
172 .page_header a:link, .page_header a:visited {
173 color: var(--link);
174 text-decoration: none;
175 padding: 3px;
176 font-weight: bold;
177 }
178
179 .page_header a:hover {
180 font-weight: bold;
181 padding: 3px;
182 text-decoration: underline;
183 }
184
185 .page_header a:first-child {
186 background: transparent;
187 }
188
189 .page_header img.logo {
190 position: relative;
191 top: 7px;
192 margin-right: 5px;
193 }
194
195 /* Page Footer
196 ---------------------------------------------------------------------------- */
197
198 .page_footer {
199 position: absolute;
200 left: 0;
201 bottom: 0;
202 width: 100%;
203 height: 80px;
204 line-height: 80px;
205 margin-top: 15px;
206 background: var(--bg);
207 border-top: 2px solid var(--border);
208 border-bottom: 1px solid var(--border);
209 }
210
211 .page_footer_text {
212 color: var(--fg);
213 display: inline;
214 float: left;
215 margin-left: 25px;
216 width: 80%;
217 overflow: hidden;
218 white-space: nowrap;
219 text-overflow: ellipsis;
220 }
221
222 a.rss_logo {
223 float: right;
224 padding: 3px 1px;
225 width: 35px;
226 line-height: 10px;
227 border: 1px solid;
228 border-color: #fcc7a5 #7d3302 #3e1a01 #ff954e;
229 color: #ffffff;
230 background-color: #ff6600;
231 font-weight: bold;
232 font-family: sans-serif;
233 font-size: 80%;
234 text-align: center;
235 text-decoration: none;
236 margin-top: 30px;
237 margin-left: 5px;
238 }
239
240 a.rss_logo:hover {
241 background-color: #ee5500;
242 }
243
244 .rss_logo {
245 margin-right: 25px;
246 background: yellow;
247 }
248
249 .rss_logo:last-child {
250 margin-right: 5px;
251 }
252
253 /* Index include
254 ---------------------------------------------------------------------------- */
255
256 .index_include {
257 width: 95%;
258 margin: 0 auto 15px;
259 background: -moz-linear-gradient(center top , var(--bg) 0%, var(--bg-alt) 100%) repeat scroll 0 0 transparent;
260 border: 1px solid var(--border);
261 padding: 8px;
262 -webkit-box-sizing: border-box;
263 -moz-box-sizing: border-box;
264 box-sizing: border-box;
265 }
266
267 /* Elements
268 ---------------------------------------------------------------------------- */
269
270 .project_list,
271 .shortlog,
272 .tree,
273 .commit_search,
274 .history {
275 width: 95%;
276 margin: 0 auto 15px auto;
277 border: 1px solid var(--border);
278 -moz-box-shadow: 0 0 3px rgba(0,0,0,0.2);
279 -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.2);
280 box-shadow: 0 0 3px rgba(0,0,0,0.2);
281 }
282
283 .project_list th,
284 .shortlog th,
285 .tree th,
286 .commit_search th {
287 color: #afafaf;
288 font-weight: normal;
289 }
290
291 .project_list th {
292 font-weight: bold;
293 }
294
295 .project_list tr,
296 .shortlog tr,
297 .tree tr,
298 .commit_search tr {
299 background: #eaeaea;
300 height: 2.5em;
301 text-align: left;
302 color: #545454;
303 }
304
305 .project_list tr.dark, .project_list tr.light,
306 .shortlog tr.dark, .shortlog tr.light,
307 .tree tr.dark, .tree tr.light,
308 .commit_search tr.dark, .commit_search tr.light,
309 .history tr.dark, .history tr.light,
310 .heads tr.dark, .heads tr.light {
311 background: #F9F9F9; /* old browsers */
312 background: -moz-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%); /* firefox */
313 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F9F9F9), color-stop(100%,#EFEFEF)); /* webkit */
314 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F9F9F9', endColorstr='#EFEFEF',GradientType=0 ); /* ie */
315 background: -o-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%);
316 height: 2.5em;
317 border-bottom: 1px solid #e1e1e1;
318 }
319
320 th .header {
321 background: transparent;
322 border: 0;
323 padding: 0;
324 font-weight: bold;
325 }
326
327 .tree {
328 width: 100%;
329 margin: 0;
330 }
331
332 .projsearch {
333 position: absolute;
334 right: 4%;
335 top: 15px;
336 }
337
338 .projsearch a {
339 display: none;
340 }
341
342 .commit_search {
343 background: #eaeaea;
344 }
345
346 .page_nav,
347 .list_head,
348 .page_path,
349 .search {
350 width: 94%;
351 background: #eaeaea;
352 color: #545454;
353 border: 1px solid #d8d8d8;
354 padding: 5px;
355 margin: 0 auto 15px auto;
356 }
357
358 .history {
359 background: #eaeaea;
360 }
361
362 .title {
363 margin: 0 auto 15px auto;
364 padding: 5px;
365 width: 95%;
366 }
367
368 .readme {
369 background: #eaf2f5;
370 border: 1px solid #bedce7;
371 -moz-box-sizing: border-box;
372 -webkit-box-sizing: border-box;
373 box-sizing: border-box;
374 margin: 0 auto 15px auto;
375 padding: 15px;
376 width: 95%;
377 }
378
379 .readme h1 {
380 display: block;
381 font-size: 2em;
382 font-weight: bold;
383 margin-bottom: 0.67em;
384 margin-top: 0;
385 }
386
387 .readme h2 {
388 font-size: 1.5em;
389 font-weight: bold;
390 margin-bottom: 0.83em;
391 }
392
393
394 .readme h3 {
395 font-size: 1.17em;
396 font-weight: bold;
397 margin-bottom: 1em;
398 }
399
400 .readme p {
401 margin-bottom: 1em;
402 }
403
404 .readme ul {
405 list-style: disc;
406 margin-bottom: 1em;
407 margin-left: 1.5em;
408 }
409
410 .readme ul ul {
411 margin-bottom: 0;
412 }
413
414 .readme ol {
415 list-style: decimal;
416 margin-bottom: 1em;
417 margin-left: 1.5em;
418 }
419
420 .readme ol ol {
421 margin-bottom: 0;
422 }
423
424 .readme pre {
425 font-family: monospace;
426 margin: 1em 0;
427 white-space: pre;
428 }
429
430 .readme tt, .readme code, .readme kbd, .readme samp {
431 font-family: monospace;
432 }
433
434 .readme blockquote {
435 margin: 1em;
436 }
437
438 .projects_list,
439 .tags {
440 width: 95%;
441 background: #f0f0f0;
442 color: #545454;
443 border: 1px solid #d8d8d8;
444 padding: 5px;
445 margin: 0 auto 15px auto;
446 }
447
448 .heads {
449 width: 95%;
450 color: #545454;
451 border: 1px solid #d8d8d8;
452 padding: 5px;
453 margin: 0 auto 15px auto;
454 }
455
456 .header {
457 width: 94%;
458 margin: 0 auto 15px auto;
459 background: #eaf2f5;
460 border: 1px solid #bedce7;
461 padding: 5px;
462 }
463
464 .header .age {
465 float: left;
466 color: #000;
467 font-weight: bold;
468 width: 10em;
469 }
470
471 .title_text {
472 width: 94%;
473 background: #eaf2f5;
474 border: 1px solid #bedce7;
475 padding: 5px;
476 margin: 0 auto 0 auto;
477 }
478
479 .log_body {
480 width: 94%;
481 background: #eaf2f5;
482 border: 1px solid #bedce7;
483 border-top: 0;
484 padding: 5px;
485 margin: 0 auto 15px auto;
486 }
487
488 .page_body {
489 line-height: 1.4em;
490 width: 94%;
491 background: #f8f8f8;
492 border: 1px solid #d8d8d8;
493 padding: 5px;
494 margin: 15px auto 15px auto;
495 }
496
497 .diff_tree {
498 width: 95%;
499 background: #f0f0f0;
500 border: 1px solid #d8d8d8;
501 padding: 5px;
502 margin: 0 auto 15px auto;
503 }
504
505 .page_body > .list_head {
506 width: 98.5%;
507 }
508
509 .page_body > .diff_tree {
510 width: 99.5%;
511 }
512
513 .patch > .header {
514 width: 99%;
515 }
516
517 .author .avatar,
518 .author_date .avatar {
519 position: relative;
520 top: 3px;
521 }
522
523 .object_header .avatar {
524 border: 1px solid #D8D8D8;
525 float: right;
526 }
527
528 .object_header td,
529 .object_header th {
530 vertical-align: top;
531 }
532
533 /* Refs
534 ---------------------------------------------------------------------------- */
535
536 span.refs span {
537 color: #707070;
538 display: inline-block;
539 margin: 0;
540 background-color: #eee;
541 border: 1px solid #ccc;
542 border-radius: 3px;
543 height: 18px;
544 padding: 0 6px;
545 text-overflow: ellipsis;
546 }
547
548 span.refs span.ref {
549 color: #707070;
550 display: inline-block;
551 margin: 0;
552 background-color: #c4c4ff;
553 border: 1px solid #7878ff;
554 border-radius: 3px;
555 height: 18px;
556 padding: 0 6px;
557 text-overflow: ellipsis;
558 /* Node vertical */
559 background-image: var(--ref-icon);
560 background-repeat: no-repeat;
561 padding-left: 18px;
562 }
563
564 span.refs span.tag {
565 color: #707070;
566 display: inline-block;
567 margin: 0;
568 background-color: #ffffab;
569 border: 1px solid #d9d93b;
570 border-radius: 3px;
571 height: 18px;
572 padding: 0 6px;
573 text-overflow: ellipsis;
574 /* tag icon */
575 background-image: var(--tag-icon);
576 background-repeat: no-repeat;
577 padding-left: 18px;
578 }
579
580 span.refs span.head {
581 color: #707070;
582 display: inline-block;
583 margin: 0;
584 background-color: #c4ffc4;
585 border: 1px solid #78ff78;
586 border-radius: 3px;
587 height: 18px;
588 padding: 0 6px;
589 text-overflow: ellipsis;
590 /* git branch */
591 background-image: var(--branch-icon);
592 background-repeat: no-repeat;
593 padding-left: 18px;
594 }
595
596 span.refs a {
597 color: #4e4e4e;
598 font: 11px "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, monospace;
599 line-height: 18px;
600 }
601
602 /* Diffs
603 ---------------------------------------------------------------------------- */
604
605 div.diff.to_file a.path,
606 div.diff.to_file {
607 color: #007000;
608 }
609
610 div.diff.from_file a.path,
611 div.diff.from_file {
612 color: #aa0000;
613 }
614
615 .patch .header {
616 margin: 0;
617 }
618
619 .patchset {
620 overflow-x: auto;
621 overflow-y: hidden;
622 }
623
624 .chunk_header {
625 background: #eaf2f5;
626 color: #999;
627 }
628
629 .rem {
630 background: #ffdddd;
631 }
632 .rem .marked {
633 background: #ffaaaa;
634 }
635 .add {
636 background: #ddffdd;
637 }
638 .add .marked {
639 background: #7dff7d;
640 }
641
642 .extended_header {
643 width: 99.5%;
644 }
645
646 div.chunk_block {
647 overflow: hidden;
648 }
649
650 div.chunk_block div.old {
651 float: left;
652 width: 50%;
653 overflow: hidden;
654 border-right: 5px solid #EAF2F5;
655 }
656
657 div.chunk_block.rem,
658 div.chunk_block.add {
659 background: transparent;
660 }
661
662 div.chunk_block div.old .add,
663 div.chunk_block div.old .rem {
664 padding-right: 3px;
665 }
666
667 div.chunk_block div.new .add,
668 div.chunk_block div.new .rem {
669 padding-left: 3px;
670 }
671
672 div.chunk_block div.new {
673 margin-left: 50%;
674 width: 50%;
675 border-left: 5px solid #EAF2F5;
676 }
677
678 /* Category
679 ---------------------------------------------------------------------------- */
680
681 td.category {
682 background: #E6F1F6; /* old browsers */
683 background: -moz-linear-gradient(top, #C8D8E7 0%, #E6F1F3 100%); /* firefox */
684 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#C8D8E7), color-stop(100%,#E6F1F3)); /* webkit */
685 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#C8D8E7', endColorstr='#E6F1F3',GradientType=0 ); /* ie */
686 background: -o-linear-gradient(top, #C8D8E7 0%, #E6F1F3 100%);
687 font-weight: bold;
688 border-bottom: 1px solid #D1D1D1;
689 border-top: 1px solid #D1D1D1;
690 }
691
692 /* Age
693 ---------------------------------------------------------------------------- */
694
695 /* noage: "No commits" */
696 .project_list td.noage {
697 color: #cdcdcd;
698 }
699
700 /* age2: 60*60*24*2 <= age */
701 .project_list td.age2, .blame td.age2 {
702 color: #545454;
703 }
704
705 /* age1: 60*60*2 <= age < 60*60*24*2 */
706 .project_list td.age1 {
707 color: #009900;
708 }
709
710 /* age0: age < 60*60*2 */
711 .project_list td.age0 {
712 color: #009900;
713 font-weight: bold;
714 }
715
716 /* File status
717 ---------------------------------------------------------------------------- */
718
719 .diff_tree span.file_status.new {
720 color: #008000;
721 }
722
723 table.diff_tree span.file_status.deleted {
724 color: #c00000;
725 }
726
727 table.diff_tree span.file_status.moved,
728 table.diff_tree span.file_status.mode_chnge {
729 color: #545454;
730 }
731
732 table.diff_tree span.file_status.copied {
733 color: #70a070;
734 }
735
736 span.cntrl {
737 border: dashed #aaaaaa;
738 border-width: 1px;
739 padding: 0px 2px 0px 2px;
740 margin: 0px 2px 0px 2px;
741 }
742
743 span.match {
744 background: #aaffaa;
745 color: #000;
746 }
747
748 td.error {
749 color: red;
750 background: yellow;
751 }
752
753 /* blob view */
754
755 td.pre, div.pre, div.diff {
756 white-space: pre-wrap;
757 }
758
759 /* JavaScript-based timezone manipulation */
760
761 .popup { /* timezone selection UI */
762 position: absolute;
763 /* "top: 0; right: 0;" would be better, if not for bugs in browsers */
764 top: 0; left: 0;
765 border: 1px solid #d8d8d8;
766 padding: 2px;
767 background-color: #f0f0f0;
768 font-style: normal;
769 color: #545454;
770 cursor: auto;
771 }
772
773 .close-button { /* close timezone selection UI without selecting */
774 /* float doesn't work within absolutely positioned container,
775 * if width of container is not set explicitly */
776 /* float: right; */
777 position: absolute;
778 top: 0px; right: 0px;
779 border: 1px solid #ffaaaa;
780 margin: 1px 1px 1px 1px;
781 padding-bottom: 2px;
782 width: 12px;
783 height: 10px;
784 font-size: 9px;
785 font-weight: bold;
786 text-align: center;
787 background-color: #ffdddd;
788 cursor: pointer;
789 }
790
791 /* Style definition generated by highlight 2.4.5, http://www.andre-simon.de/ */
792
793 /* Highlighting theme definition: */
794
795 .num { color:#6ecf36; }
796 .esc { color:#ff00ff; }
797 .str { color:#ff00d3; background-color: #edc9ec }
798 .dstr { color:#818100; }
799 .slc { color:#838183; font-style:italic; }
800 .com { color:#838183; font-style:italic; }
801 .dir { color:#008200; }
802 .sym { color:#000000; }
803 .line { color:#555555; }
804 .kwa { color:#666666; font-weight:bold; }
805 .kwb { color:#6b3099; }
806 .kwc { color:#d4663d; }
807 .kwd { color:#2928ff; }
808
809 /*
810 * Styling for my custom added sections
811 */
812
813 /* Header */
814 div.site-header {
815 background-color: var(--bg-alt);
816 color: var(--fg);
817 padding: 1em;
818 }
819 div.site-header h1 {
820 text-transform: uppercase;
821 font-size: 2em;
822 }
823 div.site-header h1 span.evident {
824 background-color: var(--accent);
825 color: var(--bg);
826 }