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