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