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