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