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