This commit is contained in:
2026-11-15 17:34:41 -08:00
parent bc7c89b528
commit 46152a464d
37 changed files with 1413 additions and 3919 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 MiB

View File

@@ -1,5 +1,4 @@
/* --- roots.css --- */
/* Google fonts loaded in head */
:root,
:root[data-theme="dark"] {
--bg: #000000;
@@ -125,336 +124,6 @@
--hl-inserted-bg: #f0fff4;
}
:root[data-theme="midnight"] {
--bg: #070913;
--text: #e2e8f0;
--text: #f8fafc;
--muted: #7f8ea3;
--border: #1a2234;
--bg-elevated: rgba(30, 41, 59, 0.5);
--bg-card: rgba(15, 23, 42, 0.55);
--bg-card-hover: rgba(30, 41, 59, 0.7);
--bg-code: #0b1120;
--code-inline-bg: #0f172a;
--code-inline-text: #38bdf8;
--code-text: #cbd5e1;
--bg-menu: #0b1120;
--bg-modal: rgba(11, 17, 32, 0.75);
--hover-bg: rgba(56, 189, 248, 0.08);
--search-bg: rgba(30, 41, 59, 0.4);
--search-panel-bg: rgba(11, 17, 32, 0.85);
--code-group-bg: #0b1329;
--code-group-panel-bg: #070913;
--code-tab-active: #38bdf8;
--footer-border: #1e293b;
--border-subtle: rgba(255, 255, 255, 0.06);
--btn-primary-bg: #38bdf8;
--btn-primary-text: #020617;
--btn-home-bg: #38bdf8;
--btn-home-text: #020617;
--callout-note-bg: rgba(56, 189, 248, 0.1);
--callout-info-bg: rgba(99, 102, 241, 0.12);
--callout-warning-bg: rgba(245, 158, 11, 0.15);
--callout-warning-text: #fbbf24;
--body-radial-tint: rgba(7, 9, 19, 0.85);
--skeleton-pulse-1: rgba(56, 189, 248, 0.05);
--skeleton-pulse-2: rgba(56, 189, 248, 0.15);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(56, 189, 248, 0.3);
--hl-comment: #64748b;
--hl-punct: #94a3b8;
--hl-func: #38bdf8;
--hl-keyword: #818cf8;
--hl-string: #34d399;
--hl-var: #f472b6;
--hl-op: #38bdf8;
--hl-num: #fbbf24;
--hl-param: #cbd5e1;
--hl-class: #67e8f9;
--hl-tag: #818cf8;
--hl-deleted-color: #f87171;
--hl-deleted-bg: rgba(248, 113, 113, 0.15);
--hl-inserted-color: #34d399;
--hl-inserted-bg: rgba(52, 211, 153, 0.15);
}
:root[data-theme="nord"] {
--bg: #2e3440;
--text: #eceff4;
--text: #88c0d0;
--muted: #d8dee9;
--border: #3b4252;
--bg-elevated: rgba(67, 76, 94, 0.5);
--bg-card: rgba(59, 66, 82, 0.5);
--bg-card-hover: rgba(67, 76, 94, 0.7);
--bg-code: #242933;
--code-inline-bg: #3b4252;
--code-inline-text: #eceff4;
--code-text: #d8dee9;
--bg-menu: #2e3440;
--bg-modal: rgba(46, 52, 64, 0.8);
--hover-bg: rgba(136, 192, 208, 0.1);
--search-bg: rgba(59, 66, 82, 0.5);
--search-panel-bg: rgba(46, 52, 64, 0.9);
--code-group-bg: #3b4252;
--code-group-panel-bg: #2e3440;
--code-tab-active: #88c0d0;
--footer-border: #3b4252;
--border-subtle: rgba(255, 255, 255, 0.05);
--btn-primary-bg: #88c0d0;
--btn-primary-text: #2e3440;
--btn-home-bg: #88c0d0;
--btn-home-text: #2e3440;
--callout-note-bg: rgba(129, 161, 193, 0.15);
--callout-info-bg: rgba(136, 192, 208, 0.15);
--callout-warning-bg: rgba(235, 203, 139, 0.15);
--callout-warning-text: #ebcb8b;
--body-radial-tint: rgba(46, 52, 64, 0.8);
--skeleton-pulse-1: rgba(216, 222, 233, 0.05);
--skeleton-pulse-2: rgba(216, 222, 233, 0.12);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(236, 239, 244, 0.3);
--hl-comment: #616e88;
--hl-punct: #d8dee9;
--hl-func: #88c0d0;
--hl-keyword: #81a1c1;
--hl-string: #a3be8c;
--hl-var: #d08770;
--hl-op: #81a1c1;
--hl-num: #b48ead;
--hl-param: #d8dee9;
--hl-class: #8fbcbb;
--hl-tag: #81a1c1;
--hl-deleted-color: #bf616a;
--hl-deleted-bg: rgba(191, 97, 106, 0.15);
--hl-inserted-color: #a3be8c;
--hl-inserted-bg: rgba(163, 190, 140, 0.15);
}
:root[data-theme="dracula"] {
--bg: #282a36;
--text: #f8f8f2;
--text: #bd93f9;
--muted: #6272a4;
--border: #44475a;
--bg-elevated: rgba(68, 71, 90, 0.5);
--bg-card: rgba(68, 71, 90, 0.4);
--bg-card-hover: rgba(68, 71, 90, 0.7);
--bg-code: #1e1f29;
--code-inline-bg: #44475a;
--code-inline-text: #ff79c6;
--code-text: #f8f8f2;
--bg-menu: #282a36;
--bg-modal: rgba(40, 42, 54, 0.85);
--hover-bg: rgba(189, 147, 249, 0.12);
--search-bg: rgba(68, 71, 90, 0.5);
--search-panel-bg: rgba(40, 42, 54, 0.9);
--code-group-bg: #44475a;
--code-group-panel-bg: #282a36;
--code-tab-active: #ff79c6;
--footer-border: #44475a;
--border-subtle: rgba(255, 255, 255, 0.07);
--btn-primary-bg: #bd93f9;
--btn-primary-text: #282a36;
--btn-home-bg: #bd93f9;
--btn-home-text: #282a36;
--callout-note-bg: rgba(189, 147, 249, 0.15);
--callout-info-bg: rgba(139, 233, 253, 0.15);
--callout-warning-bg: rgba(241, 250, 140, 0.15);
--callout-warning-text: #f1fa8c;
--body-radial-tint: rgba(40, 42, 54, 0.85);
--skeleton-pulse-1: rgba(98, 114, 164, 0.08);
--skeleton-pulse-2: rgba(98, 114, 164, 0.2);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(189, 147, 249, 0.3);
--hl-comment: #6272a4;
--hl-punct: #f8f8f2;
--hl-func: #50fa7b;
--hl-keyword: #ff79c6;
--hl-string: #f1fa8c;
--hl-var: #ffb86c;
--hl-op: #ff79c6;
--hl-num: #bd93f9;
--hl-param: #ffb86c;
--hl-class: #8be9fd;
--hl-tag: #ff79c6;
--hl-deleted-color: #ff5555;
--hl-deleted-bg: rgba(255, 85, 85, 0.15);
--hl-inserted-color: #50fa7b;
--hl-inserted-bg: rgba(80, 250, 123, 0.15);
}
:root[data-theme="forest"] {
--bg: #0d1612;
--text: #e2ede5;
--text: #86efac;
--muted: #739481;
--border: #1a2f24;
--bg-elevated: rgba(34, 76, 56, 0.35);
--bg-card: rgba(20, 42, 31, 0.45);
--bg-card-hover: rgba(28, 59, 44, 0.65);
--bg-code: #080f0c;
--code-inline-bg: #142a1f;
--code-inline-text: #86efac;
--code-text: #d1fae5;
--bg-menu: #0d1612;
--bg-modal: rgba(13, 22, 18, 0.85);
--hover-bg: rgba(134, 239, 172, 0.08);
--search-bg: rgba(26, 47, 36, 0.6);
--search-panel-bg: rgba(13, 22, 18, 0.9);
--code-group-bg: #15271e;
--code-group-panel-bg: #0d1612;
--code-tab-active: #86efac;
--footer-border: #1a2f24;
--border-subtle: rgba(255, 255, 255, 0.05);
--btn-primary-bg: #4ade80;
--btn-primary-text: #052e16;
--btn-home-bg: #4ade80;
--btn-home-text: #052e16;
--callout-note-bg: rgba(74, 222, 128, 0.12);
--callout-info-bg: rgba(45, 212, 191, 0.12);
--callout-warning-bg: rgba(250, 204, 21, 0.15);
--callout-warning-text: #fde047;
--body-radial-tint: rgba(13, 22, 18, 0.85);
--skeleton-pulse-1: rgba(134, 239, 172, 0.05);
--skeleton-pulse-2: rgba(134, 239, 172, 0.12);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(134, 239, 172, 0.3);
--hl-comment: #527561;
--hl-punct: #d1fae5;
--hl-func: #4ade80;
--hl-keyword: #2dd4bf;
--hl-string: #a7f3d0;
--hl-var: #fcd34d;
--hl-op: #34d399;
--hl-num: #fbbf24;
--hl-param: #e2ede5;
--hl-class: #6ee7b7;
--hl-tag: #2dd4bf;
--hl-deleted-color: #f87171;
--hl-deleted-bg: rgba(248, 113, 113, 0.15);
--hl-inserted-color: #4ade80;
--hl-inserted-bg: rgba(74, 222, 128, 0.15);
}
:root[data-theme="sunset"] {
--bg: #180d18;
--text: #fce7f3;
--text: #fb7185;
--muted: #a77c98;
--border: #3b1d36;
--bg-elevated: rgba(80, 30, 70, 0.35);
--bg-card: rgba(50, 20, 45, 0.5);
--bg-card-hover: rgba(75, 30, 68, 0.65);
--bg-code: #120712;
--code-inline-bg: #3b1d36;
--code-inline-text: #fda4af;
--code-text: #fbcfe8;
--bg-menu: #180d18;
--bg-modal: rgba(24, 13, 24, 0.85);
--hover-bg: rgba(251, 113, 133, 0.1);
--search-bg: rgba(59, 29, 54, 0.5);
--search-panel-bg: rgba(24, 13, 24, 0.9);
--code-group-bg: #2d1329;
--code-group-panel-bg: #180d18;
--code-tab-active: #fb7185;
--footer-border: #3b1d36;
--border-subtle: rgba(255, 255, 255, 0.05);
--btn-primary-bg: #f43f5e;
--btn-primary-text: #ffffff;
--btn-home-bg: #f43f5e;
--btn-home-text: #ffffff;
--callout-note-bg: rgba(251, 113, 133, 0.15);
--callout-info-bg: rgba(192, 132, 252, 0.15);
--callout-warning-bg: rgba(251, 146, 60, 0.15);
--callout-warning-text: #fdba74;
--body-radial-tint: rgba(24, 13, 24, 0.85);
--skeleton-pulse-1: rgba(251, 113, 133, 0.05);
--skeleton-pulse-2: rgba(251, 113, 133, 0.15);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(251, 113, 133, 0.3);
--hl-comment: #835b77;
--hl-punct: #fbcfe8;
--hl-func: #fb7185;
--hl-keyword: #c084fc;
--hl-string: #f472b6;
--hl-var: #fb923c;
--hl-op: #f43f5e;
--hl-num: #facc15;
--hl-param: #fce7f3;
--hl-class: #e879f9;
--hl-tag: #c084fc;
--hl-deleted-color: #f87171;
--hl-deleted-bg: rgba(248, 113, 113, 0.15);
--hl-inserted-color: #4ade80;
--hl-inserted-bg: rgba(74, 222, 128, 0.15);
}
:root[data-theme="cyberpunk"] {
--bg: #050508;
--text: #00ffcc;
--text: #ffe600;
--muted: #5e7a75;
--border: #1a2a26;
--bg-elevated: rgba(0, 255, 204, 0.08);
--bg-card: rgba(10, 20, 20, 0.7);
--bg-card-hover: rgba(20, 40, 35, 0.85);
--bg-code: #020204;
--code-inline-bg: rgba(0, 255, 204, 0.12);
--code-inline-text: #ffe600;
--code-text: #00ffcc;
--bg-menu: #08080f;
--bg-modal: rgba(5, 5, 8, 0.9);
--hover-bg: rgba(0, 255, 204, 0.1);
--search-bg: rgba(0, 255, 204, 0.08);
--search-panel-bg: rgba(8, 8, 15, 0.95);
--code-group-bg: #0e121a;
--code-group-panel-bg: #050508;
--code-tab-active: #ffe600;
--footer-border: #1a2a26;
--border-subtle: rgba(0, 255, 204, 0.15);
--btn-primary-bg: #ffe600;
--btn-primary-text: #000000;
--btn-home-bg: #00ffcc;
--btn-home-text: #000000;
--callout-note-bg: rgba(0, 255, 204, 0.12);
--callout-info-bg: rgba(255, 0, 128, 0.15);
--callout-warning-bg: rgba(255, 230, 0, 0.15);
--callout-warning-text: #ffe600;
--body-radial-tint: rgba(5, 5, 8, 0.9);
--skeleton-pulse-1: rgba(0, 255, 204, 0.05);
--skeleton-pulse-2: rgba(255, 230, 0, 0.12);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(0, 255, 204, 0.3);
--hl-comment: #3f5e58;
--hl-punct: #00ffcc;
--hl-func: #ffe600;
--hl-keyword: #ff007f;
--hl-string: #00f0ff;
--hl-var: #ff5500;
--hl-op: #ff007f;
--hl-num: #00ffcc;
--hl-param: #ffffff;
--hl-class: #ffe600;
--hl-tag: #ff007f;
--hl-deleted-color: #ff0055;
--hl-deleted-bg: rgba(255, 0, 85, 0.2);
--hl-inserted-color: #00ffcc;
--hl-inserted-bg: rgba(0, 255, 204, 0.2);
}
html.banner-dismissed,
body.banner-dismissed {
--header-height: 109px;
@@ -524,6 +193,20 @@ a {
}
/* --- layout.css --- */
html {
scroll-behavior: smooth;
}
main.prose h1,
main.prose h2,
main.prose h3,
main.prose h4,
main.prose h5,
main.prose h6 {
scroll-margin-top: calc(var(--header-height, 80px) + 28px);
cursor: pointer;
}
#header-container {
position: fixed;
top: 10px;
@@ -538,6 +221,83 @@ a {
border-radius: 30px;
}
.domain-goal-bar {
padding: 8px 20px 6px;
border-bottom: 1px solid var(--border);
transition: background 0.2s ease;
border-top-left-radius: 30px;
border-top-right-radius: 30px;
}
.domain-goal-bar:hover {
background: var(--hover-bg);
}
.domain-goal-link {
display: block;
text-decoration: none;
color: inherit;
}
.domain-goal-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
font-size: 11px;
font-weight: 600;
line-height: 1.3;
margin-bottom: 5px;
color: var(--muted);
}
.domain-goal-desc {
flex: 1;
color: var(--text);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.domain-goal-status {
color: var(--muted);
font-weight: 700;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
}
.domain-goal-track {
width: 100%;
height: 4px;
border-radius: 999px;
background: var(--hover-bg);
overflow: hidden;
}
.domain-goal-fill {
height: 100%;
background: linear-gradient(90deg, #10b981, #06b6d4);
border-radius: 999px;
transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 768px) {
.domain-goal-bar {
border-top-left-radius: 0;
border-top-right-radius: 0;
padding: 6px 12px 4px;
}
.domain-goal-desc {
font-size: 10px;
}
.domain-goal-status {
font-size: 10px;
}
}
#banner {
position: relative;
display: none;
@@ -706,7 +466,7 @@ a {
flex: 1;
min-width: 0;
max-width: 1000px;
margin-top: 120px;
margin-top: 160px;
border-radius: 12px;
width: 100%;
box-sizing: border-box;
@@ -1601,6 +1361,7 @@ body.is-home #mobile-bar {
width: 100%;
max-width: 100%;
padding-top: calc(env(safe-area-inset-top)) !important;
margin-top: 130px;
}
footer#site-footer {
@@ -1662,7 +1423,7 @@ body.is-home #mobile-bar {
}
#main-wrap {
margin-top: 100px;
margin-top: 120px;
}
#sidebar {
@@ -2617,8 +2378,18 @@ body.no-motion *::after {
display: block;
}
.search-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
z-index: 0;
}
.search-panel {
position: relative;
z-index: 1;
width: min(640px, calc(100vw - 24px));
margin: 52px auto 0;
border-radius: 20px;

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,17 @@
html {
scroll-behavior: smooth;
}
main.prose h1,
main.prose h2,
main.prose h3,
main.prose h4,
main.prose h5,
main.prose h6 {
scroll-margin-top: calc(var(--header-height, 80px) + 28px);
cursor: pointer;
}
#header-container {
position: fixed;
top: 10px;
@@ -12,6 +26,83 @@
border-radius: 30px;
}
.domain-goal-bar {
padding: 8px 20px 6px;
border-bottom: 1px solid var(--border);
transition: background 0.2s ease;
border-top-left-radius: 30px;
border-top-right-radius: 30px;
}
.domain-goal-bar:hover {
background: var(--hover-bg);
}
.domain-goal-link {
display: block;
text-decoration: none;
color: inherit;
}
.domain-goal-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
font-size: 11px;
font-weight: 600;
line-height: 1.3;
margin-bottom: 5px;
color: var(--muted);
}
.domain-goal-desc {
flex: 1;
color: var(--text);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.domain-goal-status {
color: var(--muted);
font-weight: 700;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
}
.domain-goal-track {
width: 100%;
height: 4px;
border-radius: 999px;
background: var(--hover-bg);
overflow: hidden;
}
.domain-goal-fill {
height: 100%;
background: linear-gradient(90deg, #10b981, #06b6d4);
border-radius: 999px;
transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 768px) {
.domain-goal-bar {
border-top-left-radius: 0;
border-top-right-radius: 0;
padding: 6px 12px 4px;
}
.domain-goal-desc {
font-size: 10px;
}
.domain-goal-status {
font-size: 10px;
}
}
#banner {
position: relative;
display: none;
@@ -180,7 +271,7 @@
flex: 1;
min-width: 0;
max-width: 1000px;
margin-top: 120px;
margin-top: 160px;
border-radius: 12px;
width: 100%;
box-sizing: border-box;
@@ -1075,6 +1166,7 @@ body.is-home #mobile-bar {
width: 100%;
max-width: 100%;
padding-top: calc(env(safe-area-inset-top)) !important;
margin-top: 130px;
}
footer#site-footer {
@@ -1136,7 +1228,7 @@ body.is-home #mobile-bar {
}
#main-wrap {
margin-top: 100px;
margin-top: 120px;
}
#sidebar {

View File

@@ -9,8 +9,18 @@
display: block;
}
.search-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
z-index: 0;
}
.search-panel {
position: relative;
z-index: 1;
width: min(640px, calc(100vw - 24px));
margin: 52px auto 0;
border-radius: 20px;

View File

@@ -1,4 +1,3 @@
/* Google fonts loaded in head */
:root,
:root[data-theme="dark"] {
--bg: #000000;
@@ -124,336 +123,6 @@
--hl-inserted-bg: #f0fff4;
}
:root[data-theme="midnight"] {
--bg: #070913;
--text: #e2e8f0;
--text: #f8fafc;
--muted: #7f8ea3;
--border: #1a2234;
--bg-elevated: rgba(30, 41, 59, 0.5);
--bg-card: rgba(15, 23, 42, 0.55);
--bg-card-hover: rgba(30, 41, 59, 0.7);
--bg-code: #0b1120;
--code-inline-bg: #0f172a;
--code-inline-text: #38bdf8;
--code-text: #cbd5e1;
--bg-menu: #0b1120;
--bg-modal: rgba(11, 17, 32, 0.75);
--hover-bg: rgba(56, 189, 248, 0.08);
--search-bg: rgba(30, 41, 59, 0.4);
--search-panel-bg: rgba(11, 17, 32, 0.85);
--code-group-bg: #0b1329;
--code-group-panel-bg: #070913;
--code-tab-active: #38bdf8;
--footer-border: #1e293b;
--border-subtle: rgba(255, 255, 255, 0.06);
--btn-primary-bg: #38bdf8;
--btn-primary-text: #020617;
--btn-home-bg: #38bdf8;
--btn-home-text: #020617;
--callout-note-bg: rgba(56, 189, 248, 0.1);
--callout-info-bg: rgba(99, 102, 241, 0.12);
--callout-warning-bg: rgba(245, 158, 11, 0.15);
--callout-warning-text: #fbbf24;
--body-radial-tint: rgba(7, 9, 19, 0.85);
--skeleton-pulse-1: rgba(56, 189, 248, 0.05);
--skeleton-pulse-2: rgba(56, 189, 248, 0.15);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(56, 189, 248, 0.3);
--hl-comment: #64748b;
--hl-punct: #94a3b8;
--hl-func: #38bdf8;
--hl-keyword: #818cf8;
--hl-string: #34d399;
--hl-var: #f472b6;
--hl-op: #38bdf8;
--hl-num: #fbbf24;
--hl-param: #cbd5e1;
--hl-class: #67e8f9;
--hl-tag: #818cf8;
--hl-deleted-color: #f87171;
--hl-deleted-bg: rgba(248, 113, 113, 0.15);
--hl-inserted-color: #34d399;
--hl-inserted-bg: rgba(52, 211, 153, 0.15);
}
:root[data-theme="nord"] {
--bg: #2e3440;
--text: #eceff4;
--text: #88c0d0;
--muted: #d8dee9;
--border: #3b4252;
--bg-elevated: rgba(67, 76, 94, 0.5);
--bg-card: rgba(59, 66, 82, 0.5);
--bg-card-hover: rgba(67, 76, 94, 0.7);
--bg-code: #242933;
--code-inline-bg: #3b4252;
--code-inline-text: #eceff4;
--code-text: #d8dee9;
--bg-menu: #2e3440;
--bg-modal: rgba(46, 52, 64, 0.8);
--hover-bg: rgba(136, 192, 208, 0.1);
--search-bg: rgba(59, 66, 82, 0.5);
--search-panel-bg: rgba(46, 52, 64, 0.9);
--code-group-bg: #3b4252;
--code-group-panel-bg: #2e3440;
--code-tab-active: #88c0d0;
--footer-border: #3b4252;
--border-subtle: rgba(255, 255, 255, 0.05);
--btn-primary-bg: #88c0d0;
--btn-primary-text: #2e3440;
--btn-home-bg: #88c0d0;
--btn-home-text: #2e3440;
--callout-note-bg: rgba(129, 161, 193, 0.15);
--callout-info-bg: rgba(136, 192, 208, 0.15);
--callout-warning-bg: rgba(235, 203, 139, 0.15);
--callout-warning-text: #ebcb8b;
--body-radial-tint: rgba(46, 52, 64, 0.8);
--skeleton-pulse-1: rgba(216, 222, 233, 0.05);
--skeleton-pulse-2: rgba(216, 222, 233, 0.12);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(236, 239, 244, 0.3);
--hl-comment: #616e88;
--hl-punct: #d8dee9;
--hl-func: #88c0d0;
--hl-keyword: #81a1c1;
--hl-string: #a3be8c;
--hl-var: #d08770;
--hl-op: #81a1c1;
--hl-num: #b48ead;
--hl-param: #d8dee9;
--hl-class: #8fbcbb;
--hl-tag: #81a1c1;
--hl-deleted-color: #bf616a;
--hl-deleted-bg: rgba(191, 97, 106, 0.15);
--hl-inserted-color: #a3be8c;
--hl-inserted-bg: rgba(163, 190, 140, 0.15);
}
:root[data-theme="dracula"] {
--bg: #282a36;
--text: #f8f8f2;
--text: #bd93f9;
--muted: #6272a4;
--border: #44475a;
--bg-elevated: rgba(68, 71, 90, 0.5);
--bg-card: rgba(68, 71, 90, 0.4);
--bg-card-hover: rgba(68, 71, 90, 0.7);
--bg-code: #1e1f29;
--code-inline-bg: #44475a;
--code-inline-text: #ff79c6;
--code-text: #f8f8f2;
--bg-menu: #282a36;
--bg-modal: rgba(40, 42, 54, 0.85);
--hover-bg: rgba(189, 147, 249, 0.12);
--search-bg: rgba(68, 71, 90, 0.5);
--search-panel-bg: rgba(40, 42, 54, 0.9);
--code-group-bg: #44475a;
--code-group-panel-bg: #282a36;
--code-tab-active: #ff79c6;
--footer-border: #44475a;
--border-subtle: rgba(255, 255, 255, 0.07);
--btn-primary-bg: #bd93f9;
--btn-primary-text: #282a36;
--btn-home-bg: #bd93f9;
--btn-home-text: #282a36;
--callout-note-bg: rgba(189, 147, 249, 0.15);
--callout-info-bg: rgba(139, 233, 253, 0.15);
--callout-warning-bg: rgba(241, 250, 140, 0.15);
--callout-warning-text: #f1fa8c;
--body-radial-tint: rgba(40, 42, 54, 0.85);
--skeleton-pulse-1: rgba(98, 114, 164, 0.08);
--skeleton-pulse-2: rgba(98, 114, 164, 0.2);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(189, 147, 249, 0.3);
--hl-comment: #6272a4;
--hl-punct: #f8f8f2;
--hl-func: #50fa7b;
--hl-keyword: #ff79c6;
--hl-string: #f1fa8c;
--hl-var: #ffb86c;
--hl-op: #ff79c6;
--hl-num: #bd93f9;
--hl-param: #ffb86c;
--hl-class: #8be9fd;
--hl-tag: #ff79c6;
--hl-deleted-color: #ff5555;
--hl-deleted-bg: rgba(255, 85, 85, 0.15);
--hl-inserted-color: #50fa7b;
--hl-inserted-bg: rgba(80, 250, 123, 0.15);
}
:root[data-theme="forest"] {
--bg: #0d1612;
--text: #e2ede5;
--text: #86efac;
--muted: #739481;
--border: #1a2f24;
--bg-elevated: rgba(34, 76, 56, 0.35);
--bg-card: rgba(20, 42, 31, 0.45);
--bg-card-hover: rgba(28, 59, 44, 0.65);
--bg-code: #080f0c;
--code-inline-bg: #142a1f;
--code-inline-text: #86efac;
--code-text: #d1fae5;
--bg-menu: #0d1612;
--bg-modal: rgba(13, 22, 18, 0.85);
--hover-bg: rgba(134, 239, 172, 0.08);
--search-bg: rgba(26, 47, 36, 0.6);
--search-panel-bg: rgba(13, 22, 18, 0.9);
--code-group-bg: #15271e;
--code-group-panel-bg: #0d1612;
--code-tab-active: #86efac;
--footer-border: #1a2f24;
--border-subtle: rgba(255, 255, 255, 0.05);
--btn-primary-bg: #4ade80;
--btn-primary-text: #052e16;
--btn-home-bg: #4ade80;
--btn-home-text: #052e16;
--callout-note-bg: rgba(74, 222, 128, 0.12);
--callout-info-bg: rgba(45, 212, 191, 0.12);
--callout-warning-bg: rgba(250, 204, 21, 0.15);
--callout-warning-text: #fde047;
--body-radial-tint: rgba(13, 22, 18, 0.85);
--skeleton-pulse-1: rgba(134, 239, 172, 0.05);
--skeleton-pulse-2: rgba(134, 239, 172, 0.12);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(134, 239, 172, 0.3);
--hl-comment: #527561;
--hl-punct: #d1fae5;
--hl-func: #4ade80;
--hl-keyword: #2dd4bf;
--hl-string: #a7f3d0;
--hl-var: #fcd34d;
--hl-op: #34d399;
--hl-num: #fbbf24;
--hl-param: #e2ede5;
--hl-class: #6ee7b7;
--hl-tag: #2dd4bf;
--hl-deleted-color: #f87171;
--hl-deleted-bg: rgba(248, 113, 113, 0.15);
--hl-inserted-color: #4ade80;
--hl-inserted-bg: rgba(74, 222, 128, 0.15);
}
:root[data-theme="sunset"] {
--bg: #180d18;
--text: #fce7f3;
--text: #fb7185;
--muted: #a77c98;
--border: #3b1d36;
--bg-elevated: rgba(80, 30, 70, 0.35);
--bg-card: rgba(50, 20, 45, 0.5);
--bg-card-hover: rgba(75, 30, 68, 0.65);
--bg-code: #120712;
--code-inline-bg: #3b1d36;
--code-inline-text: #fda4af;
--code-text: #fbcfe8;
--bg-menu: #180d18;
--bg-modal: rgba(24, 13, 24, 0.85);
--hover-bg: rgba(251, 113, 133, 0.1);
--search-bg: rgba(59, 29, 54, 0.5);
--search-panel-bg: rgba(24, 13, 24, 0.9);
--code-group-bg: #2d1329;
--code-group-panel-bg: #180d18;
--code-tab-active: #fb7185;
--footer-border: #3b1d36;
--border-subtle: rgba(255, 255, 255, 0.05);
--btn-primary-bg: #f43f5e;
--btn-primary-text: #ffffff;
--btn-home-bg: #f43f5e;
--btn-home-text: #ffffff;
--callout-note-bg: rgba(251, 113, 133, 0.15);
--callout-info-bg: rgba(192, 132, 252, 0.15);
--callout-warning-bg: rgba(251, 146, 60, 0.15);
--callout-warning-text: #fdba74;
--body-radial-tint: rgba(24, 13, 24, 0.85);
--skeleton-pulse-1: rgba(251, 113, 133, 0.05);
--skeleton-pulse-2: rgba(251, 113, 133, 0.15);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(251, 113, 133, 0.3);
--hl-comment: #835b77;
--hl-punct: #fbcfe8;
--hl-func: #fb7185;
--hl-keyword: #c084fc;
--hl-string: #f472b6;
--hl-var: #fb923c;
--hl-op: #f43f5e;
--hl-num: #facc15;
--hl-param: #fce7f3;
--hl-class: #e879f9;
--hl-tag: #c084fc;
--hl-deleted-color: #f87171;
--hl-deleted-bg: rgba(248, 113, 113, 0.15);
--hl-inserted-color: #4ade80;
--hl-inserted-bg: rgba(74, 222, 128, 0.15);
}
:root[data-theme="cyberpunk"] {
--bg: #050508;
--text: #00ffcc;
--text: #ffe600;
--muted: #5e7a75;
--border: #1a2a26;
--bg-elevated: rgba(0, 255, 204, 0.08);
--bg-card: rgba(10, 20, 20, 0.7);
--bg-card-hover: rgba(20, 40, 35, 0.85);
--bg-code: #020204;
--code-inline-bg: rgba(0, 255, 204, 0.12);
--code-inline-text: #ffe600;
--code-text: #00ffcc;
--bg-menu: #08080f;
--bg-modal: rgba(5, 5, 8, 0.9);
--hover-bg: rgba(0, 255, 204, 0.1);
--search-bg: rgba(0, 255, 204, 0.08);
--search-panel-bg: rgba(8, 8, 15, 0.95);
--code-group-bg: #0e121a;
--code-group-panel-bg: #050508;
--code-tab-active: #ffe600;
--footer-border: #1a2a26;
--border-subtle: rgba(0, 255, 204, 0.15);
--btn-primary-bg: #ffe600;
--btn-primary-text: #000000;
--btn-home-bg: #00ffcc;
--btn-home-text: #000000;
--callout-note-bg: rgba(0, 255, 204, 0.12);
--callout-info-bg: rgba(255, 0, 128, 0.15);
--callout-warning-bg: rgba(255, 230, 0, 0.15);
--callout-warning-text: #ffe600;
--body-radial-tint: rgba(5, 5, 8, 0.9);
--skeleton-pulse-1: rgba(0, 255, 204, 0.05);
--skeleton-pulse-2: rgba(255, 230, 0, 0.12);
--spider-display: none;
--cobweb-display: none;
--spider-thread: rgba(0, 255, 204, 0.3);
--hl-comment: #3f5e58;
--hl-punct: #00ffcc;
--hl-func: #ffe600;
--hl-keyword: #ff007f;
--hl-string: #00f0ff;
--hl-var: #ff5500;
--hl-op: #ff007f;
--hl-num: #00ffcc;
--hl-param: #ffffff;
--hl-class: #ffe600;
--hl-tag: #ff007f;
--hl-deleted-color: #ff0055;
--hl-deleted-bg: rgba(255, 0, 85, 0.2);
--hl-inserted-color: #00ffcc;
--hl-inserted-bg: rgba(0, 255, 204, 0.2);
}
html.banner-dismissed,
body.banner-dismissed {
--header-height: 109px;

View File

@@ -478,6 +478,13 @@ function renderDonationLeaderboard() {
}
});
var totalRaisedUsd = 0;
donations.forEach(function (d) {
var price = prices[d.coin] || 0;
totalRaisedUsd += d.amount * price;
});
updateDomainGoal(totalRaisedUsd);
var leaders = aggregateDonationLeaderboard(donations, prices);
if (!leaders.length) {
box.innerHTML = failedNetworks.length
@@ -493,3 +500,31 @@ function renderDonationLeaderboard() {
box.innerHTML = '<p class="muted-line">Donation data is temporarily unavailable.</p>';
});
}
function updateDomainGoal(totalUsd) {
var goalTarget = 14.00;
var raised = typeof totalUsd === "number" && !isNaN(totalUsd) ? totalUsd : 0;
try {
if (raised > 0) localStorage.setItem("vyla-domain-raised", String(raised));
else raised = Number(localStorage.getItem("vyla-domain-raised")) || 0;
} catch (e) { }
var pct = Math.min(100, Math.round((raised / goalTarget) * 100));
var textEl = document.getElementById("domain-goal-text");
var fillEl = document.getElementById("domain-goal-fill");
if (textEl) {
textEl.textContent = "$" + raised.toFixed(2) + " / $" + goalTarget.toFixed(2) + " (" + pct + "%)";
}
if (fillEl) {
fillEl.style.width = pct + "%";
}
}
if (typeof document !== "undefined") {
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", function () { updateDomainGoal(); });
} else {
updateDomainGoal();
}
}

View File

@@ -4,16 +4,6 @@ var ICONS = {
system: '<rect x="2" y="3" width="20" height="14" rx="2"/><path d="M8 21h8M12 17v4"/>',
light: '<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M6.3 17.7l-1.4 1.4M19.1 4.9l-1.4 1.4"/>',
dark: '<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/>',
midnight: '<path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 1 12 2Z"/>',
nord: '<path d="m2 12 5-5 5 5 5-5 5 5"/><path d="M12 7v14"/>',
dracula: '<path d="M7 3v7l5 3 5-3V3"/><path d="M7 14l5 7 5-7"/>',
forest: '<path d="m12 2 7 12h-4l3 6H6l3-6H5z"/>',
sunset: '<path d="M17 18a5 5 0 0 0-10 0"/><path d="M12 2v4M4.22 10.22l2.83 2.83M1 18h4M19 18h4M16.95 13.05l2.83-2.83M12 13a5 5 0 0 0-5 5h10a5 5 0 0 0-5-5z"/>',
cyberpunk: '<path d="M4 4h16v16H4z"/><path d="M4 9h16M9 4v16"/>',
halloween: '<circle cx="12" cy="12" r="9"/><path d="M9 10h.01M15 10h.01M8 15s1.5 2 4 2 4-2 4-2"/><path d="M12 3v3"/>',
christmas: '<path d="m12 3-5 7h3l-4 6h12l-4-6h3z"/><path d="M12 16v5"/>',
autumn: '<path d="M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z"/><path d="M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12"/>',
winter: '<path d="M12 2v20M4.93 7l14.14 10M4.93 17 19.07 7"/><path d="m9 4 3 2 3-2M9 20l3-2 3 2"/>',
auto: '<rect x="3" y="5" width="18" height="16" rx="2"/><path d="M16 3v4M8 3v4M3 11h18"/>',
sliders: '<path d="M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0"/><circle cx="16" cy="6" r="2"/><circle cx="10" cy="12" r="2"/><circle cx="18" cy="18" r="2"/>',
star: '<path d="m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z"/>',
@@ -30,24 +20,12 @@ var ICONS = {
var THEMES_GENERAL = [
{ id: "dark", label: "Dark" },
{ id: "light", label: "Light" },
{ id: "midnight", label: "Midnight" },
{ id: "nord", label: "Nord" },
{ id: "dracula", label: "Dracula" },
{ id: "forest", label: "Forest" },
{ id: "sunset", label: "Sunset" },
{ id: "cyberpunk", label: "Cyberpunk" }
{ id: "light", label: "Light" }
];
var THEME_MEDIA = {
dark: "/src/assets/images/wallpaper-media/tree.webp",
light: "/src/assets/images/wallpaper-media/tree.webp",
midnight: "/src/assets/images/wallpaper-media/tree.webp",
nord: "/src/assets/images/wallpaper-media/tree.webp",
dracula: "/src/assets/images/wallpaper-media/tree.webp",
forest: "/src/assets/images/wallpaper-media/tree.webp",
sunset: "/src/assets/images/wallpaper-media/tree.webp",
cyberpunk: "/src/assets/images/wallpaper-media/tree.webp"
light: "/src/assets/images/wallpaper-media/ocean.webp"
};
var SITE_TREE = [
@@ -92,21 +70,6 @@ var SITE_TREE = [
"file": "/products/tv.md",
"path": "/products/tv",
"hasMedia": true
},
{
"title": "Build a Player",
"file": "/products/player.md",
"path": "/products/player"
}
]
},
{
"title": "Concepts",
"items": [
{
"title": "Providers",
"file": "/concepts/providers.md",
"path": "/concepts/providers"
}
]
}
@@ -174,11 +137,6 @@ var SITE_TREE = [
"title": "Stream API Overview",
"file": "/stream-api/overview/index.md",
"path": "/stream-api/overview"
},
{
"title": "Authentication & Keys",
"file": "/stream-api/authentication/index.md",
"path": "/stream-api/authentication"
}
]
},
@@ -215,50 +173,29 @@ var SITE_TREE = [
}
]
},
{
"id": "guides",
"title": "Guides",
"path": "/guides/integrations",
"groups": [
{
"title": "Player Guides",
"items": [
{
"title": "Client Integration",
"file": "/guides/integrations.md",
"path": "/guides/integrations"
},
{
"title": "Error Handling",
"file": "/guides/error-handling.md",
"path": "/guides/error-handling"
}
]
}
]
},
{
"id": "resources",
"title": "Resources",
"path": "/resources/faq",
"path": "/misc/project/support-us",
"groups": [
{
"title": "Reference & Help",
"title": "Support Vyla",
"items": [
{
"title": "Support Us",
"file": "/misc/project/support-us.md",
"path": "/misc/project/support-us",
"hasMedia": true
}
]
},
{
"title": "Help & Questions",
"items": [
{
"title": "FAQ",
"file": "/resources/faq.md",
"path": "/resources/faq"
},
{
"title": "Troubleshooting",
"file": "/resources/troubleshooting.md",
"path": "/resources/troubleshooting"
},
{
"title": "Glossary",
"file": "/resources/glossary.md",
"path": "/resources/glossary"
}
]
},
@@ -280,11 +217,6 @@ var SITE_TREE = [
"file": "/misc/project/credit.md",
"path": "/misc/project/credit"
},
{
"title": "Support Us",
"file": "/misc/project/support-us.md",
"path": "/misc/project/support-us"
},
{
"title": "DMCA Policy",
"file": "/misc/project/DMCA.md",
@@ -327,9 +259,7 @@ function applyTheme() {
var targetSrc = THEME_MEDIA[theme] || THEME_MEDIA.dark;
if (typeof window !== "undefined" && window.innerWidth <= 768 && targetSrc && targetSrc.indexOf("tree.webp") !== -1) {
targetSrc = "/src/assets/images/wallpaper-media/tree-mobile.webp";
}
var videosOff = getPref("video", "on") === "off";
var isImageSource = /\.(jpe?g|png|gif|webp|avif|svg)(\?.*)?$/i.test(targetSrc || "");
@@ -1999,7 +1929,11 @@ function buildSearch() {
'<input id="search-input" type="text" placeholder="Search..." autocomplete="off" spellcheck="false"></div>' +
'<div id="search-results"></div><div class="search-footer"><span><kbd>↑</kbd><kbd>↓</kbd>Select</span><span><kbd>↵</kbd>Open</span><span class="close-hint"><kbd>esc</kbd>Close</span></div></div>';
document.body.appendChild(modal);
modal.querySelector(".search-backdrop").addEventListener("click", closeSearch);
modal.addEventListener("click", function (e) {
if (!e.target.closest(".search-panel")) {
closeSearch();
}
});
document.getElementById("search-input").addEventListener("input", function () { renderSearch(false); });
document.getElementById("search-results").addEventListener("click", function (e) {
var a = e.target.closest(".sr");
@@ -2246,8 +2180,43 @@ function initContribSheet() {
currentTranslate = closest;
panel.style.transform = "translateY(" + closest + "px)";
});
}
setTimeout(openSheet, 400);
function scrollToHeading(id) {
if (!id) return;
var el = document.getElementById(id);
if (!el) return;
var header = document.getElementById("header-container") || document.getElementById("navbar");
var offset = header ? header.offsetHeight + 24 : 90;
var topPos = el.getBoundingClientRect().top + window.pageYOffset - offset;
window.scrollTo({ top: Math.max(0, topPos), behavior: "smooth" });
if (window.history && window.history.pushState) {
window.history.pushState(null, "", "#" + id);
} else {
window.location.hash = id;
}
}
function bindHeadingClicks() {
document.addEventListener("click", function (e) {
var heading = e.target.closest("main.prose h1, main.prose h2, main.prose h3, main.prose h4, main.prose h5, main.prose h6");
if (heading && heading.id) {
e.preventDefault();
scrollToHeading(heading.id);
return;
}
var hashLink = e.target.closest('a[href^="#"]');
if (hashLink) {
var href = hashLink.getAttribute("href");
if (href && href.length > 1) {
var targetId = href.slice(1);
if (document.getElementById(targetId)) {
e.preventDefault();
scrollToHeading(targetId);
}
}
}
});
}
document.addEventListener("DOMContentLoaded", function () {
@@ -2275,6 +2244,7 @@ document.addEventListener("DOMContentLoaded", function () {
buildSettings();
initEasterEggs();
bindLightboxClicks();
bindHeadingClicks();
loadPage();
window.addEventListener("popstate", loadPage);

View File

@@ -17,7 +17,6 @@ function syncSettingsUI() {
m.querySelectorAll(".st-seg button").forEach(function (b) {
b.classList.toggle("on", b.getAttribute("data-v") === size);
});
settingsEl("set-video").checked = getPref("video", "on") !== "off";
}
var saveTimer = null;
@@ -83,9 +82,6 @@ function buildSettings() {
'<div class="st-row stack"><span class="st-text"><span class="st-label">Text size</span><span class="st-hint">Applies to documentation pages.</span></span>' +
'<div class="st-seg">' + sizes + "</div></div>" +
"</div></section>" +
'<section class="st-group"><h4 class="st-heading">Experience</h4><div class="st-card">' +
switchRow("set-video", "Background video", "Looping video behind each theme.") +
"</div></section>" +
"</div>" +
'<div class="st-bottom"><button type="button" class="sheet-btn-never st-reset">Reset</button><button type="button" class="sheet-btn-primary st-save">Save preferences</button></div>' +
"</div>";
@@ -192,13 +188,6 @@ function buildSettings() {
syncSettingsUI();
});
[["set-video", "video"]].forEach(function (pair) {
settingsEl(pair[0]).addEventListener("change", function () {
setPref(pair[1], this.checked ? null : "off");
applyTheme();
});
});
var drag = null;
handle.addEventListener("touchstart", function (e) {
if (window.innerWidth > 900) return;