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