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