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