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