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