fixing gradients
[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 */
d267f817 179 background: -webkit-linear-gradient(bottom left, var(--bg) 0%, var(--fg) 100%); /* webkit */
180 background: linear-gradient(to top right, var(--bg) 0%, var(--fg) 100%);
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%;
635675f3 217 background: var(--bg); /* old browsers */
d267f817 218 background: -webkit-linear-gradient(bottom left, var(--bg) 0%, var(--fg) 100%); /* webkit */
219 background: linear-gradient(to top right, var(--bg) 0%, var(--fg) 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 {
5ddc14e1 231 color: var(--fg);
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;
5ddc14e1 305 background: -moz-linear-gradient(center top , var(--bg) 0%, var(--bg-alt) 100%) repeat scroll 0 0 transparent;
306 border: 1px solid var(--border);
f17ef185 307 padding: 8px;
308 -webkit-box-sizing: border-box;
309 -moz-box-sizing: border-box;
310 box-sizing: border-box;
311}
312
313/* Elements
314---------------------------------------------------------------------------- */
315
316.project_list,
317.shortlog,
318.tree,
319.commit_search,
320.history {
321 width: 95%;
322 margin: 0 auto 15px auto;
d1808a6c 323 border: 1px solid var(--border);
f17ef185 324 -moz-box-shadow: 0 0 3px rgba(0,0,0,0.2);
325 -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.2);
326 box-shadow: 0 0 3px rgba(0,0,0,0.2);
327}
328
329.project_list th,
330.shortlog th,
331.tree th,
332.commit_search th {
333 color: #afafaf;
334 font-weight: normal;
335}
336
337.project_list th {
338 font-weight: bold;
339}
340
341.project_list tr,
342.shortlog tr,
343.tree tr,
344.commit_search tr {
345 background: #eaeaea;
346 height: 2.5em;
347 text-align: left;
348 color: #545454;
349}
350
351.project_list tr.dark, .project_list tr.light,
352.shortlog tr.dark, .shortlog tr.light,
353.tree tr.dark, .tree tr.light,
354.commit_search tr.dark, .commit_search tr.light,
355.history tr.dark, .history tr.light,
356.heads tr.dark, .heads tr.light {
357 background: #F9F9F9; /* old browsers */
358 background: -moz-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%); /* firefox */
359 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F9F9F9), color-stop(100%,#EFEFEF)); /* webkit */
360 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F9F9F9', endColorstr='#EFEFEF',GradientType=0 ); /* ie */
361 background: -o-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%);
362 height: 2.5em;
363 border-bottom: 1px solid #e1e1e1;
364}
365
366th .header {
367 background: transparent;
368 border: 0;
369 padding: 0;
370 font-weight: bold;
371}
372
373.tree {
374 width: 100%;
375 margin: 0;
376}
377
378.projsearch {
379 position: absolute;
380 right: 4%;
34c8b4ae 381 top: 40px;
f17ef185 382}
383
384.projsearch a {
385 display: none;
386}
387
388.commit_search {
34c8b4ae 389 background: var(--fg);
f17ef185 390}
391
392.page_nav,
393.list_head,
394.page_path,
395.search {
396 width: 94%;
397 background: #eaeaea;
398 color: #545454;
399 border: 1px solid #d8d8d8;
400 padding: 5px;
401 margin: 0 auto 15px auto;
402}
403
404.history {
405 background: #eaeaea;
406}
407
408.title {
409 margin: 0 auto 15px auto;
410 padding: 5px;
411 width: 95%;
412}
413
414.readme {
415 background: #eaf2f5;
416 border: 1px solid #bedce7;
417 -moz-box-sizing: border-box;
418 -webkit-box-sizing: border-box;
419 box-sizing: border-box;
420 margin: 0 auto 15px auto;
421 padding: 15px;
422 width: 95%;
423}
424
425.readme h1 {
426 display: block;
427 font-size: 2em;
428 font-weight: bold;
429 margin-bottom: 0.67em;
430 margin-top: 0;
431}
432
433.readme h2 {
434 font-size: 1.5em;
435 font-weight: bold;
436 margin-bottom: 0.83em;
437}
438
439
440.readme h3 {
441 font-size: 1.17em;
442 font-weight: bold;
443 margin-bottom: 1em;
444}
445
446.readme p {
447 margin-bottom: 1em;
448}
449
450.readme ul {
451 list-style: disc;
452 margin-bottom: 1em;
453 margin-left: 1.5em;
454}
455
456.readme ul ul {
457 margin-bottom: 0;
458}
459
460.readme ol {
461 list-style: decimal;
462 margin-bottom: 1em;
463 margin-left: 1.5em;
464}
465
466.readme ol ol {
467 margin-bottom: 0;
468}
469
470.readme pre {
9406f526 471 font-family: 'Red Hat Mono', monospace;
f17ef185 472 margin: 1em 0;
473 white-space: pre;
474}
475
476.readme tt, .readme code, .readme kbd, .readme samp {
9406f526 477 font-family: 'Red Hat Mono', monospace;
f17ef185 478}
479
480.readme blockquote {
481 margin: 1em;
482}
483
484.projects_list,
485.tags {
486 width: 95%;
487 background: #f0f0f0;
488 color: #545454;
489 border: 1px solid #d8d8d8;
490 padding: 5px;
491 margin: 0 auto 15px auto;
492}
493
494.heads {
495 width: 95%;
496 color: #545454;
497 border: 1px solid #d8d8d8;
498 padding: 5px;
499 margin: 0 auto 15px auto;
500}
501
502.header {
503 width: 94%;
504 margin: 0 auto 15px auto;
505 background: #eaf2f5;
506 border: 1px solid #bedce7;
507 padding: 5px;
508}
509
510.header .age {
511 float: left;
512 color: #000;
513 font-weight: bold;
514 width: 10em;
515}
516
517.title_text {
518 width: 94%;
519 background: #eaf2f5;
520 border: 1px solid #bedce7;
521 padding: 5px;
522 margin: 0 auto 0 auto;
523}
524
525.log_body {
526 width: 94%;
527 background: #eaf2f5;
528 border: 1px solid #bedce7;
529 border-top: 0;
530 padding: 5px;
531 margin: 0 auto 15px auto;
532}
533
534.page_body {
535 line-height: 1.4em;
536 width: 94%;
537 background: #f8f8f8;
538 border: 1px solid #d8d8d8;
539 padding: 5px;
540 margin: 15px auto 15px auto;
541}
542
543.diff_tree {
544 width: 95%;
545 background: #f0f0f0;
546 border: 1px solid #d8d8d8;
547 padding: 5px;
548 margin: 0 auto 15px auto;
549}
550
551.page_body > .list_head {
552 width: 98.5%;
553}
554
555.page_body > .diff_tree {
556 width: 99.5%;
557}
558
559.patch > .header {
560 width: 99%;
561}
562
563.author .avatar,
564.author_date .avatar {
565 position: relative;
566 top: 3px;
567}
568
569.object_header .avatar {
570 border: 1px solid #D8D8D8;
571 float: right;
572}
573
574.object_header td,
575.object_header th {
576 vertical-align: top;
577}
578
579/* Refs
580---------------------------------------------------------------------------- */
581
582span.refs span {
583 color: #707070;
584 display: inline-block;
585 margin: 0;
d9ae720e 586 background-color: var(--bg);
587 border: 1px solid var(--border);
f17ef185 588 border-radius: 3px;
589 height: 18px;
590 padding: 0 6px;
591 text-overflow: ellipsis;
592}
593
594span.refs span.ref {
595 color: #707070;
596 display: inline-block;
597 margin: 0;
d9ae720e 598 background-color: var(--bg-alt);
599 border: 1px solid var(--link);
f17ef185 600 border-radius: 3px;
601 height: 18px;
602 padding: 0 6px;
603 text-overflow: ellipsis;
12b03037 604/* Node vertical */
605 background-image: var(--ref-icon);
f17ef185 606 background-repeat: no-repeat;
607 padding-left: 18px;
608}
609
610span.refs span.tag {
611 color: #707070;
612 display: inline-block;
613 margin: 0;
614 background-color: #ffffab;
615 border: 1px solid #d9d93b;
616 border-radius: 3px;
617 height: 18px;
618 padding: 0 6px;
619 text-overflow: ellipsis;
12b03037 620/* tag icon */
621 background-image: var(--tag-icon);
f17ef185 622 background-repeat: no-repeat;
623 padding-left: 18px;
624}
625
626span.refs span.head {
627 color: #707070;
628 display: inline-block;
629 margin: 0;
630 background-color: #c4ffc4;
631 border: 1px solid #78ff78;
632 border-radius: 3px;
633 height: 18px;
634 padding: 0 6px;
635 text-overflow: ellipsis;
12b03037 636/* git branch */
637 background-image: var(--branch-icon);
f17ef185 638 background-repeat: no-repeat;
639 padding-left: 18px;
640}
641
642span.refs a {
643 color: #4e4e4e;
644 font: 11px "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, monospace;
645 line-height: 18px;
646}
647
648/* Diffs
649---------------------------------------------------------------------------- */
650
651div.diff.to_file a.path,
652div.diff.to_file {
653 color: #007000;
654}
655
656div.diff.from_file a.path,
657div.diff.from_file {
658 color: #aa0000;
659}
660
661.patch .header {
662 margin: 0;
663}
664
665.patchset {
666 overflow-x: auto;
667 overflow-y: hidden;
668}
669
670.chunk_header {
671 background: #eaf2f5;
672 color: #999;
673}
674
675.rem {
676 background: #ffdddd;
677}
678.rem .marked {
679 background: #ffaaaa;
680}
681.add {
682 background: #ddffdd;
683}
684.add .marked {
685 background: #7dff7d;
686}
687
688.extended_header {
689 width: 99.5%;
690}
691
692div.chunk_block {
693 overflow: hidden;
694}
695
696div.chunk_block div.old {
697 float: left;
698 width: 50%;
699 overflow: hidden;
700 border-right: 5px solid #EAF2F5;
701}
702
703div.chunk_block.rem,
704div.chunk_block.add {
705 background: transparent;
706}
707
708div.chunk_block div.old .add,
709div.chunk_block div.old .rem {
710 padding-right: 3px;
711}
712
713div.chunk_block div.new .add,
714div.chunk_block div.new .rem {
715 padding-left: 3px;
716}
717
718div.chunk_block div.new {
719 margin-left: 50%;
720 width: 50%;
721 border-left: 5px solid #EAF2F5;
722}
723
724/* Category
725---------------------------------------------------------------------------- */
726
727td.category {
635675f3 728 background: var(--bg); /* old browsers */
729 background: -moz-linear-gradient(top, var(--bg) 0%, var(--fg) 100%); /* firefox */
730 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,var(--bg)), color-stop(100%,var(--fg))); /* webkit */
731 background: -o-linear-gradient(top, var(--bg) 0%, var(--fg) 100%);
f17ef185 732 font-weight: bold;
635675f3 733 border-bottom: 1px solid var(--border);
734 border-top: 1px solid var(--border);
f17ef185 735}
736
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}