upgrade astro-icon to v1

This commit is contained in:
Sergey Yarkov 2025-06-02 13:58:42 +03:00
parent a496f44cc0
commit 63909d59ba
19 changed files with 1724 additions and 412 deletions

View File

@ -6,6 +6,7 @@ import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import solidJs from "@astrojs/solid-js";
import netlifyCMS from "astro-netlify-cms";
import icon from "astro-icon";
/**
* Rehype plugins
@ -39,6 +40,7 @@ export default defineConfig({
locales: Object.fromEntries(Object.keys(languages).map((key) => [key, key])),
},
}),
icon(),
solidJs(),
netlifyCMS({
adminPath: "/cms",

2052
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@
"@netlify/functions": "^2.1.0",
"@sindresorhus/slugify": "^2.2.1",
"astro": "^3.2.0",
"astro-icon": "^0.8.1",
"astro-icon": "^1.1.5",
"astro-netlify-cms": "^0.5.4",
"hast-util-to-string": "^3.0.0",
"hastscript": "^8.0.0",

View File

@ -1,6 +1,6 @@
---
import type { CollectionEntry } from "astro:content";
import { Icon } from "astro-icon";
import { Icon } from "astro-icon/components";
import { createDateFormatter } from "@root/utils";
import ArticleCover from "@components/ArticleCover.astro";
import ArticleComments from "@components/ArticleComments.astro";
@ -72,7 +72,7 @@ const t = useTranslation(Astro);
</article>
<script define:vars={{ slug, IS_DEV: import.meta.env.DEV }}>
(async () => {
(async () => {
if (IS_DEV) return;
const response = await fetch(`/api/views?slug=${slug}`, { method: "POST" });
if (!response.ok) return;
@ -80,7 +80,7 @@ const t = useTranslation(Astro);
const $views = document.getElementById("views");
if (isNaN(parseInt(views, 10))) return;
if ($views) $views.textContent = views;
})();
})();
</script>
<style lang="scss" is:global>

View File

@ -1,5 +1,5 @@
---
import { Icon } from "astro-icon";
import { Icon } from "astro-icon/components";
---
<div>

View File

@ -1,6 +1,6 @@
---
import { SITE_METADATA } from "@root/constants";
import { Icon } from "astro-icon";
import { Icon } from "astro-icon/components";
import TranslatedLink from "./TranslatedLink.astro";
import UIString from "./UIString.astro";
---

View File

@ -1,5 +1,5 @@
---
import { Icon } from "astro-icon";
import { Icon } from "astro-icon/components";
import { IS_SITE_UNDER_CONSTRUCTION, SITE_METADATA } from "@root/constants";
import ThemeSwitcher from "@components/ThemeSwticher";
import LanguageSelect from "@components/LanguageSelect.astro";
@ -8,7 +8,7 @@ import UIString from "@components/UIString.astro";
import TranslatedLink from "@components/TranslatedLink.astro";
---
<header {...(IS_SITE_UNDER_CONSTRUCTION ? { style: 'top: 45px;' } : {})}>
<header {...IS_SITE_UNDER_CONSTRUCTION ? { style: "top: 45px;" } : {}}>
<div class="container">
<div class="logo">
<TranslatedLink to="/">

View File

@ -1,5 +1,5 @@
---
import { Icon } from "astro-icon";
import { Icon } from "astro-icon/components";
import { DEFAULT_LANGUAGE, SUPPORTED_LANGUAGES, URL_BLOG_PREFIX } from "@root/constants";
import { getLanguageFromURL } from "@i18n/utils";

View File

@ -1,5 +1,5 @@
---
import { Icon } from "astro-icon";
import { Icon } from "astro-icon/components";
import type { CollectionEntry } from "astro:content";
import UIString from "@components/UIString.astro";
@ -27,14 +27,14 @@ const { icon, title, year, description, articleUrl, sourceUrl, demoUrl } = data;
{
articleUrl && (
<a class="btn-link" href={articleUrl} target="_blank">
<UIString key={'btn.article'} />
<UIString key={"btn.article"} />
</a>
)
}
{
sourceUrl && (
<a class="btn-link" href={sourceUrl} target="_blank">
<UIString key={'btn.sourceCode'} />
<UIString key={"btn.sourceCode"} />
<Icon name="link-out" width="15" height="15" />
</a>
)
@ -42,7 +42,7 @@ const { icon, title, year, description, articleUrl, sourceUrl, demoUrl } = data;
{
demoUrl && (
<a class="btn-link" href={demoUrl} target="_blank">
<UIString key={'btn.demo'} />
<UIString key={"btn.demo"} />
<Icon name="link-out" width="15" height="15" />
</a>
)

View File

@ -1,5 +1,5 @@
---
import { Icon } from "astro-icon";
import { Icon } from "astro-icon/components";
import type { CollectionEntry } from "astro:content";
export interface Props {

View File

@ -1,5 +1,5 @@
---
import { Icon } from "astro-icon";
import { Icon } from "astro-icon/components";
import TranslatedLink from "@components/TranslatedLink.astro";
export interface Props {

View File

@ -7,7 +7,7 @@ const MoonIcon: Component = () => (
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M10.4998 10.3311C9.39883 9.22975 8.64906 7.82674 8.34521 6.29939C8.04136 4.77203 8.19707 3.18889 8.79266 1.75C7.09451 2.08429 5.53468 2.91752 4.31266 4.14313C0.895781 7.56 0.895781 13.1005 4.31266 16.5174C7.73041 19.9351 13.27 19.9342 16.6878 16.5174C17.9131 15.2955 18.7462 13.736 19.0809 12.0382C17.642 12.6337 16.0589 12.7894 14.5316 12.4855C13.0042 12.1817 11.6012 11.432 10.4998 10.3311Z"
fill="#010409"
fill="black"
/>
</svg>
);
@ -16,7 +16,7 @@ const SunIcon: Component = () => (
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M6.12062 10.5C6.12062 12.9159 8.08587 14.8811 10.5017 14.8811C12.9176 14.8811 14.8829 12.9159 14.8829 10.5C14.8829 8.08413 12.9176 6.11888 10.5017 6.11888C8.08587 6.11888 6.12062 8.08413 6.12062 10.5ZM9.625 16.625H11.375V19.25H9.625V16.625ZM9.625 1.75H11.375V4.375H9.625V1.75ZM1.75 9.625H4.375V11.375H1.75V9.625ZM16.625 9.625H19.25V11.375H16.625V9.625ZM4.93238 17.3057L3.69513 16.0685L5.551 14.2126L6.78825 15.4499L4.93238 17.3057ZM14.2118 5.551L16.0685 3.69425L17.3057 4.9315L15.449 6.78825L14.2118 5.551ZM5.551 6.78912L3.69513 4.93238L4.93325 3.69513L6.78825 5.55187L5.551 6.78912ZM17.3057 16.0685L16.0685 17.3057L14.2118 15.449L15.449 14.2118L17.3057 16.0685Z"
fill="black"
fill="white"
/>
</svg>
);

View File

@ -1,3 +1,3 @@
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.45443 11.6532C3.37609 11.8671 3.21746 12.042 3.01222 12.1408C2.80699 12.2395 2.57133 12.2544 2.35533 12.1821C2.13932 12.1099 1.95999 11.9563 1.85545 11.754C1.7509 11.5516 1.72937 11.3165 1.79543 11.0985C1.77793 11.151 1.79543 11.0968 1.79543 11.0968C1.82655 11.0004 1.86277 10.9058 1.90393 10.8132C1.97393 10.647 2.07718 10.4177 2.21893 10.1465C2.50768 9.604 2.95743 8.88125 3.62068 8.1585C4.95943 6.69725 7.15218 5.25 10.4999 5.25C13.8477 5.25 16.0404 6.69725 17.3792 8.1585C18.0938 8.94246 18.6733 9.83956 19.0942 10.8132L19.1747 11.011C19.1799 11.025 19.1974 11.116 19.2149 11.2035L19.2499 11.375C19.2499 11.375 19.3969 11.9577 18.6514 12.2045C18.4319 12.2778 18.1922 12.2612 17.9849 12.1582C17.7777 12.0552 17.6196 11.8743 17.5454 11.655V11.6498L17.5349 11.6217C17.447 11.3969 17.3465 11.1773 17.2339 10.9637C16.9228 10.3767 16.5382 9.83153 16.0894 9.3415C15.0219 8.17775 13.2772 7 10.4999 7C7.72268 7 5.97793 8.17775 4.91043 9.3415C4.33248 9.97512 3.86247 10.6993 3.51918 11.4853C3.50082 11.5304 3.48332 11.5759 3.46668 11.6217L3.45443 11.6532V11.6532ZM6.99993 12.25C6.99993 11.3217 7.36868 10.4315 8.02506 9.77513C8.68143 9.11875 9.57167 8.75 10.4999 8.75C11.4282 8.75 12.3184 9.11875 12.9748 9.77513C13.6312 10.4315 13.9999 11.3217 13.9999 12.25C13.9999 13.1783 13.6312 14.0685 12.9748 14.7249C12.3184 15.3813 11.4282 15.75 10.4999 15.75C9.57167 15.75 8.68143 15.3813 8.02506 14.7249C7.36868 14.0685 6.99993 13.1783 6.99993 12.25V12.25Z" fill="#21262D"/>
<svg width="21" height="21" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
<path d="M3.45443 11.6532C3.37609 11.8671 3.21746 12.042 3.01222 12.1408C2.80699 12.2395 2.57133 12.2544 2.35533 12.1821C2.13932 12.1099 1.95999 11.9563 1.85545 11.754C1.7509 11.5516 1.72937 11.3165 1.79543 11.0985C1.77793 11.151 1.79543 11.0968 1.79543 11.0968C1.82655 11.0004 1.86277 10.9058 1.90393 10.8132C1.97393 10.647 2.07718 10.4177 2.21893 10.1465C2.50768 9.604 2.95743 8.88125 3.62068 8.1585C4.95943 6.69725 7.15218 5.25 10.4999 5.25C13.8477 5.25 16.0404 6.69725 17.3792 8.1585C18.0938 8.94246 18.6733 9.83956 19.0942 10.8132L19.1747 11.011C19.1799 11.025 19.1974 11.116 19.2149 11.2035L19.2499 11.375C19.2499 11.375 19.3969 11.9577 18.6514 12.2045C18.4319 12.2778 18.1922 12.2612 17.9849 12.1582C17.7777 12.0552 17.6196 11.8743 17.5454 11.655V11.6498L17.5349 11.6217C17.447 11.3969 17.3465 11.1773 17.2339 10.9637C16.9228 10.3767 16.5382 9.83153 16.0894 9.3415C15.0219 8.17775 13.2772 7 10.4999 7C7.72268 7 5.97793 8.17775 4.91043 9.3415C4.33248 9.97512 3.86247 10.6993 3.51918 11.4853C3.50082 11.5304 3.48332 11.5759 3.46668 11.6217L3.45443 11.6532V11.6532ZM6.99993 12.25C6.99993 11.3217 7.36868 10.4315 8.02506 9.77513C8.68143 9.11875 9.57167 8.75 10.4999 8.75C11.4282 8.75 12.3184 9.11875 12.9748 9.77513C13.6312 10.4315 13.9999 11.3217 13.9999 12.25C13.9999 13.1783 13.6312 14.0685 12.9748 14.7249C12.3184 15.3813 11.4282 15.75 10.4999 15.75C9.57167 15.75 8.68143 15.3813 8.02506 14.7249C7.36868 14.0685 6.99993 13.1783 6.99993 12.25V12.25Z" />
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1,3 +1,3 @@
<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.99297 1.84121C4.6459 1.83945 1.125 5.35859 1.125 9.70215C1.125 13.1369 3.32754 16.0566 6.39492 17.1289C6.80801 17.2326 6.74473 16.9391 6.74473 16.7387V15.3764C4.35938 15.6559 4.2627 14.0773 4.10273 13.8137C3.7793 13.2617 3.01465 13.1211 3.24316 12.8574C3.78633 12.5779 4.34004 12.9277 4.98164 13.8752C5.4457 14.5625 6.35098 14.4465 6.80977 14.3322C6.90996 13.9191 7.12441 13.55 7.41973 13.2635C4.94824 12.8205 3.91816 11.3123 3.91816 9.51933C3.91816 8.64922 4.20469 7.84941 4.76719 7.2043C4.40859 6.14082 4.80059 5.23027 4.85332 5.09492C5.87461 5.00351 6.93633 5.82617 7.01895 5.89121C7.59902 5.73476 8.26172 5.65215 9.00352 5.65215C9.74883 5.65215 10.4133 5.73828 10.9986 5.89648C11.1973 5.74531 12.1816 5.03867 13.1309 5.1248C13.1818 5.26016 13.565 6.14961 13.2275 7.19902C13.7971 7.8459 14.0871 8.65273 14.0871 9.52461C14.0871 11.3211 13.05 12.8311 10.5715 13.267C10.7838 13.4758 10.9523 13.7247 11.0673 13.9994C11.1823 14.274 11.2414 14.5689 11.2412 14.8666V16.8441C11.2553 17.0023 11.2412 17.1588 11.5049 17.1588C14.618 16.1094 16.8592 13.1686 16.8592 9.70391C16.8592 5.35859 13.3365 1.84121 8.99297 1.84121V1.84121Z" fill="#010409"/>
<svg width="18" height="19" viewBox="0 0 18 19" xmlns="http://www.w3.org/2000/svg">
<path d="M8.99297 1.84121C4.6459 1.83945 1.125 5.35859 1.125 9.70215C1.125 13.1369 3.32754 16.0566 6.39492 17.1289C6.80801 17.2326 6.74473 16.9391 6.74473 16.7387V15.3764C4.35938 15.6559 4.2627 14.0773 4.10273 13.8137C3.7793 13.2617 3.01465 13.1211 3.24316 12.8574C3.78633 12.5779 4.34004 12.9277 4.98164 13.8752C5.4457 14.5625 6.35098 14.4465 6.80977 14.3322C6.90996 13.9191 7.12441 13.55 7.41973 13.2635C4.94824 12.8205 3.91816 11.3123 3.91816 9.51933C3.91816 8.64922 4.20469 7.84941 4.76719 7.2043C4.40859 6.14082 4.80059 5.23027 4.85332 5.09492C5.87461 5.00351 6.93633 5.82617 7.01895 5.89121C7.59902 5.73476 8.26172 5.65215 9.00352 5.65215C9.74883 5.65215 10.4133 5.73828 10.9986 5.89648C11.1973 5.74531 12.1816 5.03867 13.1309 5.1248C13.1818 5.26016 13.565 6.14961 13.2275 7.19902C13.7971 7.8459 14.0871 8.65273 14.0871 9.52461C14.0871 11.3211 13.05 12.8311 10.5715 13.267C10.7838 13.4758 10.9523 13.7247 11.0673 13.9994C11.1823 14.274 11.2414 14.5689 11.2412 14.8666V16.8441C11.2553 17.0023 11.2412 17.1588 11.5049 17.1588C14.618 16.1094 16.8592 13.1686 16.8592 9.70391C16.8592 5.35859 13.3365 1.84121 8.99297 1.84121V1.84121Z" />
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,10 +1,10 @@
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<svg width="21" height="20" viewBox="0 0 21 20" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_753_2)">
<path d="M10.4463 0.0116577C9.6101 0.0140479 8.77739 0.119851 7.96715 0.326658C4.06715 1.29582 0.972981 4.82832 0.575481 8.83499C0.0838144 12.625 1.99965 16.5725 5.27881 18.53C8.49631 20.545 12.8563 20.4633 16.0071 18.3442C18.838 16.5058 20.6005 13.1542 20.4955 9.77332C20.4471 6.42666 18.5705 3.17666 15.6955 1.45666C14.1288 0.490824 12.2863 0.00499105 10.4471 0.012491L10.4463 0.0116577ZM10.3938 1.42499C14.5146 1.41916 18.5513 4.60249 18.9621 8.86166C19.7496 13.5783 15.8346 18.3725 11.0555 18.5117C6.51048 18.965 2.11881 15.1117 1.98881 10.5475C1.65048 6.85249 4.08631 3.18499 7.57048 1.96416C8.46874 1.60663 9.42702 1.42392 10.3938 1.42582V1.42499ZM14.6363 4.11166C12.3971 5.84916 10.253 7.70166 8.06215 9.49249C9.06465 9.50666 10.0721 9.50582 11.0796 9.50082C12.2546 7.69666 13.463 5.91749 14.6363 4.11166ZM9.91548 10.49C8.74048 12.295 7.53215 14.0808 6.35715 15.885C8.60131 14.1517 10.7363 12.285 12.9421 10.505C11.9333 10.4928 10.9244 10.4878 9.91548 10.49V10.49Z" fill="#010101"/>
<path d="M10.4463 0.0116577C9.6101 0.0140479 8.77739 0.119851 7.96715 0.326658C4.06715 1.29582 0.972981 4.82832 0.575481 8.83499C0.0838144 12.625 1.99965 16.5725 5.27881 18.53C8.49631 20.545 12.8563 20.4633 16.0071 18.3442C18.838 16.5058 20.6005 13.1542 20.4955 9.77332C20.4471 6.42666 18.5705 3.17666 15.6955 1.45666C14.1288 0.490824 12.2863 0.00499105 10.4471 0.012491L10.4463 0.0116577ZM10.3938 1.42499C14.5146 1.41916 18.5513 4.60249 18.9621 8.86166C19.7496 13.5783 15.8346 18.3725 11.0555 18.5117C6.51048 18.965 2.11881 15.1117 1.98881 10.5475C1.65048 6.85249 4.08631 3.18499 7.57048 1.96416C8.46874 1.60663 9.42702 1.42392 10.3938 1.42582V1.42499ZM14.6363 4.11166C12.3971 5.84916 10.253 7.70166 8.06215 9.49249C9.06465 9.50666 10.0721 9.50582 11.0796 9.50082C12.2546 7.69666 13.463 5.91749 14.6363 4.11166ZM9.91548 10.49C8.74048 12.295 7.53215 14.0808 6.35715 15.885C8.60131 14.1517 10.7363 12.285 12.9421 10.505C11.9333 10.4928 10.9244 10.4878 9.91548 10.49V10.49Z"/>
</g>
<defs>
<clipPath id="clip0_753_2">
<rect width="20" height="20" fill="white" transform="translate(0.5)"/>
<rect width="20" height="20" transform="translate(0.5)"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,3 +1,3 @@
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.12062 10.5C6.12062 12.9159 8.08587 14.8811 10.5017 14.8811C12.9176 14.8811 14.8829 12.9159 14.8829 10.5C14.8829 8.08413 12.9176 6.11888 10.5017 6.11888C8.08587 6.11888 6.12062 8.08413 6.12062 10.5ZM9.625 16.625H11.375V19.25H9.625V16.625ZM9.625 1.75H11.375V4.375H9.625V1.75ZM1.75 9.625H4.375V11.375H1.75V9.625ZM16.625 9.625H19.25V11.375H16.625V9.625ZM4.93238 17.3057L3.69513 16.0685L5.551 14.2126L6.78825 15.4499L4.93238 17.3057ZM14.2118 5.551L16.0685 3.69425L17.3057 4.9315L15.449 6.78825L14.2118 5.551ZM5.551 6.78912L3.69513 4.93238L4.93325 3.69513L6.78825 5.55187L5.551 6.78912ZM17.3057 16.0685L16.0685 17.3057L14.2118 15.449L15.449 14.2118L17.3057 16.0685Z" fill="black"/>
<svg width="21" height="21" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
<path d="M6.12062 10.5C6.12062 12.9159 8.08587 14.8811 10.5017 14.8811C12.9176 14.8811 14.8829 12.9159 14.8829 10.5C14.8829 8.08413 12.9176 6.11888 10.5017 6.11888C8.08587 6.11888 6.12062 8.08413 6.12062 10.5ZM9.625 16.625H11.375V19.25H9.625V16.625ZM9.625 1.75H11.375V4.375H9.625V1.75ZM1.75 9.625H4.375V11.375H1.75V9.625ZM16.625 9.625H19.25V11.375H16.625V9.625ZM4.93238 17.3057L3.69513 16.0685L5.551 14.2126L6.78825 15.4499L4.93238 17.3057ZM14.2118 5.551L16.0685 3.69425L17.3057 4.9315L15.449 6.78825L14.2118 5.551ZM5.551 6.78912L3.69513 4.93238L4.93325 3.69513L6.78825 5.55187L5.551 6.78912ZM17.3057 16.0685L16.0685 17.3057L14.2118 15.449L15.449 14.2118L17.3057 16.0685Z" />
</svg>

Before

Width:  |  Height:  |  Size: 791 B

After

Width:  |  Height:  |  Size: 767 B

View File

@ -1,3 +1,3 @@
<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15.5322 3.24087C15.5322 3.24087 16.9892 2.67275 16.8678 4.05248C16.8273 4.62061 16.4631 6.60905 16.1798 8.75983L15.2085 15.131C15.2085 15.131 15.1275 16.0643 14.399 16.2266C13.6705 16.3889 12.5778 15.6585 12.3754 15.4962C12.2135 15.3745 9.34005 13.5483 8.32822 12.6556C8.04491 12.4121 7.72114 11.9251 8.36869 11.357L12.6183 7.29894C13.1039 6.81196 13.5896 5.67571 11.566 7.05545L5.89991 10.9106C5.89991 10.9106 5.25236 11.3164 4.03823 10.9512L1.40753 10.1396C1.40753 10.1396 0.436204 9.53086 2.09556 8.92213C6.14276 7.01484 11.1208 5.06698 15.5322 3.24087Z" fill="#010409"/>
<svg width="18" height="19" viewBox="0 0 18 19" xmlns="http://www.w3.org/2000/svg">
<path d="M15.5322 3.24087C15.5322 3.24087 16.9892 2.67275 16.8678 4.05248C16.8273 4.62061 16.4631 6.60905 16.1798 8.75983L15.2085 15.131C15.2085 15.131 15.1275 16.0643 14.399 16.2266C13.6705 16.3889 12.5778 15.6585 12.3754 15.4962C12.2135 15.3745 9.34005 13.5483 8.32822 12.6556C8.04491 12.4121 7.72114 11.9251 8.36869 11.357L12.6183 7.29894C13.1039 6.81196 13.5896 5.67571 11.566 7.05545L5.89991 10.9106C5.89991 10.9106 5.25236 11.3164 4.03823 10.9512L1.40753 10.1396C1.40753 10.1396 0.436204 9.53086 2.09556 8.92213C6.14276 7.01484 11.1208 5.06698 15.5322 3.24087Z" />
</svg>

Before

Width:  |  Height:  |  Size: 688 B

After

Width:  |  Height:  |  Size: 662 B

View File

@ -19,6 +19,11 @@ body {
box-sizing: inherit;
}
[data-icon], svg {
color: var(--icon-primary);
fill: var(--icon-primary);
}
html {
font-size: 16px;
font-weight: normal;

View File

@ -109,7 +109,7 @@
--background-card: var(--color-gray-50);
/* Icons */
--icon-primary: var(--color-white);
--icon-primary: var(--color-black);
--icon-secondary: var(--color-gray-700);
}
@ -141,11 +141,6 @@
--image-filter: grayscale(50%);
& body > header svg,
& body > main svg:not([data-filter="none"]) {
filter: var(--icon-filter);
}
/*
https://sergeyski.com/css-color-scheme-and-iframes-lessons-learned-from-disqus-background-bug/
*/