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