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