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