Compare commits

...

2 commits

Author SHA1 Message Date
n
7bb40acf05 Merge pull request 'dark mode support (closes #1)' (#2) from darth_mode into main
Reviewed-on: #2
2023-01-16 18:39:28 +01:00
n
d4d027605c
dark mode support (closes #1) 2023-01-16 18:32:57 +01:00
3 changed files with 20 additions and 34 deletions

View file

@ -1,4 +1,6 @@
body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; }
:root {--body-bg:#F1EFE2;--body-color:black;--main-inside-color:#FFF;--link-color: #005600;}
@media (prefers-color-scheme: dark) {:root { --body-bg:#191b22;--body-color: #fcfcfc;--main-inside-color: #212529;--link-color: #00DD00;}}
body { font-family: Verdana, sans-serif; font-size: 12px; margin: 0; padding: 0; background-color:var(--body-bg);color:var(--body-color);}
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif;}
#content h1 {margin:0; padding:0; font-size: 24px; border-bottom: 1px solid #bbbbbb; color: #040;}
@ -53,7 +55,7 @@ h4, .wiki h3 {font-size: 1.4em;padding: 2px 10px 1px 0px;margin-bottom: 5px; bor
#main-menu li a:hover {background:#009F00; color:#fff;}
#main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;}
#main {background-color:#EEEEEE;}
#main {background-color:var(--main-inside-color);}
#sidebar{ float: right; width: 20%; position: relative; z-index: 9; padding: 0; margin-left: 1em; }
* html #sidebar{ width: 20%; }
@ -61,11 +63,10 @@ h4, .wiki h3 {font-size: 1.4em;padding: 2px 10px 1px 0px;margin-bottom: 5px; bor
#sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
* html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
#content { background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10;
background-image:url(images/faded_background.png);
#content { background-color: var(--main-inside-color); margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10;
background-image:url(images/kiwifoot128.png);
background-repeat: no-repeat;
background-position:right bottom;
min-height: 600px;
}
* html #content{ width: 80%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
html>body #content { height: auto; min-height: 600px; overflow: auto; }
@ -73,14 +74,12 @@ html>body #content { height: auto; min-height: 600px; overflow: auto; }
#main.nosidebar #sidebar{ display: none; }
#main.nosidebar #content{ width: auto; border-right: 0; }
/*#footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}*/
#footer {text-align: right; padding:0; font-size: 0.9em;}
#footer {text-align: right; padding:0; font-size: 0.9em; background-color: var(--body-bg); }
div.centeralign {margin-top:5em; margin-left: 5em; margin-right:5em; padding:1em; border: 2px solid #FDBF3B; background-color:#FFEBC1; text-align:center; background-image: url("images/login_box.jpg"); background-repeat:no-repeat; width: 22em; }
div.centeralign {margin-top:5em; margin-left: 5em; margin-right:5em; padding:1em; border: 2px solid #FDBF3B; background-color:var(--body-bg); text-align:center; /* background-image: url("images/login_box.jpg"); background-repeat:no-repeat; */ width: 22em; }
div.centeralign legend { display: none; }
div.centeralign fieldset{ border: none; }
/*div.connexion.level1 {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; background-image: url(http://kiwi.tourmentine.com/_themes/redmine.kiwi/images/login_box.jpg);}*/
div.connexion.level1 {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #000000; background-color:#FFEBC1; background-image: url("images/login_box.jpg"); }
div.connexion.level1 {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #000000; background-color:#FFEBC1; /* background-image: url("images/login_box.jpg"); */ }
#login-form td {padding: 6px; }
div.centeralign label.block {font-weight: bold; float:right; margin-bottom: 15px; }
div.centeralign label.simple {padding:6px; float:left}
@ -89,17 +88,15 @@ div.centeralign input.button {padding:6px; float:right}
.clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
/***** Links *****/
a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
a, a:link, a:visited{ color: #005600; text-decoration: none; }
a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
a:hover, a:active{ color: #005600; text-decoration: underline;}
a, a:link, a:visited{ color: var(--link-color); text-decoration: none; }
a:hover, a:active{ color: var(--link-color); text-decoration: underline;}
a img{ border: 0; }
a.issue.closed, .issue.closed a { text-decoration: line-through; }
/***** Tables *****/
table { border: 0px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-top: 10px; }
table th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; text-align: left}
table th { padding: 4px; white-space:nowrap; text-align: left}
table td { overflow: hidden; vertical-align: top;}
table td.id { width: 2%; text-align: center;}
table td.checkbox { width: 15px; padding: 0px;}
@ -140,7 +137,7 @@ table.list tbody tr:hover { background-color:#ffffdd; }
table td {padding:2px;}
table p {margin:0;}
.odd {background-color:#f6f7f8;}
tr {background-color:#ffffff; border: none;}
tr {border: none;}
.even {background-color: #fff;}
.highlight { background-color: #FCFD8D;}
@ -151,7 +148,7 @@ tr {background-color:#ffffff; border: none;}
div#dw__toc {
padding:6px;
margin-bottom: 10px;
background-color:#eeffee;
background-color:var(--body-bg);
color:#505050;
line-height:1.5em;
border: 1px solid #e4e4e4;
@ -172,7 +169,7 @@ div.square {
.splitcontentright{float:right; width:49%;}
form {display: inline;}
input.button {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;
background-color:#FFFFFF;
background-color:var(--body-bg);
border:1px solid #8CACBB;
color:#333333;
cursor:pointer;
@ -185,7 +182,8 @@ background:url("/lib/tpl/redmine-kiwi/images/buttonshadow.png") repeat-x scroll
font:80% "Lucida Grande",Verdana,Lucida,Helvetica,Arial,sans-serif;
}
input.edit {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;
background-color:#FFFFFF;
background-color:var(--body-bg);
color:var(--body-color);
border:1px solid #8CACBB;
padding:0.125em 0.4em;
}
@ -194,7 +192,7 @@ fieldset {border: 1px solid #e4e4e4; margin:0;}
legend {color: #484848;}
hr { width: 100%; height: 1px; background: #ccc; border: 0;}
textarea.wiki-edit { width: 99%; }
textarea { width: 100%; }
textarea { width: 100%; background-color:var(--body-bg); color:var(--body-color); }
li p {margin-top: 0;}
div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;}
@ -316,16 +314,6 @@ div.wiki pre, .code {
overflow-x: auto;
}
/*div.content {
background-color: #ffffdd;
border: 1px solid #e4e4e4;
padding: 4px;
line-height: 1.2em;
margin-bottom: 12px;
margin-right: 12px;
display: table
float: right; margin-left: 12px; margin-right: 0; width: auto;
}*/
* html div.wiki, div.toc div#dw__toc { width: 50%; } /* IE6 doesn't autosize div */
div.wiki div.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; }
@ -333,7 +321,6 @@ div.wiki div.toc.right { float: right; margin-left: 12px; margin-right: 0; width
div.wiki div.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; }
div.wiki, div.toc div#dw__toc a {
/*display: block;*/
font-size: 0.9em;
font-weight: normal;
text-decoration: none;

BIN
images/kiwifoot128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View file

@ -4,8 +4,8 @@
body{ background: #F1EFE2; }
div.info { display: none; }
#wrapper { background: #fff url(images/content-right.png) 100% 0 repeat-y; padding-right:10px; }
#wrapper2 { background: #fff url(images/content-left.png) repeat-y; padding-left:10px; }
#wrapper { background: var(--main-inside-color) url(images/content-right.png) 100% 0 repeat-y; padding-right:10px; }
#wrapper2 { background: var(--main-inside-color) url(images/content-left.png) repeat-y; padding-left:10px; }
#top-menu { font-size: 80%; height: 1.8em;}
@ -16,7 +16,6 @@ div.info { display: none; }
/* add a logo in the header */
#header {
/*background: #507AAA url(images/Logo_mondadori.png) no-repeat 20px 5px;*/
background: #507AAA;
padding-left: 16px;
margin-top: 100px;