still coloring
[gitweb-theme-danix.git] / gitweb-danixland / gitweb.css
CommitLineData
a6a0a341 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
f17ef185 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
b2b72247 48/* Colors
49------------------------------------------------------------------------- */
50:root {
51 --bg: #D8D9CF;
acb5821a 52 --bg-alt: #F0EEED;
b2b72247 53 --fg: #393E46;
3020319e 54 --link: #FF8B13;
55 --link-visited: #e7b788;
05bbea0e 56 --border: 34,40,49,0.035;
d5af761b 57 --accent: #FD7014;
a63053b2 58 --bluish-grey: #3f4c77;
54b66df6 59 --dark-grey: #393E46;
b2389564 60 --light-grey: #ababcf;
f5db486f 61/* Icons */
d904bd06 62 --file-icon: url("file-dark.svg");
63 --dir-icon: url("folder-dark.svg");
64 --ref-icon: url("commit-dark.svg");
65 --tag-icon: url("tag-dark.svg");
66 --branch-icon: url("merge-dark.svg");
9406f526 67 --rss-icon:url("rss-dark.svg");
68 --opml-icon:url("opml-dark.svg");
f5db486f 69/* social colors */
70 --twitter: #1DA1F2;
71 --instagram: #E4405F;
a7e6a25b 72 --spotify: #1ed760;
f5db486f 73 --github: #6e5494;
b2b72247 74}
75@media screen and (prefers-color-scheme: dark) {
1bc0e66a 76 :root {
77 --bg: #393E46;
acb5821a 78 --bg-alt: #222831;
1bc0e66a 79 --fg: #D8D9CF;
05bbea0e 80 --border: 216,217,207,0.2;
a8dc308a 81 --file-icon: url("file.svg");
82 --dir-icon: url("folder.svg");
83 --ref-icon: url("commit.svg");
84 --tag-icon: url("tag.svg");
85 --branch-icon: url("merge.svg");
9406f526 86 --rss-icon:url("rss.svg");
87 --opml-icon:url("opml.svg");
1bc0e66a 88 }
b2b72247 89}
90
f17ef185 91
21d9de84 92/* Main
f17ef185 93---------------------------------------------------------------------------- */
94
95html {
96 position: relative;
97 min-height: 100%;
98}
99
100body {
a6a0a341 101 font: 13px 'Montserrat',Helvetica,arial,freesans,clean,sans-serif;
f17ef185 102 line-height: 1.4;
103 margin: 0 0 105px;
b2b72247 104 background-color: var(--bg);
105 color: var(--fg);
f17ef185 106}
107
108/* Monospaced Fonts */
109.sha1, .mode, .diff_tree .list, .pre, .diff, .patchset {
a6a0a341 110 font-family: 'Red Hat Mono','Consolas','Bitstream Vera Sans Mono',monospace;
f17ef185 111}
112
113a:link, a:visited {
f17ef185 114 text-decoration: none;
115}
116
3020319e 117a:link {
118 color: var(--link);
119}
120
121a:visited {
122 color: var(--link-visited);
123}
124
f17ef185 125a:hover {
126 text-decoration: underline;
127}
128
129td.list a[href*='tree'], td.list a[href*='blob'] {
d904bd06 130 padding-left: 40px;
f17ef185 131 display: block;
132 float: left;
9325b442 133 height: 32px;
134 line-height: 32px;
f17ef185 135}
136
3020319e 137/* Folder Icon */
423a1cf3 138td.list a[href*='tree'] {
139 background: var(--dir-icon) center left no-repeat;
f17ef185 140}
141
3020319e 142/* File Icon */
f17ef185 143td.list a[href*='blob'] {
423a1cf3 144 background: var(--file-icon) center left no-repeat;
f17ef185 145}
146
147i {
148 font-style: normal;
149}
150
151td, th {
152 padding: 5px;
153}
154
155.page_nav br {
156 display: none;
157}
158
159#generating_info {
160 font-size: 10px;
d9ae720e 161 color: var(--fg);
f17ef185 162 text-align: center;
163}
164
165#generating_time, #generating_cmd {
166 font-weight: bold;
167}
168
169/* Page Header
170---------------------------------------------------------------------------- */
171
172.page_header {
173 height: 50px;
174 line-height: 50px;
175 position: relative;
176 padding: 0 27px;
177 margin-bottom: 20px;
178 font-size: 20px;
9406f526 179 font-family: 'Montserrat', Helvetica, Arial, Freesans, Clean, sans-serif;
a63053b2 180 background: var(--bluish-grey); /* old browsers */
619eb665 181 background: linear-gradient(112deg, var(--bluish-grey) 10%, var(--accent) 75%);
05bbea0e 182 border-bottom: 1px solid rgba(var(--border));
f17ef185 183}
184
185.page_header a:link, .page_header a:visited {
5ddc14e1 186 color: var(--link);
f17ef185 187 text-decoration: none;
188 padding: 3px;
189 font-weight: bold;
190}
191
192.page_header a:hover {
193 font-weight: bold;
194 padding: 3px;
195 text-decoration: underline;
196}
197
198.page_header a:first-child {
199 background: transparent;
200}
201
202.page_header img.logo {
203 position: relative;
204 top: 7px;
205 margin-right: 5px;
206}
207
ad601d12 208.page_header:before {
209 content: 'You\'re in: ';
210}
211
f17ef185 212/* Page Footer
213---------------------------------------------------------------------------- */
214
fdd09006 215.page_footer,
216.site-footer {
f17ef185 217 width: 100%;
a63053b2 218 background: var(--bluish-grey); /* old browsers */
619eb665 219 background: linear-gradient(112deg, var(--bluish-grey) 65%, var(--accent) 100%);
79480124 220 margin: 0;
f17ef185 221}
222
fdd09006 223.page_footer {
27ee5f03 224 height: 40px;
27ee5f03 225 line-height: 40px;
7f75d732 226 border-top: 2px solid var(--border);
227 border-bottom: 1px solid var(--border);
fdd09006 228}
229
f17ef185 230.page_footer_text {
619eb665 231 color: var(--bg);
27ee5f03 232 text-align: right;
3bacc307 233 padding-right: 2em;
f17ef185 234 display: inline;
fdd09006 235 float: right;
27ee5f03 236 width: calc(100% - 2em);
f17ef185 237 overflow: hidden;
238 white-space: nowrap;
239 text-overflow: ellipsis;
240}
241
27ee5f03 242.site-footer {
d3f8f269 243 position: absolute;
244 left: 0;
245 bottom: 0;
3bacc307 246 display: flex;
247 flex-direction: row;
248 flex-wrap: nowrap;
a0c95ad4 249 justify-content: space-around;
3cdb770b 250 align-items: center;
3bacc307 251 align-content: stretch;
27ee5f03 252}
253
3bacc307 254.site-footer .columns {
3bacc307 255 display: block;
5dc6bd48 256 flex-grow: 1;
3bacc307 257 flex-basis: auto;
5dc6bd48 258 align-self: stretch;
3bacc307 259 order: 0;
260}
79480124 261
262.social-links ul li {
263 display: inline-block;
264 margin: 1em;
79480124 265}
266
54b66df6 267.social-links ul li a {
020d4a03 268 height: 32px;
a0c95ad4 269 text-align: center;
54b66df6 270}
f5db486f 271.social-links ul li.spotify a {
020d4a03 272 color: var(--spotify);
f5db486f 273}
274.social-links ul li.twitter a {
020d4a03 275 color: var(--twitter);
f5db486f 276}
277.social-links ul li.instagram a {
020d4a03 278 color: var(--instagram);
f5db486f 279}
280.social-links ul li.github a {
020d4a03 281 color: var(--github);
f5db486f 282}
283
c5b57881 284a.rss_logo,
0446163e 285div.social-links ul li a span,
286div.page_header a img.logo {
29e3a25d 287 border: 0;
288 clip: rect(1px, 1px, 1px, 1px);
289 clip-path: inset(100%);
290 height: 1px;
291 overflow: hidden;
292 padding: 0;
293 position: absolute;
294 white-space: nowrap;
295 width: 1px;
f17ef185 296}
297
f17ef185 298
299/* Index include
300---------------------------------------------------------------------------- */
301
302.index_include {
303 width: 95%;
304 margin: 0 auto 15px;
f17ef185 305 padding: 8px;
306 -webkit-box-sizing: border-box;
307 -moz-box-sizing: border-box;
308 box-sizing: border-box;
309}
310
311/* Elements
312---------------------------------------------------------------------------- */
313
314.project_list,
315.shortlog,
316.tree,
317.commit_search,
318.history {
319 width: 95%;
320 margin: 0 auto 15px auto;
d1808a6c 321 border: 1px solid var(--border);
f17ef185 322 -moz-box-shadow: 0 0 3px rgba(0,0,0,0.2);
323 -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.2);
324 box-shadow: 0 0 3px rgba(0,0,0,0.2);
325}
326
327.project_list th,
328.shortlog th,
329.tree th,
330.commit_search th {
8eded2c6 331 background-color: var(--bluish-grey);
b2389564 332 color: var(--light-grey);
f17ef185 333 font-weight: normal;
334}
335
336.project_list th {
337 font-weight: bold;
338}
339
340.project_list tr,
341.shortlog tr,
342.tree tr,
343.commit_search tr {
0bb4a18e 344 background: var(--bg-alt);
f17ef185 345 height: 2.5em;
346 text-align: left;
0bb4a18e 347 color: var(--fg);
f17ef185 348}
349
350.project_list tr.dark, .project_list tr.light,
351.shortlog tr.dark, .shortlog tr.light,
352.tree tr.dark, .tree tr.light,
353.commit_search tr.dark, .commit_search tr.light,
354.history tr.dark, .history tr.light,
355.heads tr.dark, .heads tr.light {
356 background: #F9F9F9; /* old browsers */
357 background: -moz-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%); /* firefox */
358 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F9F9F9), color-stop(100%,#EFEFEF)); /* webkit */
359 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F9F9F9', endColorstr='#EFEFEF',GradientType=0 ); /* ie */
360 background: -o-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%);
361 height: 2.5em;
362 border-bottom: 1px solid #e1e1e1;
363}
364
365th .header {
366 background: transparent;
367 border: 0;
368 padding: 0;
369 font-weight: bold;
370}
371
372.tree {
373 width: 100%;
374 margin: 0;
375}
376
377.projsearch {
378 position: absolute;
379 right: 4%;
34c8b4ae 380 top: 40px;
f17ef185 381}
382
383.projsearch a {
384 display: none;
385}
386
387.commit_search {
34c8b4ae 388 background: var(--fg);
f17ef185 389}
390
391.page_nav,
392.list_head,
393.page_path,
394.search {
395 width: 94%;
396 background: #eaeaea;
397 color: #545454;
398 border: 1px solid #d8d8d8;
399 padding: 5px;
400 margin: 0 auto 15px auto;
401}
402
403.history {
404 background: #eaeaea;
405}
406
407.title {
408 margin: 0 auto 15px auto;
409 padding: 5px;
410 width: 95%;
411}
412
413.readme {
414 background: #eaf2f5;
415 border: 1px solid #bedce7;
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 {
9406f526 470 font-family: 'Red Hat Mono', monospace;
f17ef185 471 margin: 1em 0;
472 white-space: pre;
473}
474
475.readme tt, .readme code, .readme kbd, .readme samp {
9406f526 476 font-family: 'Red Hat Mono', monospace;
f17ef185 477}
478
479.readme blockquote {
480 margin: 1em;
481}
482
483.projects_list,
484.tags {
485 width: 95%;
486 background: #f0f0f0;
487 color: #545454;
488 border: 1px solid #d8d8d8;
489 padding: 5px;
490 margin: 0 auto 15px auto;
491}
492
493.heads {
494 width: 95%;
495 color: #545454;
496 border: 1px solid #d8d8d8;
497 padding: 5px;
498 margin: 0 auto 15px auto;
499}
500
501.header {
502 width: 94%;
503 margin: 0 auto 15px auto;
504 background: #eaf2f5;
505 border: 1px solid #bedce7;
506 padding: 5px;
507}
508
509.header .age {
510 float: left;
511 color: #000;
512 font-weight: bold;
513 width: 10em;
514}
515
516.title_text {
517 width: 94%;
518 background: #eaf2f5;
519 border: 1px solid #bedce7;
520 padding: 5px;
521 margin: 0 auto 0 auto;
522}
523
524.log_body {
525 width: 94%;
526 background: #eaf2f5;
527 border: 1px solid #bedce7;
528 border-top: 0;
529 padding: 5px;
530 margin: 0 auto 15px auto;
531}
532
533.page_body {
534 line-height: 1.4em;
535 width: 94%;
536 background: #f8f8f8;
537 border: 1px solid #d8d8d8;
538 padding: 5px;
539 margin: 15px auto 15px auto;
540}
541
542.diff_tree {
543 width: 95%;
544 background: #f0f0f0;
545 border: 1px solid #d8d8d8;
546 padding: 5px;
547 margin: 0 auto 15px auto;
548}
549
550.page_body > .list_head {
551 width: 98.5%;
552}
553
554.page_body > .diff_tree {
555 width: 99.5%;
556}
557
558.patch > .header {
559 width: 99%;
560}
561
562.author .avatar,
563.author_date .avatar {
564 position: relative;
565 top: 3px;
566}
567
568.object_header .avatar {
569 border: 1px solid #D8D8D8;
570 float: right;
571}
572
573.object_header td,
574.object_header th {
575 vertical-align: top;
576}
577
578/* Refs
579---------------------------------------------------------------------------- */
580
581span.refs span {
582 color: #707070;
583 display: inline-block;
584 margin: 0;
d9ae720e 585 background-color: var(--bg);
586 border: 1px solid var(--border);
f17ef185 587 border-radius: 3px;
588 height: 18px;
589 padding: 0 6px;
590 text-overflow: ellipsis;
591}
592
593span.refs span.ref {
594 color: #707070;
595 display: inline-block;
596 margin: 0;
d9ae720e 597 background-color: var(--bg-alt);
598 border: 1px solid var(--link);
f17ef185 599 border-radius: 3px;
600 height: 18px;
601 padding: 0 6px;
602 text-overflow: ellipsis;
12b03037 603/* Node vertical */
604 background-image: var(--ref-icon);
f17ef185 605 background-repeat: no-repeat;
606 padding-left: 18px;
607}
608
609span.refs span.tag {
610 color: #707070;
611 display: inline-block;
612 margin: 0;
613 background-color: #ffffab;
614 border: 1px solid #d9d93b;
615 border-radius: 3px;
616 height: 18px;
617 padding: 0 6px;
618 text-overflow: ellipsis;
12b03037 619/* tag icon */
620 background-image: var(--tag-icon);
f17ef185 621 background-repeat: no-repeat;
622 padding-left: 18px;
623}
624
625span.refs span.head {
626 color: #707070;
627 display: inline-block;
628 margin: 0;
629 background-color: #c4ffc4;
630 border: 1px solid #78ff78;
631 border-radius: 3px;
632 height: 18px;
633 padding: 0 6px;
634 text-overflow: ellipsis;
12b03037 635/* git branch */
636 background-image: var(--branch-icon);
f17ef185 637 background-repeat: no-repeat;
638 padding-left: 18px;
639}
640
641span.refs a {
642 color: #4e4e4e;
643 font: 11px "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, monospace;
644 line-height: 18px;
645}
646
647/* Diffs
648---------------------------------------------------------------------------- */
649
650div.diff.to_file a.path,
651div.diff.to_file {
652 color: #007000;
653}
654
655div.diff.from_file a.path,
656div.diff.from_file {
657 color: #aa0000;
658}
659
660.patch .header {
661 margin: 0;
662}
663
664.patchset {
665 overflow-x: auto;
666 overflow-y: hidden;
667}
668
669.chunk_header {
670 background: #eaf2f5;
671 color: #999;
672}
673
674.rem {
675 background: #ffdddd;
676}
677.rem .marked {
678 background: #ffaaaa;
679}
680.add {
681 background: #ddffdd;
682}
683.add .marked {
684 background: #7dff7d;
685}
686
687.extended_header {
688 width: 99.5%;
689}
690
691div.chunk_block {
692 overflow: hidden;
693}
694
695div.chunk_block div.old {
696 float: left;
697 width: 50%;
698 overflow: hidden;
699 border-right: 5px solid #EAF2F5;
700}
701
702div.chunk_block.rem,
703div.chunk_block.add {
704 background: transparent;
705}
706
707div.chunk_block div.old .add,
708div.chunk_block div.old .rem {
709 padding-right: 3px;
710}
711
712div.chunk_block div.new .add,
713div.chunk_block div.new .rem {
714 padding-left: 3px;
715}
716
717div.chunk_block div.new {
718 margin-left: 50%;
719 width: 50%;
720 border-left: 5px solid #EAF2F5;
721}
722
723/* Category
724---------------------------------------------------------------------------- */
725
726td.category {
341d7256 727 background: var(--accent); /* old browsers */
728 color: var(--dark-grey);
8eded2c6 729 padding-left: 3em;
f17ef185 730 font-weight: bold;
635675f3 731 border-bottom: 1px solid var(--border);
732 border-top: 1px solid var(--border);
f17ef185 733}
b4423bad 734td.category:before {
8eded2c6 735 content: "Cat.: ";
b4423bad 736}
f17ef185 737/* Age
738---------------------------------------------------------------------------- */
739
740/* noage: "No commits" */
741.project_list td.noage {
742 color: #cdcdcd;
743}
744
745/* age2: 60*60*24*2 <= age */
746.project_list td.age2, .blame td.age2 {
747 color: #545454;
748}
749
750/* age1: 60*60*2 <= age < 60*60*24*2 */
751.project_list td.age1 {
752 color: #009900;
753}
754
755/* age0: age < 60*60*2 */
756.project_list td.age0 {
757 color: #009900;
758 font-weight: bold;
759}
760
761/* File status
762---------------------------------------------------------------------------- */
763
764.diff_tree span.file_status.new {
765 color: #008000;
766}
767
768table.diff_tree span.file_status.deleted {
769 color: #c00000;
770}
771
772table.diff_tree span.file_status.moved,
773table.diff_tree span.file_status.mode_chnge {
774 color: #545454;
775}
776
777table.diff_tree span.file_status.copied {
778 color: #70a070;
779}
780
781span.cntrl {
782 border: dashed #aaaaaa;
783 border-width: 1px;
784 padding: 0px 2px 0px 2px;
785 margin: 0px 2px 0px 2px;
786}
787
788span.match {
789 background: #aaffaa;
790 color: #000;
791}
792
793td.error {
794 color: red;
795 background: yellow;
796}
797
798/* blob view */
799
800td.pre, div.pre, div.diff {
801 white-space: pre-wrap;
802}
803
804/* JavaScript-based timezone manipulation */
805
806.popup { /* timezone selection UI */
807 position: absolute;
808 /* "top: 0; right: 0;" would be better, if not for bugs in browsers */
809 top: 0; left: 0;
810 border: 1px solid #d8d8d8;
811 padding: 2px;
812 background-color: #f0f0f0;
813 font-style: normal;
814 color: #545454;
815 cursor: auto;
816}
817
818.close-button { /* close timezone selection UI without selecting */
819 /* float doesn't work within absolutely positioned container,
820 * if width of container is not set explicitly */
821 /* float: right; */
822 position: absolute;
823 top: 0px; right: 0px;
824 border: 1px solid #ffaaaa;
825 margin: 1px 1px 1px 1px;
826 padding-bottom: 2px;
827 width: 12px;
828 height: 10px;
829 font-size: 9px;
830 font-weight: bold;
831 text-align: center;
832 background-color: #ffdddd;
833 cursor: pointer;
834}
835
836/* Style definition generated by highlight 2.4.5, http://www.andre-simon.de/ */
837
838/* Highlighting theme definition: */
839
840.num { color:#6ecf36; }
841.esc { color:#ff00ff; }
842.str { color:#ff00d3; background-color: #edc9ec }
843.dstr { color:#818100; }
844.slc { color:#838183; font-style:italic; }
845.com { color:#838183; font-style:italic; }
846.dir { color:#008200; }
847.sym { color:#000000; }
848.line { color:#555555; }
849.kwa { color:#666666; font-weight:bold; }
850.kwb { color:#6b3099; }
851.kwc { color:#d4663d; }
852.kwd { color:#2928ff; }
853
d5af761b 854/*
855 * Styling for my custom added sections
856 */
857
858/* Header */
859div.site-header {
860 background-color: var(--bg-alt);
861 color: var(--fg);
769ac656 862 padding: 1em;
d5af761b 863}
864div.site-header h1 {
865 text-transform: uppercase;
a6a0a341 866 font-size: 2em;
34c8b4ae 867 padding: 0;
868 margin: 0;
869 line-height: 2em;
d5af761b 870}
6ee6f491 871div.site-header h1 img.site-logo {
872 height: 50px;
873 width: auto;
34c8b4ae 874 position: relative;
875 top: 15px;
6ee6f491 876}
d5af761b 877div.site-header h1 span.evident {
878 background-color: var(--accent);
879 color: var(--bg);
880}