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