playing with social icons shapes
[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;
267 padding: 0.5em;
b22a0d4a 268 width: 3em;
269 height: 3em;
cbb7d03c 270 text-align: center;
b0a5133c 271 border: 1px solid var(--fg);
cbb7d03c 272 -webkit-border-radius: 2em;
273 -moz-border-radius: 2em;
274 border-radius: 2em;
79480124 275}
276
54b66df6 277.social-links ul li a {
020d4a03 278 height: 32px;
a0c95ad4 279 text-align: center;
54b66df6 280}
f5db486f 281.social-links ul li.spotify a {
020d4a03 282 color: var(--spotify);
f5db486f 283}
284.social-links ul li.twitter a {
020d4a03 285 color: var(--twitter);
f5db486f 286}
287.social-links ul li.instagram a {
020d4a03 288 color: var(--instagram);
f5db486f 289}
290.social-links ul li.github a {
020d4a03 291 color: var(--github);
f5db486f 292}
293
c5b57881 294a.rss_logo,
0446163e 295div.social-links ul li a span,
296div.page_header a img.logo {
29e3a25d 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;
f17ef185 306}
307
f17ef185 308
309/* Index include
310---------------------------------------------------------------------------- */
311
312.index_include {
313 width: 95%;
314 margin: 0 auto 15px;
5ddc14e1 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);
f17ef185 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;
d1808a6c 333 border: 1px solid var(--border);
f17ef185 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
376th .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%;
34c8b4ae 391 top: 40px;
f17ef185 392}
393
394.projsearch a {
395 display: none;
396}
397
398.commit_search {
34c8b4ae 399 background: var(--fg);
f17ef185 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 {
9406f526 481 font-family: 'Red Hat Mono', monospace;
f17ef185 482 margin: 1em 0;
483 white-space: pre;
484}
485
486.readme tt, .readme code, .readme kbd, .readme samp {
9406f526 487 font-family: 'Red Hat Mono', monospace;
f17ef185 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
592span.refs span {
593 color: #707070;
594 display: inline-block;
595 margin: 0;
d9ae720e 596 background-color: var(--bg);
597 border: 1px solid var(--border);
f17ef185 598 border-radius: 3px;
599 height: 18px;
600 padding: 0 6px;
601 text-overflow: ellipsis;
602}
603
604span.refs span.ref {
605 color: #707070;
606 display: inline-block;
607 margin: 0;
d9ae720e 608 background-color: var(--bg-alt);
609 border: 1px solid var(--link);
f17ef185 610 border-radius: 3px;
611 height: 18px;
612 padding: 0 6px;
613 text-overflow: ellipsis;
12b03037 614/* Node vertical */
615 background-image: var(--ref-icon);
f17ef185 616 background-repeat: no-repeat;
617 padding-left: 18px;
618}
619
620span.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;
12b03037 630/* tag icon */
631 background-image: var(--tag-icon);
f17ef185 632 background-repeat: no-repeat;
633 padding-left: 18px;
634}
635
636span.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;
12b03037 646/* git branch */
647 background-image: var(--branch-icon);
f17ef185 648 background-repeat: no-repeat;
649 padding-left: 18px;
650}
651
652span.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
661div.diff.to_file a.path,
662div.diff.to_file {
663 color: #007000;
664}
665
666div.diff.from_file a.path,
667div.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
702div.chunk_block {
703 overflow: hidden;
704}
705
706div.chunk_block div.old {
707 float: left;
708 width: 50%;
709 overflow: hidden;
710 border-right: 5px solid #EAF2F5;
711}
712
713div.chunk_block.rem,
714div.chunk_block.add {
715 background: transparent;
716}
717
718div.chunk_block div.old .add,
719div.chunk_block div.old .rem {
720 padding-right: 3px;
721}
722
723div.chunk_block div.new .add,
724div.chunk_block div.new .rem {
725 padding-left: 3px;
726}
727
728div.chunk_block div.new {
729 margin-left: 50%;
730 width: 50%;
731 border-left: 5px solid #EAF2F5;
732}
733
734/* Category
735---------------------------------------------------------------------------- */
736
737td.category {
635675f3 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%);
f17ef185 742 font-weight: bold;
635675f3 743 border-bottom: 1px solid var(--border);
744 border-top: 1px solid var(--border);
f17ef185 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
778table.diff_tree span.file_status.deleted {
779 color: #c00000;
780}
781
782table.diff_tree span.file_status.moved,
783table.diff_tree span.file_status.mode_chnge {
784 color: #545454;
785}
786
787table.diff_tree span.file_status.copied {
788 color: #70a070;
789}
790
791span.cntrl {
792 border: dashed #aaaaaa;
793 border-width: 1px;
794 padding: 0px 2px 0px 2px;
795 margin: 0px 2px 0px 2px;
796}
797
798span.match {
799 background: #aaffaa;
800 color: #000;
801}
802
803td.error {
804 color: red;
805 background: yellow;
806}
807
808/* blob view */
809
810td.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
d5af761b 864/*
865 * Styling for my custom added sections
866 */
867
868/* Header */
869div.site-header {
870 background-color: var(--bg-alt);
871 color: var(--fg);
769ac656 872 padding: 1em;
d5af761b 873}
874div.site-header h1 {
875 text-transform: uppercase;
a6a0a341 876 font-size: 2em;
34c8b4ae 877 padding: 0;
878 margin: 0;
879 line-height: 2em;
d5af761b 880}
6ee6f491 881div.site-header h1 img.site-logo {
882 height: 50px;
883 width: auto;
34c8b4ae 884 position: relative;
885 top: 15px;
6ee6f491 886}
d5af761b 887div.site-header h1 span.evident {
888 background-color: var(--accent);
889 color: var(--bg);
890}