mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
use separate opacity css for Qt 5.9/Chromium 56
Fixes black area on alternate Mac build: https://forums.ankiweb.net/t/statistics-bug-line-graph-graphic/3745
This commit is contained in:
parent
1dd6fed0e5
commit
bbbd3e95c5
1 changed files with 10 additions and 4 deletions
|
@ -4,13 +4,17 @@
|
|||
@use '../scss/core';
|
||||
|
||||
:root {
|
||||
--area-fill: #00000008;
|
||||
--area-stroke: #00000015;
|
||||
--area-fill: #000000;
|
||||
--area-fill-opacity: 0.03;
|
||||
--area-stroke: #000000;
|
||||
--area-stroke-opacity: 0.08;
|
||||
}
|
||||
|
||||
:root[class*="night-mode"] {
|
||||
--area-fill: #ffffff15;
|
||||
--area-stroke: #00000030;
|
||||
--area-fill: #ffffff;
|
||||
--area-fill-opacity: 0.08;
|
||||
--area-stroke: #000000;
|
||||
--area-stroke-opacity: 0.18;
|
||||
}
|
||||
|
||||
.graph-tooltip {
|
||||
|
@ -115,7 +119,9 @@
|
|||
.graph .area {
|
||||
pointer-events: none;
|
||||
fill: var(--area-fill);
|
||||
fill-opacity: var(--area-fill-opacity);
|
||||
stroke: var(--area-stroke);
|
||||
stroke-opacity: var(--area-stroke-opacity);
|
||||
}
|
||||
|
||||
.hoverzone rect {
|
||||
|
|
Loading…
Reference in a new issue