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