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