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