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