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