fix: wowmine site

This commit is contained in:
2026-11-17 20:28:58 +00:00
parent cd3e215b4d
commit 393a8cc6f5
8 changed files with 59 additions and 71 deletions
@@ -53,29 +53,6 @@
scrollbar-color: var(--line) var(--bg);
}
@media (prefers-color-scheme: light) {
:root:not([data-theme]) {
color-scheme: light;
--bg: #f3f2e8;
--surface: #fff;
--inset: #e7e9dc;
--ink: #202b21;
--muted: #53624c;
--line: #c8d1bd;
--focus: #47671d;
}
}
:root[data-theme="light"] {
color-scheme: light;
--bg: #f3f2e8;
--surface: #fff;
--inset: #e7e9dc;
--ink: #202b21;
--muted: #53624c;
--line: #c8d1bd;
--focus: #47671d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body-font); }
::selection { background: var(--grass); color: var(--action-ink); }
@@ -105,17 +82,6 @@ code { font-family: ui-monospace, "Cascadia Code", monospace; font-variant-numer
.main-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-8); margin-inline-start: auto; }
.main-nav a { display: flex; align-items: center; min-block-size: 48px; text-decoration: none; font-size: 14px; font-weight: 600; transition: color var(--ease); }
.main-nav a:hover { color: var(--muted); text-decoration: underline; }
.theme-toggle { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background var(--ease), transform var(--ease); }
.theme-toggle:hover { background: var(--inset); }
.theme-toggle:active { transform: translateY(2px); }
.theme-moon { display: none; }
:root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: block; }
@media (prefers-color-scheme: light) {
:root:not([data-theme]) .theme-sun { display: none; }
:root:not([data-theme]) .theme-moon { display: block; }
}
.hero { --focus: #e8b86c; position: relative; isolation: isolate; overflow: hidden; color: var(--hero-ink); background: #101a10; }
.hero-scene { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(9 20 10 / 88%), rgb(9 20 10 / 68%) 38%, rgb(9 20 10 / 9%) 78%), linear-gradient(0deg, rgb(9 20 10 / 48%), transparent 45%); }
@@ -1,22 +1,5 @@
// @ts-check
const root = document.documentElement;
const darkPreference = window.matchMedia("(prefers-color-scheme: dark)");
document.querySelectorAll("[data-theme-toggle]").forEach((button) => {
button.addEventListener("click", () => {
const dark = root.dataset.theme
? root.dataset.theme === "dark"
: darkPreference.matches;
root.dataset.theme = dark ? "light" : "dark";
button.setAttribute(
"aria-label",
dark ? "Включить тёмную тему" : "Включить светлую тему",
);
button.setAttribute("title", button.getAttribute("aria-label") ?? "");
});
});
document.querySelectorAll("[data-copy-address]").forEach((button) => {
button.addEventListener("click", async () => {
const address = document.getElementById("server-address");