playing with colors in the table
[gitweb-theme-danix.git] / gitweb-danixland / gitweb.css
... / ...
CommitLineData
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
11html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
12blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
13font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b,
14u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
15caption, 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
25ol, ul { list-style: none; }
26
27blockquote, q { quotes: none; }
28
29blockquote:before, blockquote:after,
30q:before, q:after {
31 content: '';
32 content: none;
33}
34
35:focus { outline: 0; }
36
37ins { text-decoration: none; }
38
39del { text-decoration: line-through; }
40
41table {
42 border-collapse: collapse;
43 border-spacing: 0;
44}
45
46a { 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 --bluish-grey: #3f4c77;
59 --dark-grey: #393E46;
60/* Icons */
61 --file-icon: url("file-dark.svg");
62 --dir-icon: url("folder-dark.svg");
63 --ref-icon: url("commit-dark.svg");
64 --tag-icon: url("tag-dark.svg");
65 --branch-icon: url("merge-dark.svg");
66 --rss-icon:url("rss-dark.svg");
67 --opml-icon:url("opml-dark.svg");
68/* social colors */
69 --twitter: #1DA1F2;
70 --instagram: #E4405F;
71 --spotify: #1ed760;
72 --github: #6e5494;
73}
74@media screen and (prefers-color-scheme: dark) {
75 :root {
76 --bg: #393E46;
77 --bg-alt: #222831;
78 --fg: #D8D9CF;
79 --border: 216,217,207,0.2;
80 --file-icon: url("file.svg");
81 --dir-icon: url("folder.svg");
82 --ref-icon: url("commit.svg");
83 --tag-icon: url("tag.svg");
84 --branch-icon: url("merge.svg");
85 --rss-icon:url("rss.svg");
86 --opml-icon:url("opml.svg");
87 }
88}
89
90
91/* Main
92---------------------------------------------------------------------------- */
93
94html {
95 position: relative;
96 min-height: 100%;
97}
98
99body {
100 font: 13px 'Montserrat',Helvetica,arial,freesans,clean,sans-serif;
101 line-height: 1.4;
102 margin: 0 0 105px;
103 background-color: var(--bg);
104 color: var(--fg);
105}
106
107/* Monospaced Fonts */
108.sha1, .mode, .diff_tree .list, .pre, .diff, .patchset {
109 font-family: 'Red Hat Mono','Consolas','Bitstream Vera Sans Mono',monospace;
110}
111
112a:link, a:visited {
113 text-decoration: none;
114}
115
116a:link {
117 color: var(--link);
118}
119
120a:visited {
121 color: var(--link-visited);
122}
123
124a:hover {
125 text-decoration: underline;
126}
127
128td.list a[href*='tree'], td.list a[href*='blob'] {
129 padding-left: 40px;
130 display: block;
131 float: left;
132 height: 32px;
133 line-height: 32px;
134}
135
136/* Folder Icon */
137td.list a[href*='tree'] {
138 background: var(--dir-icon) center left no-repeat;
139}
140
141/* File Icon */
142td.list a[href*='blob'] {
143 background: var(--file-icon) center left no-repeat;
144}
145
146i {
147 font-style: normal;
148}
149
150td, th {
151 padding: 5px;
152}
153
154.page_nav br {
155 display: none;
156}
157
158#generating_info {
159 font-size: 10px;
160 color: var(--fg);
161 text-align: center;
162}
163
164#generating_time, #generating_cmd {
165 font-weight: bold;
166}
167
168/* Page Header
169---------------------------------------------------------------------------- */
170
171.page_header {
172 height: 50px;
173 line-height: 50px;
174 position: relative;
175 padding: 0 27px;
176 margin-bottom: 20px;
177 font-size: 20px;
178 font-family: 'Montserrat', Helvetica, Arial, Freesans, Clean, sans-serif;
179 background: var(--bluish-grey); /* old browsers */
180 background: linear-gradient(112deg, var(--bluish-grey) 10%, var(--accent) 75%);
181 border-bottom: 1px solid rgba(var(--border));
182}
183
184.page_header a:link, .page_header a:visited {
185 color: var(--link);
186 text-decoration: none;
187 padding: 3px;
188 font-weight: bold;
189}
190
191.page_header a:hover {
192 font-weight: bold;
193 padding: 3px;
194 text-decoration: underline;
195}
196
197.page_header a:first-child {
198 background: transparent;
199}
200
201.page_header img.logo {
202 position: relative;
203 top: 7px;
204 margin-right: 5px;
205}
206
207.page_header:before {
208 content: 'You\'re in: ';
209}
210
211/* Page Footer
212---------------------------------------------------------------------------- */
213
214.page_footer,
215.site-footer {
216 width: 100%;
217 background: var(--bluish-grey); /* old browsers */
218 background: linear-gradient(112deg, var(--bluish-grey) 65%, var(--accent) 100%);
219 margin: 0;
220}
221
222.page_footer {
223 height: 40px;
224 line-height: 40px;
225 border-top: 2px solid var(--border);
226 border-bottom: 1px solid var(--border);
227}
228
229.page_footer_text {
230 color: var(--bg);
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
283a.rss_logo,
284div.social-links ul li a span,
285div.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 var(--border);
321 -moz-box-shadow: 0 0 3px rgba(0,0,0,0.2);
322 -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.2);
323 box-shadow: 0 0 3px rgba(0,0,0,0.2);
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(--fg);
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(--bg-alt);
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: #F9F9F9; /* old browsers */
356 background: -moz-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%); /* firefox */
357 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F9F9F9), color-stop(100%,#EFEFEF)); /* webkit */
358 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F9F9F9', endColorstr='#EFEFEF',GradientType=0 ); /* ie */
359 background: -o-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%);
360 height: 2.5em;
361 border-bottom: 1px solid #e1e1e1;
362}
363
364th .header {
365 background: transparent;
366 border: 0;
367 padding: 0;
368 font-weight: bold;
369}
370
371.tree {
372 width: 100%;
373 margin: 0;
374}
375
376.projsearch {
377 position: absolute;
378 right: 4%;
379 top: 40px;
380}
381
382.projsearch a {
383 display: none;
384}
385
386.commit_search {
387 background: var(--fg);
388}
389
390.page_nav,
391.list_head,
392.page_path,
393.search {
394 width: 94%;
395 background: #eaeaea;
396 color: #545454;
397 border: 1px solid #d8d8d8;
398 padding: 5px;
399 margin: 0 auto 15px auto;
400}
401
402.history {
403 background: #eaeaea;
404}
405
406.title {
407 margin: 0 auto 15px auto;
408 padding: 5px;
409 width: 95%;
410}
411
412.readme {
413 background: #eaf2f5;
414 border: 1px solid #bedce7;
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 font-family: 'Red Hat Mono', monospace;
470 margin: 1em 0;
471 white-space: pre;
472}
473
474.readme tt, .readme code, .readme kbd, .readme samp {
475 font-family: 'Red Hat Mono', monospace;
476}
477
478.readme blockquote {
479 margin: 1em;
480}
481
482.projects_list,
483.tags {
484 width: 95%;
485 background: #f0f0f0;
486 color: #545454;
487 border: 1px solid #d8d8d8;
488 padding: 5px;
489 margin: 0 auto 15px auto;
490}
491
492.heads {
493 width: 95%;
494 color: #545454;
495 border: 1px solid #d8d8d8;
496 padding: 5px;
497 margin: 0 auto 15px auto;
498}
499
500.header {
501 width: 94%;
502 margin: 0 auto 15px auto;
503 background: #eaf2f5;
504 border: 1px solid #bedce7;
505 padding: 5px;
506}
507
508.header .age {
509 float: left;
510 color: #000;
511 font-weight: bold;
512 width: 10em;
513}
514
515.title_text {
516 width: 94%;
517 background: #eaf2f5;
518 border: 1px solid #bedce7;
519 padding: 5px;
520 margin: 0 auto 0 auto;
521}
522
523.log_body {
524 width: 94%;
525 background: #eaf2f5;
526 border: 1px solid #bedce7;
527 border-top: 0;
528 padding: 5px;
529 margin: 0 auto 15px auto;
530}
531
532.page_body {
533 line-height: 1.4em;
534 width: 94%;
535 background: #f8f8f8;
536 border: 1px solid #d8d8d8;
537 padding: 5px;
538 margin: 15px auto 15px auto;
539}
540
541.diff_tree {
542 width: 95%;
543 background: #f0f0f0;
544 border: 1px solid #d8d8d8;
545 padding: 5px;
546 margin: 0 auto 15px auto;
547}
548
549.page_body > .list_head {
550 width: 98.5%;
551}
552
553.page_body > .diff_tree {
554 width: 99.5%;
555}
556
557.patch > .header {
558 width: 99%;
559}
560
561.author .avatar,
562.author_date .avatar {
563 position: relative;
564 top: 3px;
565}
566
567.object_header .avatar {
568 border: 1px solid #D8D8D8;
569 float: right;
570}
571
572.object_header td,
573.object_header th {
574 vertical-align: top;
575}
576
577/* Refs
578---------------------------------------------------------------------------- */
579
580span.refs span {
581 color: #707070;
582 display: inline-block;
583 margin: 0;
584 background-color: var(--bg);
585 border: 1px solid var(--border);
586 border-radius: 3px;
587 height: 18px;
588 padding: 0 6px;
589 text-overflow: ellipsis;
590}
591
592span.refs span.ref {
593 color: #707070;
594 display: inline-block;
595 margin: 0;
596 background-color: var(--bg-alt);
597 border: 1px solid var(--link);
598 border-radius: 3px;
599 height: 18px;
600 padding: 0 6px;
601 text-overflow: ellipsis;
602/* Node vertical */
603 background-image: var(--ref-icon);
604 background-repeat: no-repeat;
605 padding-left: 18px;
606}
607
608span.refs span.tag {
609 color: #707070;
610 display: inline-block;
611 margin: 0;
612 background-color: #ffffab;
613 border: 1px solid #d9d93b;
614 border-radius: 3px;
615 height: 18px;
616 padding: 0 6px;
617 text-overflow: ellipsis;
618/* tag icon */
619 background-image: var(--tag-icon);
620 background-repeat: no-repeat;
621 padding-left: 18px;
622}
623
624span.refs span.head {
625 color: #707070;
626 display: inline-block;
627 margin: 0;
628 background-color: #c4ffc4;
629 border: 1px solid #78ff78;
630 border-radius: 3px;
631 height: 18px;
632 padding: 0 6px;
633 text-overflow: ellipsis;
634/* git branch */
635 background-image: var(--branch-icon);
636 background-repeat: no-repeat;
637 padding-left: 18px;
638}
639
640span.refs a {
641 color: #4e4e4e;
642 font: 11px "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, monospace;
643 line-height: 18px;
644}
645
646/* Diffs
647---------------------------------------------------------------------------- */
648
649div.diff.to_file a.path,
650div.diff.to_file {
651 color: #007000;
652}
653
654div.diff.from_file a.path,
655div.diff.from_file {
656 color: #aa0000;
657}
658
659.patch .header {
660 margin: 0;
661}
662
663.patchset {
664 overflow-x: auto;
665 overflow-y: hidden;
666}
667
668.chunk_header {
669 background: #eaf2f5;
670 color: #999;
671}
672
673.rem {
674 background: #ffdddd;
675}
676.rem .marked {
677 background: #ffaaaa;
678}
679.add {
680 background: #ddffdd;
681}
682.add .marked {
683 background: #7dff7d;
684}
685
686.extended_header {
687 width: 99.5%;
688}
689
690div.chunk_block {
691 overflow: hidden;
692}
693
694div.chunk_block div.old {
695 float: left;
696 width: 50%;
697 overflow: hidden;
698 border-right: 5px solid #EAF2F5;
699}
700
701div.chunk_block.rem,
702div.chunk_block.add {
703 background: transparent;
704}
705
706div.chunk_block div.old .add,
707div.chunk_block div.old .rem {
708 padding-right: 3px;
709}
710
711div.chunk_block div.new .add,
712div.chunk_block div.new .rem {
713 padding-left: 3px;
714}
715
716div.chunk_block div.new {
717 margin-left: 50%;
718 width: 50%;
719 border-left: 5px solid #EAF2F5;
720}
721
722/* Category
723---------------------------------------------------------------------------- */
724
725td.category {
726 background: var(--accent); /* old browsers */
727 color: var(--dark-grey);
728 padding-left: 3em;
729 font-weight: bold;
730 border-bottom: 1px solid var(--border);
731 border-top: 1px solid var(--border);
732}
733td.category:before {
734 content: "Cat.: ";
735}
736/* Age
737---------------------------------------------------------------------------- */
738
739/* noage: "No commits" */
740.project_list td.noage {
741 color: #cdcdcd;
742}
743
744/* age2: 60*60*24*2 <= age */
745.project_list td.age2, .blame td.age2 {
746 color: #545454;
747}
748
749/* age1: 60*60*2 <= age < 60*60*24*2 */
750.project_list td.age1 {
751 color: #009900;
752}
753
754/* age0: age < 60*60*2 */
755.project_list td.age0 {
756 color: #009900;
757 font-weight: bold;
758}
759
760/* File status
761---------------------------------------------------------------------------- */
762
763.diff_tree span.file_status.new {
764 color: #008000;
765}
766
767table.diff_tree span.file_status.deleted {
768 color: #c00000;
769}
770
771table.diff_tree span.file_status.moved,
772table.diff_tree span.file_status.mode_chnge {
773 color: #545454;
774}
775
776table.diff_tree span.file_status.copied {
777 color: #70a070;
778}
779
780span.cntrl {
781 border: dashed #aaaaaa;
782 border-width: 1px;
783 padding: 0px 2px 0px 2px;
784 margin: 0px 2px 0px 2px;
785}
786
787span.match {
788 background: #aaffaa;
789 color: #000;
790}
791
792td.error {
793 color: red;
794 background: yellow;
795}
796
797/* blob view */
798
799td.pre, div.pre, div.diff {
800 white-space: pre-wrap;
801}
802
803/* JavaScript-based timezone manipulation */
804
805.popup { /* timezone selection UI */
806 position: absolute;
807 /* "top: 0; right: 0;" would be better, if not for bugs in browsers */
808 top: 0; left: 0;
809 border: 1px solid #d8d8d8;
810 padding: 2px;
811 background-color: #f0f0f0;
812 font-style: normal;
813 color: #545454;
814 cursor: auto;
815}
816
817.close-button { /* close timezone selection UI without selecting */
818 /* float doesn't work within absolutely positioned container,
819 * if width of container is not set explicitly */
820 /* float: right; */
821 position: absolute;
822 top: 0px; right: 0px;
823 border: 1px solid #ffaaaa;
824 margin: 1px 1px 1px 1px;
825 padding-bottom: 2px;
826 width: 12px;
827 height: 10px;
828 font-size: 9px;
829 font-weight: bold;
830 text-align: center;
831 background-color: #ffdddd;
832 cursor: pointer;
833}
834
835/* Style definition generated by highlight 2.4.5, http://www.andre-simon.de/ */
836
837/* Highlighting theme definition: */
838
839.num { color:#6ecf36; }
840.esc { color:#ff00ff; }
841.str { color:#ff00d3; background-color: #edc9ec }
842.dstr { color:#818100; }
843.slc { color:#838183; font-style:italic; }
844.com { color:#838183; font-style:italic; }
845.dir { color:#008200; }
846.sym { color:#000000; }
847.line { color:#555555; }
848.kwa { color:#666666; font-weight:bold; }
849.kwb { color:#6b3099; }
850.kwc { color:#d4663d; }
851.kwd { color:#2928ff; }
852
853/*
854 * Styling for my custom added sections
855 */
856
857/* Header */
858div.site-header {
859 background-color: var(--bg-alt);
860 color: var(--fg);
861 padding: 1em;
862}
863div.site-header h1 {
864 text-transform: uppercase;
865 font-size: 2em;
866 padding: 0;
867 margin: 0;
868 line-height: 2em;
869}
870div.site-header h1 img.site-logo {
871 height: 50px;
872 width: auto;
873 position: relative;
874 top: 15px;
875}
876div.site-header h1 span.evident {
877 background-color: var(--accent);
878 color: var(--bg);
879}