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