mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
change color of chart in dark mode (#2995)
This commit is contained in:
parent
718a2e8281
commit
7f90b7826d
1 changed files with 42 additions and 13 deletions
|
@ -14,13 +14,32 @@
|
||||||
--background-color: #444;
|
--background-color: #444;
|
||||||
--text-color: #f0f0f0;
|
--text-color: #f0f0f0;
|
||||||
--link-color: #4498ff;
|
--link-color: #4498ff;
|
||||||
--pre-color: #e8e8e8;
|
--pre-color: #e8e8e8;
|
||||||
--pre-link-color: #cee4ff;
|
--pre-link-color: #cee4ff;
|
||||||
--code-color: #ccc;
|
--code-color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
#logo {
|
#logo {
|
||||||
filter: invert();
|
filter: invert();
|
||||||
|
}
|
||||||
|
|
||||||
|
.c3-tooltip th {
|
||||||
|
background: #6f6f6f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c3-tooltip td {
|
||||||
|
background: var(--background-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.c3-axis g,
|
||||||
|
.c3-axis text,
|
||||||
|
.c3-legend-item text {
|
||||||
|
fill: var(--text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.c3-axis line,
|
||||||
|
.c3-axis path.domain {
|
||||||
|
stroke: var(--text-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,13 +60,20 @@ body {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
h1, h2, h3, h4 {
|
h2,
|
||||||
|
h3,
|
||||||
|
h4 {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, p, table {
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
p,
|
||||||
|
table {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
@ -56,7 +82,8 @@ table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
td, th {
|
td,
|
||||||
|
th {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px dotted var(--table-border);
|
border: 1px dotted var(--table-border);
|
||||||
|
@ -77,14 +104,15 @@ pre a {
|
||||||
color: var(--pre-link-color);
|
color: var(--pre-link-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 a, h3 a {
|
h2 a,
|
||||||
|
h3 a {
|
||||||
display: none;
|
display: none;
|
||||||
color: #3bace5;
|
color: #3bace5;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2:hover a,
|
h2:hover a,
|
||||||
h3:hover a {
|
h3:hover a {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,7 +140,6 @@ header h1 {
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (max-device-width: 480px) {
|
@media only screen and (max-device-width: 480px) {
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -140,11 +167,13 @@ code {
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spinner {
|
@keyframes spinner {
|
||||||
to {transform: rotate(360deg);}
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.spinner:before {
|
.spinner:before {
|
||||||
content: '';
|
content: "";
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
|
@ -156,7 +185,7 @@ code {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 2px solid #ccc;
|
border: 2px solid #ccc;
|
||||||
border-top-color: #000;
|
border-top-color: #000;
|
||||||
animation: spinner .6s linear infinite;
|
animation: spinner 0.6s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
|
|
Loading…
Add table
Reference in a new issue