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