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