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