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