#3712: Inverted svg images.

This commit is contained in:
Antonin Fischer 2022-10-08 10:45:04 +02:00
parent 8924de0bf0
commit 663a49b7ab
1 changed files with 20 additions and 5 deletions

View File

@ -1,10 +1,11 @@
:root { :root {
color-scheme: dark light; /* color-scheme: dark light;
supported-color-schemes: dark light; supported-color-schemes: dark light; */
--sidebar-width: 14em; --sidebar-width: 14em;
--sidebar-toggle-width: 24px; --sidebar-toggle-width: 24px;
--sidebar-theme-select: 13em; --sidebar-theme-select: 13em;
--svg-filter: invert(100%);
--background-color: var(--background); --background-color: var(--background);
--color: var(--foreground); --color: var(--foreground);
@ -94,6 +95,8 @@
} }
html[data-theme='light'] { html[data-theme='light'] {
--svg-filter: invert(0%);
/* basic theme */ /* basic theme */
--background: #eff4ff; --background: #eff4ff;
--foreground: #47555c; --foreground: #47555c;
@ -171,7 +174,7 @@ html[data-theme='light'] {
--color10D: #0e7c6b; --color10D: #0e7c6b;
--color10E: #bbccaa; --color10E: #bbccaa;
--color10F: #fedc56; --color10F: #fedc56;
--color110: #ffffff; --color110: #ffffff;
} }
html[data-theme='dark'] { html[data-theme='dark'] {
@ -1197,10 +1200,21 @@ pre .url {
background-color: var(--summary-row-hover-background-color); background-color: var(--summary-row-hover-background-color);
} }
/* CSS for beautiful.fg_normal */ /*
.svg_stroke, .svg_stroke,
.svg_fill { .svg_fill {
color: var(--svg-stroke-fill-color); color: #fff;
}
svg {
color: #fff;
fill: #fff;
stroke: #fff;
}
*/
img[src*='.svg'] {
filter: var(--svg-filter);
} }
#content>.components-relationship { #content>.components-relationship {
@ -1250,6 +1264,7 @@ pre .url {
} }
.img-object { .img-object {
filter: var(--svg-filter);
max-width: 100%; max-width: 100%;
padding: 5px; padding: 5px;
} }