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