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