mirror of
https://github.com/Patiun/com.gregkilmer.www.git
synced 2026-11-07 19:58:24 +00:00
Make the background seals a little stronger in light mode
A --gk-ghost token scales the faint edge seals, panel seals and banners: 1 in dark, 1.6 in light, so their lines read on Starlight. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012aSbo2D1qP8cMFQCykf7kx
This commit is contained in:
@@ -39,7 +39,7 @@ const other = second === false ? null : (second ?? first);
|
|||||||
top: 760px;
|
top: 760px;
|
||||||
width: 620px;
|
width: 620px;
|
||||||
height: 620px;
|
height: 620px;
|
||||||
opacity: 0.07;
|
opacity: calc(0.07 * var(--gk-ghost));
|
||||||
transform: rotate(-10deg);
|
transform: rotate(-10deg);
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
@@ -47,7 +47,7 @@ const other = second === false ? null : (second ?? first);
|
|||||||
top: 64%;
|
top: 64%;
|
||||||
width: 560px;
|
width: 560px;
|
||||||
height: 560px;
|
height: 560px;
|
||||||
opacity: 0.06;
|
opacity: calc(0.06 * var(--gk-ghost));
|
||||||
transform: rotate(8deg);
|
transform: rotate(8deg);
|
||||||
}
|
}
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ const decs = [60, 30, 0, -30].map((d, i) => ({ at: (i / 4) * 100, label: `${d >
|
|||||||
top: -40px;
|
top: -40px;
|
||||||
width: 900px;
|
width: 900px;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
opacity: 0.22;
|
opacity: calc(0.22 * var(--gk-ghost));
|
||||||
}
|
}
|
||||||
.nav {
|
.nav {
|
||||||
max-width: var(--gk-page-max);
|
max-width: var(--gk-page-max);
|
||||||
|
|||||||
@@ -48,6 +48,8 @@
|
|||||||
--gk-wash: 1;
|
--gk-wash: 1;
|
||||||
/* The star chart grid behind the page; off in dark, faint ink lines in light. */
|
/* The star chart grid behind the page; off in dark, faint ink lines in light. */
|
||||||
--gk-chart: none;
|
--gk-chart: none;
|
||||||
|
/* How strong the faint seals behind pages and panels are; light mode lifts them. */
|
||||||
|
--gk-ghost: 1;
|
||||||
|
|
||||||
--gk-filament: linear-gradient(90deg, transparent, var(--gk-gold) 25%, var(--gk-teal-bright) 75%, transparent);
|
--gk-filament: linear-gradient(90deg, transparent, var(--gk-gold) 25%, var(--gk-teal-bright) 75%, transparent);
|
||||||
|
|
||||||
@@ -111,6 +113,7 @@
|
|||||||
--gk-midnight-rgb: 255, 255, 255;
|
--gk-midnight-rgb: 255, 255, 255;
|
||||||
--gk-dust-accent-rgb: 106, 47, 224;
|
--gk-dust-accent-rgb: 106, 47, 224;
|
||||||
--gk-wash: 0.5;
|
--gk-wash: 0.5;
|
||||||
|
--gk-ghost: 1.6;
|
||||||
--gk-chart:
|
--gk-chart:
|
||||||
repeating-linear-gradient(0deg, rgba(19, 28, 43, 0.032) 0 1px, transparent 1px 44px),
|
repeating-linear-gradient(0deg, rgba(19, 28, 43, 0.032) 0 1px, transparent 1px 44px),
|
||||||
repeating-linear-gradient(90deg, rgba(19, 28, 43, 0.032) 0 1px, transparent 1px 44px);
|
repeating-linear-gradient(90deg, rgba(19, 28, 43, 0.032) 0 1px, transparent 1px 44px);
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ const now = nowStatuses(s, post);
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
width: 150%;
|
width: 150%;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
opacity: 0.32;
|
opacity: calc(0.32 * var(--gk-ghost));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.art :global(.path) {
|
.art :global(.path) {
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ const { title, seal, as: H = "h2" } = Astro.props;
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: -26px;
|
right: -26px;
|
||||||
top: -26px;
|
top: -26px;
|
||||||
opacity: 0.14;
|
opacity: calc(0.14 * var(--gk-ghost));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.head {
|
.head {
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ const facts = d.facts ?? [];
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: -60px;
|
right: -60px;
|
||||||
bottom: -80px;
|
bottom: -80px;
|
||||||
opacity: 0.12;
|
opacity: calc(0.12 * var(--gk-ghost));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.main {
|
.main {
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ const listFormat = new Intl.ListFormat("en", { style: "long", type: "conjunction
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: -90px;
|
right: -90px;
|
||||||
top: -90px;
|
top: -90px;
|
||||||
opacity: 0.14;
|
opacity: calc(0.14 * var(--gk-ghost));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.work > :not(:global(.work-seal), :global(.gk-corner)) {
|
.work > :not(:global(.work-seal), :global(.gk-corner)) {
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ const wrapped = s
|
|||||||
top: -26px;
|
top: -26px;
|
||||||
width: 104px;
|
width: 104px;
|
||||||
height: 104px;
|
height: 104px;
|
||||||
opacity: 0.14;
|
opacity: calc(0.14 * var(--gk-ghost));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.panel-kicker {
|
.panel-kicker {
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ const isCore = (group: { core?: string[] }, item: string) => group.core?.some((c
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: -30px;
|
right: -30px;
|
||||||
top: -30px;
|
top: -30px;
|
||||||
opacity: 0.12;
|
opacity: calc(0.12 * var(--gk-ghost));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.panel-head {
|
.panel-head {
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ const colorStrips = selling.flatMap((l) =>
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: -40px;
|
right: -40px;
|
||||||
bottom: -60px;
|
bottom: -60px;
|
||||||
opacity: 0.08;
|
opacity: calc(0.08 * var(--gk-ghost));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
summary {
|
summary {
|
||||||
|
|||||||
Reference in New Issue
Block a user