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