homepage: Protoss theme, brand-color icons, dragoon portrait, GameBoy RomM, OWU white art + search warn
This commit is contained in:
1 parent
22a7331100
commit
8c5bde7034
35 files changed
+150
-53
No files matched your search
+81
-21
@@ -1,7 +1,9 @@
|
||||
/* The homepage theme: terminal TUI, amber-on-black, CRT-AMBIOS palette with
|
||||
the VT323 bitmap font (Google Fonts CDN). A ?bare=1 toggle strips the page
|
||||
to bare, unstyled HTML (Q27). The page never sets a custom or hidden cursor,
|
||||
so the user's cursor is untouched (Q28). */
|
||||
the VT323 bitmap font (Google Fonts CDN), fused with a Protoss layer:
|
||||
chamfered hex-cut panels, gold-to-cyan gradient rules, pylon glows, and a
|
||||
faint hex-lattice backdrop. A ?bare=1 toggle strips the page to bare,
|
||||
unstyled HTML (Q27). The page never sets a custom or hidden cursor, so the
|
||||
user's cursor is untouched (Q28). */
|
||||
|
||||
:root {
|
||||
--bg: #0a0600;
|
||||
@@ -13,6 +15,8 @@
|
||||
--head: #ffe9a8;
|
||||
--border: #5c3d00;
|
||||
--panel: #150c02;
|
||||
--proto-blue: #4fb4ff; /* Zealot warp-blade blue */
|
||||
--proto-cyan: #a8ecff; /* Archon psychic-light cyan */
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
@@ -40,14 +44,33 @@ body::before {
|
||||
background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.14) 2px 4px);
|
||||
}
|
||||
|
||||
/* Protoss backdrop: pylon glow at the edges + faint hex lattice. */
|
||||
body::after {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
z-index: -1;
|
||||
background:
|
||||
radial-gradient(1100px 480px at 50% -8%, rgba(79, 180, 255, 0.06), transparent 60%),
|
||||
radial-gradient(900px 420px at 88% 108%, rgba(168, 236, 255, 0.05), transparent 60%),
|
||||
linear-gradient(30deg, rgba(255, 176, 0, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(150deg, rgba(255, 176, 0, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 176, 0, 0.022) 1px, transparent 1px);
|
||||
background-size: auto, auto, 34px 60px, 34px 60px, 34px 60px;
|
||||
}
|
||||
|
||||
.top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
border-bottom: 1px solid var(--border);
|
||||
border-bottom: 2px solid;
|
||||
border-image: linear-gradient(90deg, var(--head), var(--proto-blue) 55%, transparent) 1;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
.title { color: var(--head); }
|
||||
.title { color: var(--head); text-shadow: 0 0 8px color-mix(in srgb, var(--proto-cyan) 45%, transparent), 0 0 4px rgba(255, 176, 0, 0.4); }
|
||||
.title::after { content: " \25AE"; color: var(--proto-cyan); animation: proto-blink 1.2s steps(2, start) infinite; }
|
||||
@keyframes proto-blink { 50% { opacity: 0; } }
|
||||
.summary { color: var(--dim); margin: 12px 0; letter-spacing: 0.05em; }
|
||||
|
||||
/* Sections stack vertically; each section's panels fill a horizontal
|
||||
@@ -57,12 +80,16 @@ body::before {
|
||||
color: var(--head);
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
letter-spacing: 0.08em;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin: 0 0 12px;
|
||||
padding-bottom: 4px;
|
||||
padding-bottom: 6px;
|
||||
position: relative;
|
||||
}
|
||||
.section-title::before { content: "\25C8"; color: var(--proto-cyan); margin-right: 10px;
|
||||
text-shadow: 0 0 8px var(--proto-cyan); }
|
||||
.section-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
|
||||
background: linear-gradient(90deg, var(--head), var(--proto-blue) 45%, transparent 90%); }
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
@@ -70,12 +97,14 @@ body::before {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.panel { border: 1px solid var(--border); background: var(--panel); padding: 12px 14px; border-radius: 2px; }
|
||||
.panel.clickable { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
|
||||
.panel { border: 1px solid var(--border); background: var(--panel); padding: 12px 14px;
|
||||
clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
|
||||
.panel.clickable { cursor: pointer; transition: border-color 0.15s, filter 0.15s, transform 0.15s; }
|
||||
.panel.clickable:hover {
|
||||
border-color: var(--link);
|
||||
box-shadow: 0 0 14px color-mix(in srgb, var(--link) 35%, transparent);
|
||||
border-color: var(--proto-cyan);
|
||||
transform: translateY(-2px);
|
||||
filter: drop-shadow(0 0 7px color-mix(in srgb, var(--proto-blue) 60%, transparent))
|
||||
drop-shadow(0 0 18px color-mix(in srgb, var(--link) 30%, transparent));
|
||||
}
|
||||
.panel.down {
|
||||
background: linear-gradient(180deg,
|
||||
@@ -84,7 +113,7 @@ body::before {
|
||||
}
|
||||
@keyframes down-pulse {
|
||||
50% { border-color: color-mix(in srgb, var(--down) 70%, var(--border));
|
||||
box-shadow: 0 0 16px color-mix(in srgb, var(--down) 40%, transparent); }
|
||||
filter: drop-shadow(0 0 10px color-mix(in srgb, var(--down) 55%, transparent)); }
|
||||
}
|
||||
.mi-card:has(.badge.down) {
|
||||
background: linear-gradient(180deg,
|
||||
@@ -102,10 +131,11 @@ body::before {
|
||||
clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
|
||||
border: 1px solid var(--dim);
|
||||
background: color-mix(in srgb, var(--fg) 8%, transparent);
|
||||
filter: saturate(0.85) brightness(0.95);
|
||||
filter: saturate(1.15) brightness(1.05);
|
||||
}
|
||||
.name { color: var(--head); }
|
||||
.badge { border: 1px solid currentColor; padding: 0 6px; border-radius: 2px; font-size: 12px; }
|
||||
.badge { border: 1px solid currentColor; padding: 0 6px; font-size: 12px;
|
||||
clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); }
|
||||
.badge.up { color: var(--fg); }
|
||||
.badge.down { color: var(--down); }
|
||||
.badge.wip-open { color: var(--wip); }
|
||||
@@ -134,14 +164,15 @@ body::before {
|
||||
.foot-btn {
|
||||
border: 1px solid var(--link);
|
||||
padding: 2px 14px;
|
||||
border-radius: 2px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
text-shadow: 0 0 6px color-mix(in srgb, var(--link) 55%, transparent);
|
||||
clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
|
||||
}
|
||||
.foot-btn:hover {
|
||||
background: color-mix(in srgb, var(--link) 16%, transparent);
|
||||
box-shadow: 0 0 10px color-mix(in srgb, var(--link) 45%, transparent);
|
||||
text-shadow: 0 0 8px var(--proto-cyan);
|
||||
}
|
||||
|
||||
/* The user docs page (static prose). */
|
||||
@@ -173,13 +204,26 @@ html[data-bare="1"] .desc-role, html[data-bare="1"] .desc-spec, html[data-bare="
|
||||
html[data-bare="1"] .section-title { border-color: #000; }
|
||||
html[data-bare="1"] .links a, html[data-bare="1"] .toggle, html[data-bare="1"] .foot a { color: #000; }
|
||||
html[data-bare="1"] .foot-btn { border-color: #000; text-shadow: none; }
|
||||
html[data-bare="1"] .panel, html[data-bare="1"] .mi-card, html[data-bare="1"] .badge, html[data-bare="1"] .foot-btn { clip-path: none; filter: none; animation: none; box-shadow: none; }
|
||||
html[data-bare="1"] body::after { display: none; }
|
||||
html[data-bare="1"] .section-title::before, html[data-bare="1"] .section-title::after, html[data-bare="1"] .title::after { content: none; }
|
||||
html[data-bare="1"] .top { border-image: none; }
|
||||
|
||||
/* Model Information: one fused panel for the fleet models. Informational
|
||||
panels, so the type is smaller than the app panels; each model wears its
|
||||
StarCraft Protoss unit's colours and art. */
|
||||
.model-info { grid-column: 1 / -1; }
|
||||
.model-info {
|
||||
grid-column: 1 / -1;
|
||||
background: linear-gradient(180deg,
|
||||
color-mix(in srgb, var(--proto-blue) 6%, var(--panel)), var(--panel) 45%);
|
||||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--proto-cyan) 30%, transparent),
|
||||
inset 0 0 28px color-mix(in srgb, var(--proto-blue) 7%, transparent);
|
||||
}
|
||||
.mi-title {
|
||||
color: var(--head);
|
||||
background: linear-gradient(90deg, var(--head), var(--proto-cyan) 70%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
border-bottom: 1px solid var(--border);
|
||||
@@ -195,12 +239,11 @@ html[data-bare="1"] .foot-btn { border-color: #000; text-shadow: none; }
|
||||
font-size: 15px;
|
||||
line-height: 1.35;
|
||||
border: 1px solid var(--mi);
|
||||
border-radius: 2px;
|
||||
padding: 10px 12px;
|
||||
clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
|
||||
background:
|
||||
linear-gradient(160deg, color-mix(in srgb, var(--mi) 7%, var(--panel)), var(--panel) 60%);
|
||||
box-shadow: 0 0 14px color-mix(in srgb, var(--mi) 18%, transparent),
|
||||
inset 0 0 22px color-mix(in srgb, var(--mi) 6%, transparent);
|
||||
box-shadow: inset 0 0 22px color-mix(in srgb, var(--mi) 8%, transparent);
|
||||
}
|
||||
.mi-zealot { --mi: #4fb4ff; } /* Zealot: Khai's blue blades */
|
||||
.mi-archon { --mi: #a8ecff; } /* Archon: pure psychic light */
|
||||
@@ -248,6 +291,16 @@ html[data-bare="1"] .foot-btn { border-color: #000; text-shadow: none; }
|
||||
color: var(--down);
|
||||
font-weight: bold;
|
||||
text-shadow: 0 0 6px color-mix(in srgb, var(--down) 45%, transparent);
|
||||
clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
|
||||
}
|
||||
.mi-comp {
|
||||
margin-top: 8px;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid var(--head);
|
||||
color: var(--head);
|
||||
background: color-mix(in srgb, var(--head) 8%, transparent);
|
||||
text-shadow: 0 0 6px color-mix(in srgb, var(--head) 40%, transparent);
|
||||
clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
|
||||
}
|
||||
.svc-warn { color: var(--down); margin-top: 6px; cursor: help;
|
||||
text-decoration: underline dotted color-mix(in srgb, var(--down) 60%, transparent); }
|
||||
@@ -263,3 +316,10 @@ html[data-bare="1"] .mi-warn { color: #000; }
|
||||
html[data-bare="1"] .app-art { display: none; }
|
||||
html[data-bare="1"] .svc-warn, html[data-bare="1"] .mi-perm, html[data-bare="1"] .mi-comp { color: #000; border: none; text-shadow: none; padding: 0; }
|
||||
html[data-bare="1"] .mi-perm, html[data-bare="1"] .mi-comp { border: 1px solid #000; }
|
||||
|
||||
/* Protoss layer: selection + scrollbar. */
|
||||
::selection { background: color-mix(in srgb, var(--proto-blue) 45%, transparent); color: #fff; }
|
||||
::-webkit-scrollbar { width: 10px; }
|
||||
::-webkit-scrollbar-track { background: var(--bg); }
|
||||
::-webkit-scrollbar-thumb { background: var(--dim); border: 1px solid var(--border); }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--fg); }
|
||||
Reference in new issue
Block a user