working on colors for the table
[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;
f5db486f 60/* Icons */
d904bd06 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");
9406f526 66 --rss-icon:url("rss-dark.svg");
67 --opml-icon:url("opml-dark.svg");
f5db486f 68/* social colors */
69 --twitter: #1DA1F2;
70 --instagram: #E4405F;
a7e6a25b 71 --spotify: #1ed760;
f5db486f 72 --github: #6e5494;
b2b72247 73}
74@media screen and (prefers-color-scheme: dark) {
1bc0e66a 75 :root {
76 --bg: #393E46;
acb5821a 77 --bg-alt: #222831;
1bc0e66a 78 --fg: #D8D9CF;
05bbea0e 79 --border: 216,217,207,0.2;
a8dc308a 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");
9406f526 85 --rss-icon:url("rss.svg");
86 --opml-icon:url("opml.svg");
1bc0e66a 87 }
b2b72247 88}
89
f17ef185 90
21d9de84 91/* Main
f17ef185 92---------------------------------------------------------------------------- */
93
94html {
95 position: relative;
96 min-height: 100%;
97}
98
99body {
a6a0a341 100 font: 13px 'Montserrat',Helvetica,arial,freesans,clean,sans-serif;
f17ef185 101 line-height: 1.4;
102 margin: 0 0 105px;
b2b72247 103 background-color: var(--bg);
104 color: var(--fg);
f17ef185 105}
106
107/* Monospaced Fonts */
108.sha1, .mode, .diff_tree .list, .pre, .diff, .patchset {
a6a0a341 109 font-family: 'Red Hat Mono','Consolas','Bitstream Vera Sans Mono',monospace;
f17ef185 110}
111
112a:link, a:visited {
f17ef185 113 text-decoration: none;
114}
115
3020319e 116a:link {
117 color: var(--link);
118}
119
120a:visited {
121 color: var(--link-visited);
122}
123
f17ef185 124a:hover {
125 text-decoration: underline;
126}
127
128td.list a[href*='tree'], td.list a[href*='blob'] {
d904bd06 129 padding-left: 40px;
f17ef185 130 display: block;
131 float: left;
9325b442 132 height: 32px;
133 line-height: 32px;
f17ef185 134}
135
3020319e 136/* Folder Icon */
423a1cf3 137td.list a[href*='tree'] {
138 background: var(--dir-icon) center left no-repeat;
f17ef185 139}
140
3020319e 141/* File Icon */
f17ef185 142td.list a[href*='blob'] {
423a1cf3 143 background: var(--file-icon) center left no-repeat;
f17ef185 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;
d9ae720e 160 color: var(--fg);
f17ef185 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;
9406f526 178 font-family: 'Montserrat', Helvetica, Arial, Freesans, Clean, sans-serif;
a63053b2 179 background: var(--bluish-grey); /* old browsers */
0bb4a18e 180 background: linear-gradient(112deg, var(--accent) 10%, var(--bluish-grey) 75%);
05bbea0e 181 border-bottom: 1px solid rgba(var(--border));
f17ef185 182}
183
184.page_header a:link, .page_header a:visited {
5ddc14e1 185 color: var(--link);
f17ef185 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
ad601d12 207.page_header:before {
208 content: 'You\'re in: ';
209}
210
f17ef185 211/* Page Footer
212---------------------------------------------------------------------------- */
213
fdd09006 214.page_footer,
215.site-footer {
f17ef185 216 width: 100%;
a63053b2 217 background: var(--bluish-grey); /* old browsers */
0bb4a18e 218 background: linear-gradient(112deg, var(--bluish-grey) 10%, var(--accent) 65%);
79480124 219 margin: 0;
f17ef185 220}
221
fdd09006 222.page_footer {
27ee5f03 223 height: 40px;
27ee5f03 224 line-height: 40px;
7f75d732 225 border-top: 2px solid var(--border);
226 border-bottom: 1px solid var(--border);
fdd09006 227}
228
f17ef185 229.page_footer_text {
5ddc14e1 230 color: var(--fg);
27ee5f03 231 text-align: right;
3bacc307 232 padding-right: 2em;
f17ef185 233 display: inline;
fdd09006 234 float: right;
27ee5f03 235 width: calc(100% - 2em);
f17ef185 236 overflow: hidden;
237 white-space: nowrap;
238 text-overflow: ellipsis;
239}
240
27ee5f03 241.site-footer {
d3f8f269 242 position: absolute;
243 left: 0;
244 bottom: 0;
3bacc307 245 display: flex;
246 flex-direction: row;
247 flex-wrap: nowrap;
a0c95ad4 248 justify-content: space-around;
3cdb770b 249 align-items: center;
3bacc307 250 align-content: stretch;
27ee5f03 251}
252
3bacc307 253.site-footer .columns {
3bacc307 254 display: block;
5dc6bd48 255 flex-grow: 1;
3bacc307 256 flex-basis: auto;
5dc6bd48 257 align-self: stretch;
3bacc307 258 order: 0;
259}
79480124 260
261.social-links ul li {
262 display: inline-block;
263 margin: 1em;
79480124 264}
265
54b66df6 266.social-links ul li a {
020d4a03 267 height: 32px;
a0c95ad4 268 text-align: center;
54b66df6 269}
f5db486f 270.social-links ul li.spotify a {
020d4a03 271 color: var(--spotify);
f5db486f 272}
273.social-links ul li.twitter a {
020d4a03 274 color: var(--twitter);
f5db486f 275}
276.social-links ul li.instagram a {
020d4a03 277 color: var(--instagram);
f5db486f 278}
279.social-links ul li.github a {
020d4a03 280 color: var(--github);
f5db486f 281}
282
c5b57881 283a.rss_logo,
0446163e 284div.social-links ul li a span,
285div.page_header a img.logo {
29e3a25d 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;
f17ef185 295}
296
f17ef185 297
298/* Index include
299---------------------------------------------------------------------------- */
300
301.index_include {
302 width: 95%;
303 margin: 0 auto 15px;
f17ef185 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;
d1808a6c 320 border: 1px solid var(--border);
f17ef185 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 {
0bb4a18e 330 color: var(--bluish-grey);
f17ef185 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 {
0bb4a18e 342 background: var(--bg-alt);
f17ef185 343 height: 2.5em;
344 text-align: left;
0bb4a18e 345 color: var(--fg);
f17ef185 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%;
34c8b4ae 378 top: 40px;
f17ef185 379}
380
381.projsearch a {
382 display: none;
383}
384
385.commit_search {
34c8b4ae 386 background: var(--fg);
f17ef185 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 {
9406f526 468 font-family: 'Red Hat Mono', monospace;
f17ef185 469 margin: 1em 0;
470 white-space: pre;
471}
472
473.readme tt, .readme code, .readme kbd, .readme samp {
9406f526 474 font-family: 'Red Hat Mono', monospace;
f17ef185 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;
d9ae720e 583 background-color: var(--bg);
584 border: 1px solid var(--border);
f17ef185 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;
d9ae720e 595 background-color: var(--bg-alt);
596 border: 1px solid var(--link);
f17ef185 597 border-radius: 3px;
598 height: 18px;
599 padding: 0 6px;
600 text-overflow: ellipsis;
12b03037 601/* Node vertical */
602 background-image: var(--ref-icon);
f17ef185 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;
12b03037 617/* tag icon */
618 background-image: var(--tag-icon);
f17ef185 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;
12b03037 633/* git branch */
634 background-image: var(--branch-icon);
f17ef185 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 {
635675f3 725 background: var(--bg); /* old browsers */
726 background: -moz-linear-gradient(top, var(--bg) 0%, var(--fg) 100%); /* firefox */
727 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,var(--bg)), color-stop(100%,var(--fg))); /* webkit */
728 background: -o-linear-gradient(top, var(--bg) 0%, var(--fg) 100%);
f17ef185 729 font-weight: bold;
635675f3 730 border-bottom: 1px solid var(--border);
731 border-top: 1px solid var(--border);
f17ef185 732}
733
734/* Age
735---------------------------------------------------------------------------- */
736
737/* noage: "No commits" */
738.project_list td.noage {
739 color: #cdcdcd;
740}
741
742/* age2: 60*60*24*2 <= age */
743.project_list td.age2, .blame td.age2 {
744 color: #545454;
745}
746
747/* age1: 60*60*2 <= age < 60*60*24*2 */
748.project_list td.age1 {
749 color: #009900;
750}
751
752/* age0: age < 60*60*2 */
753.project_list td.age0 {
754 color: #009900;
755 font-weight: bold;
756}
757
758/* File status
759---------------------------------------------------------------------------- */
760
761.diff_tree span.file_status.new {
762 color: #008000;
763}
764
765table.diff_tree span.file_status.deleted {
766 color: #c00000;
767}
768
769table.diff_tree span.file_status.moved,
770table.diff_tree span.file_status.mode_chnge {
771 color: #545454;
772}
773
774table.diff_tree span.file_status.copied {
775 color: #70a070;
776}
777
778span.cntrl {
779 border: dashed #aaaaaa;
780 border-width: 1px;
781 padding: 0px 2px 0px 2px;
782 margin: 0px 2px 0px 2px;
783}
784
785span.match {
786 background: #aaffaa;
787 color: #000;
788}
789
790td.error {
791 color: red;
792 background: yellow;
793}
794
795/* blob view */
796
797td.pre, div.pre, div.diff {
798 white-space: pre-wrap;
799}
800
801/* JavaScript-based timezone manipulation */
802
803.popup { /* timezone selection UI */
804 position: absolute;
805 /* "top: 0; right: 0;" would be better, if not for bugs in browsers */
806 top: 0; left: 0;
807 border: 1px solid #d8d8d8;
808 padding: 2px;
809 background-color: #f0f0f0;
810 font-style: normal;
811 color: #545454;
812 cursor: auto;
813}
814
815.close-button { /* close timezone selection UI without selecting */
816 /* float doesn't work within absolutely positioned container,
817 * if width of container is not set explicitly */
818 /* float: right; */
819 position: absolute;
820 top: 0px; right: 0px;
821 border: 1px solid #ffaaaa;
822 margin: 1px 1px 1px 1px;
823 padding-bottom: 2px;
824 width: 12px;
825 height: 10px;
826 font-size: 9px;
827 font-weight: bold;
828 text-align: center;
829 background-color: #ffdddd;
830 cursor: pointer;
831}
832
833/* Style definition generated by highlight 2.4.5, http://www.andre-simon.de/ */
834
835/* Highlighting theme definition: */
836
837.num { color:#6ecf36; }
838.esc { color:#ff00ff; }
839.str { color:#ff00d3; background-color: #edc9ec }
840.dstr { color:#818100; }
841.slc { color:#838183; font-style:italic; }
842.com { color:#838183; font-style:italic; }
843.dir { color:#008200; }
844.sym { color:#000000; }
845.line { color:#555555; }
846.kwa { color:#666666; font-weight:bold; }
847.kwb { color:#6b3099; }
848.kwc { color:#d4663d; }
849.kwd { color:#2928ff; }
850
d5af761b 851/*
852 * Styling for my custom added sections
853 */
854
855/* Header */
856div.site-header {
857 background-color: var(--bg-alt);
858 color: var(--fg);
769ac656 859 padding: 1em;
d5af761b 860}
861div.site-header h1 {
862 text-transform: uppercase;
a6a0a341 863 font-size: 2em;
34c8b4ae 864 padding: 0;
865 margin: 0;
866 line-height: 2em;
d5af761b 867}
6ee6f491 868div.site-header h1 img.site-logo {
869 height: 50px;
870 width: auto;
34c8b4ae 871 position: relative;
872 top: 15px;
6ee6f491 873}
d5af761b 874div.site-header h1 span.evident {
875 background-color: var(--accent);
876 color: var(--bg);
877}