Fix visual bug in chrome while changing themes
This commit is contained in:
parent
f7fcf6788c
commit
24524a20fe
@ -4,5 +4,5 @@
|
|||||||
<rect x="0" y="0" width="50" height="100" fill="white" />
|
<rect x="0" y="0" width="50" height="100" fill="white" />
|
||||||
</mask>
|
</mask>
|
||||||
<circle cx="50" cy="50" r="50" fill="black" mask="url(#mask)" />
|
<circle cx="50" cy="50" r="50" fill="black" mask="url(#mask)" />
|
||||||
<circle cx="50" cy="50" r="45" fill-opacity="0" stroke="black" stroke-width="10" />
|
<circle cx="50" cy="50" r="45" fill-opacity="0" stroke="currentColor" stroke-width="10" />
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 373 B |
@ -76,3 +76,4 @@ body {
|
|||||||
.light {
|
.light {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,3 +76,4 @@ body {
|
|||||||
.dark {
|
.dark {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,6 +214,14 @@ h1, h2 {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.light, .dark {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-wrapper {
|
||||||
|
display: inline-block;
|
||||||
|
width: 1em;
|
||||||
|
}
|
||||||
.icon {
|
.icon {
|
||||||
-ms-interpolation-mode: nearest-neighbor;
|
-ms-interpolation-mode: nearest-neighbor;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -4,14 +4,16 @@
|
|||||||
<div class="section container" style="font-size: 14px;">
|
<div class="section container" style="font-size: 14px;">
|
||||||
<h2>Theme</h2>
|
<h2>Theme</h2>
|
||||||
<?php foreach (["auto", "light", "dark"] as $theme): ?>
|
<?php foreach (["auto", "light", "dark"] as $theme): ?>
|
||||||
<picture class="light">
|
<div class="icon-wrapper">
|
||||||
<source type="image/svg+xml" srcset="/assets/icons/light-mode/theme-<?= $theme ?>.svg">
|
<picture class="light">
|
||||||
<img class="icon" src="/assets/icons/light-mode/theme-<?= $theme ?>.png" alt="">
|
<source type="image/svg+xml" srcset="/assets/icons/light-mode/theme-<?= $theme ?>.svg">
|
||||||
</picture>
|
<img class="icon" src="/assets/icons/light-mode/theme-<?= $theme ?>.png" alt="">
|
||||||
<picture class="dark">
|
</picture>
|
||||||
<source type="image/svg+xml" srcset="/assets/icons/dark-mode/theme-<?= $theme ?>.svg">
|
<picture class="dark">
|
||||||
<img class="icon" src="/assets/icons/dark-mode/theme-<?= $theme ?>.png" alt="">
|
<source type="image/svg+xml" srcset="/assets/icons/dark-mode/theme-<?= $theme ?>.svg">
|
||||||
</picture>
|
<img class="icon" src="/assets/icons/dark-mode/theme-<?= $theme ?>.png" alt="">
|
||||||
|
</picture>
|
||||||
|
</div>
|
||||||
<span id="<?= $theme ?>-theme">
|
<span id="<?= $theme ?>-theme">
|
||||||
<a class="theme-btn" data-theme="<?= $theme ?>" href="/api/set_theme/<?= $name ?>.php">
|
<a class="theme-btn" data-theme="<?= $theme ?>" href="/api/set_theme/<?= $name ?>.php">
|
||||||
<?= ucwords($theme) ?>
|
<?= ucwords($theme) ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user