uniforming blocks styling
[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 background: var(--fg);
392 color: var(--bg);
393 border: 1px solid rgba(var(--border));
394 padding: 5px;
395 margin: 0 auto 15px auto;
396 }
397 .page_nav {
398 text-align: center;
399 }
400
401 .history {
402 background: #eaeaea;
403 }
404
405 .title {
406 font-size: 2em;
407 text-transform: capitalize;
408 margin: 0 auto 15px auto;
409 padding: 5px;
410 width: 95%;
411 }
412
413 .readme {
414 background: var(--bg-alt);
415 border: 1px solid rgba(var(--border));
416 -moz-box-sizing: border-box;
417 -webkit-box-sizing: border-box;
418 box-sizing: border-box;
419 margin: 0 auto 15px auto;
420 padding: 15px;
421 width: 95%;
422 }
423
424 .readme h1 {
425 display: block;
426 font-size: 2em;
427 font-weight: bold;
428 margin-bottom: 0.67em;
429 margin-top: 0;
430 }
431
432 .readme h2 {
433 font-size: 1.5em;
434 font-weight: bold;
435 margin-bottom: 0.83em;
436 }
437
438
439 .readme h3 {
440 font-size: 1.17em;
441 font-weight: bold;
442 margin-bottom: 1em;
443 }
444
445 .readme p {
446 margin-bottom: 1em;
447 }
448
449 .readme ul {
450 list-style: disc;
451 margin-bottom: 1em;
452 margin-left: 1.5em;
453 }
454
455 .readme ul ul {
456 margin-bottom: 0;
457 }
458
459 .readme ol {
460 list-style: decimal;
461 margin-bottom: 1em;
462 margin-left: 1.5em;
463 }
464
465 .readme ol ol {
466 margin-bottom: 0;
467 }
468
469 .readme pre,
470 .readme code {
471 font-family: 'Red Hat Mono', monospace;
472 margin: 1em 0;
473 white-space: pre;
474 }
475
476 .readme tt, .readme code, .readme kbd, .readme samp {
477 font-family: 'Red Hat Mono', monospace;
478 }
479
480 .readme blockquote {
481 margin: 1em;
482 }
483
484 .projects_list,
485 .tags {
486 width: 95%;
487 background: var(--bluish-grey);
488 color: var(--light-grey);
489 padding: 5px;
490 margin: 0 auto 15px auto;
491 }
492
493 .heads {
494 width: 95%;
495 color: var(--fg);
496 padding: 5px;
497 margin: 0 auto 15px auto;
498 }
499
500 .header {
501 text-transform: capitalize;
502 margin: 0 auto 15px auto;
503 padding: 5px;
504 width: 95%;
505 }
506
507 .header .age {
508 float: left;
509 color: #000;
510 font-weight: bold;
511 width: 10em;
512 }
513
514 .title_text {
515 width: 94%;
516 background: var(--bg-alt);
517 padding: 5px;
518 margin: 0 auto 0 auto;
519 }
520
521 .log_body {
522 width: 94%;
523 background: var(--bg-alt);
524 padding: 5px;
525 margin: 0 auto 15px auto;
526 }
527
528 .page_body {
529 line-height: 1.4em;
530 width: 94%;
531 background: var(--bg-alt);
532 padding: 5px;
533 margin: 15px auto 15px auto;
534 }
535
536 .diff_tree {
537 width: 95%;
538 background: var(--bg-alt);
539 padding: 5px;
540 margin: 0 auto 15px auto;
541 }
542
543 .page_body > .list_head {
544 width: 98.5%;
545 }
546
547 .page_body > .diff_tree {
548 width: 99.5%;
549 }
550
551 .patch > .header {
552 width: 99%;
553 }
554
555 .author .avatar,
556 .author_date .avatar {
557 position: relative;
558 top: 3px;
559 width: 32;
560 height: 32;
561 }
562
563 .object_header .avatar {
564 float: right;
565 }
566
567 .object_header td,
568 .object_header th {
569 vertical-align: top;
570 }
571
572 /* Refs
573 ---------------------------------------------------------------------------- */
574
575 span.refs span {
576 color: #707070;
577 display: inline-block;
578 margin: 0;
579 background-color: var(--bg);
580 height: 18px;
581 padding: 0 6px;
582 text-overflow: ellipsis;
583 }
584
585 span.refs span.ref {
586 color: #707070;
587 display: inline-block;
588 margin: 0;
589 background-color: var(--bg-alt);
590 height: 18px;
591 padding: 0 6px;
592 text-overflow: ellipsis;
593 /* Node vertical */
594 background-image: var(--ref-icon);
595 background-repeat: no-repeat;
596 padding-left: 18px;
597 }
598
599 span.refs span.tag {
600 color: #707070;
601 display: inline-block;
602 margin: 0;
603 background-color: #ffffab;
604 border: 1px solid #d9d93b;
605 border-radius: 3px;
606 height: 18px;
607 padding: 0 6px;
608 text-overflow: ellipsis;
609 /* tag icon */
610 background-image: var(--tag-icon);
611 background-repeat: no-repeat;
612 padding-left: 18px;
613 }
614
615 span.refs span.head {
616 color: #707070;
617 display: inline-block;
618 margin: 0;
619 background-color: #c4ffc4;
620 border: 1px solid #78ff78;
621 border-radius: 3px;
622 height: 18px;
623 padding: 0 6px;
624 text-overflow: ellipsis;
625 /* git branch */
626 background-image: var(--branch-icon);
627 background-repeat: no-repeat;
628 padding-left: 18px;
629 }
630
631 span.refs a {
632 color: #4e4e4e;
633 font: 11px "Red Hat Mono", "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, monospace;
634 line-height: 18px;
635 }
636
637 /* Diffs
638 ---------------------------------------------------------------------------- */
639
640 div.diff.to_file a.path,
641 div.diff.to_file {
642 color: #007000;
643 }
644
645 div.diff.from_file a.path,
646 div.diff.from_file {
647 color: #aa0000;
648 }
649
650 .patch .header {
651 margin: 0;
652 }
653
654 .patchset {
655 overflow-x: auto;
656 overflow-y: hidden;
657 }
658
659 .chunk_header {
660 background: var(--bg-alt);
661 color: #999;
662 }
663
664 .rem {
665 background: #ffdddd;
666 }
667 .rem .marked {
668 background: #ffaaaa;
669 }
670 .add {
671 background: #ddffdd;
672 }
673 .add .marked {
674 background: #7dff7d;
675 }
676
677 .extended_header {
678 width: 99.5%;
679 }
680
681 div.chunk_block {
682 overflow: hidden;
683 }
684
685 div.chunk_block div.old {
686 float: left;
687 width: 50%;
688 overflow: hidden;
689 border-right: 5px solid var(--bg-alt);
690 }
691
692 div.chunk_block.rem,
693 div.chunk_block.add {
694 background: transparent;
695 }
696
697 div.chunk_block div.old .add,
698 div.chunk_block div.old .rem {
699 padding-right: 3px;
700 }
701
702 div.chunk_block div.new .add,
703 div.chunk_block div.new .rem {
704 padding-left: 3px;
705 }
706
707 div.chunk_block div.new {
708 margin-left: 50%;
709 width: 50%;
710 border-left: 5px solid var(--bg-alt);
711 }
712
713 /* Category
714 ---------------------------------------------------------------------------- */
715
716 td.category {
717 background: var(--accent); /* old browsers */
718 color: var(--dark-grey);
719 padding-left: 3em;
720 font-weight: bold;
721 border-bottom: 3px solid rgba(var(--border));
722 border-left: 3px solid rgba(var(--border));
723 }
724 td.category:before {
725 content: "Category: ";
726 }
727 /* Age
728 ---------------------------------------------------------------------------- */
729
730 /* noage: "No commits" */
731 .project_list td.noage {
732 color: #cdcdcd;
733 }
734
735 /* age2: 60*60*24*2 <= age */
736 .project_list td.age2, .blame td.age2 {
737 color: #545454;
738 }
739
740 /* age1: 60*60*2 <= age < 60*60*24*2 */
741 .project_list td.age1 {
742 color: #009900;
743 }
744
745 /* age0: age < 60*60*2 */
746 .project_list td.age0 {
747 color: #009900;
748 font-weight: bold;
749 }
750
751 /* File status
752 ---------------------------------------------------------------------------- */
753
754 .diff_tree span.file_status.new {
755 color: #008000;
756 }
757
758 table.diff_tree span.file_status.deleted {
759 color: #c00000;
760 }
761
762 table.diff_tree span.file_status.moved,
763 table.diff_tree span.file_status.mode_chnge {
764 color: #545454;
765 }
766
767 table.diff_tree span.file_status.copied {
768 color: #70a070;
769 }
770
771 span.cntrl {
772 border: dashed #aaaaaa;
773 border-width: 1px;
774 padding: 0px 2px 0px 2px;
775 margin: 0px 2px 0px 2px;
776 }
777
778 span.match {
779 background: #aaffaa;
780 color: #000;
781 }
782
783 td.error {
784 color: red;
785 background: yellow;
786 }
787
788 /* blob view */
789
790 td.pre, div.pre, div.diff {
791 white-space: pre-wrap;
792 }
793
794 /* JavaScript-based timezone manipulation */
795
796 .popup { /* timezone selection UI */
797 position: absolute;
798 /* "top: 0; right: 0;" would be better, if not for bugs in browsers */
799 top: 0; left: 0;
800 border: 1px solid #d8d8d8;
801 padding: 2px;
802 background-color: var(--bg-alt);
803 font-style: normal;
804 color: #545454;
805 cursor: auto;
806 }
807
808 .close-button { /* close timezone selection UI without selecting */
809 /* float doesn't work within absolutely positioned container,
810 * if width of container is not set explicitly */
811 /* float: right; */
812 position: absolute;
813 top: 0px; right: 0px;
814 border: 1px solid #ffaaaa;
815 margin: 1px 1px 1px 1px;
816 padding-bottom: 2px;
817 width: 12px;
818 height: 10px;
819 font-size: 9px;
820 font-weight: bold;
821 text-align: center;
822 background-color: #ffdddd;
823 cursor: pointer;
824 }
825
826 /* Style definition generated by highlight 2.4.5, http://www.andre-simon.de/ */
827
828 /* Highlighting theme definition: */
829
830 .num { color:#6ecf36; }
831 .esc { color:#ff00ff; }
832 .str { color:#ff00d3; background-color: #edc9ec }
833 .dstr { color:#818100; }
834 .slc { color:#838183; font-style:italic; }
835 .com { color:#838183; font-style:italic; }
836 .dir { color:#008200; }
837 .sym { color:#000000; }
838 .line { color:#555555; }
839 .kwa { color:#666666; font-weight:bold; }
840 .kwb { color:#6b3099; }
841 .kwc { color:#d4663d; }
842 .kwd { color:#2928ff; }
843
844 /*
845 * Styling for my custom added sections
846 */
847
848 /* Header */
849 div.site-header {
850 background-color: var(--bg-alt);
851 color: var(--fg);
852 padding: 1em;
853 }
854 div.site-header h1 {
855 text-transform: uppercase;
856 font-size: 2em;
857 padding: 0;
858 margin: 0;
859 line-height: 2em;
860 }
861 div.site-header h1 a,
862 div.site-header h1 a:hover {
863 text-decoration: none;
864 color: var(--fg);
865 }
866 div.site-header h1 img.site-logo {
867 height: 50px;
868 width: auto;
869 position: relative;
870 top: 15px;
871 }
872 div.site-header h1 span.evident {
873 background-color: var(--accent);
874 color: var(--bg);
875 }