server : adjust for dark/light mode
This commit is contained in:
parent
368c41cb5b
commit
750299726d
1 changed files with 9 additions and 4 deletions
|
@ -109,8 +109,7 @@
|
|||
|
||||
.popover-content {
|
||||
position: absolute;
|
||||
background-color: #777;
|
||||
border: 1px solid #ccc;
|
||||
background-color: white;
|
||||
padding: 0.2em;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
@ -145,6 +144,12 @@
|
|||
font-size: 80%;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.popover-content {
|
||||
background-color: #777;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="module">
|
||||
|
@ -419,7 +424,7 @@
|
|||
const probColor = (p) => {
|
||||
const r = Math.floor(192 * (1 - p));
|
||||
const g = Math.floor(192 * p);
|
||||
return `rgba(${r},${g},0,0.75)`;
|
||||
return `rgba(${r},${g},0,0.3)`;
|
||||
}
|
||||
|
||||
const Probabilites = (params) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue