Migrate three render callbacks in oidc-provider (logoutSource,
postLogoutSuccessSource, renderError) from the baked guildPageShell
helper to Nuxt pages under app/pages/auth/, so they go through the
font module and design system instead of a shadow copy.
- Delete guildPageShell (~103 lines of shadow design system).
- Add /auth/logout-success, /auth/oidc-error, /auth/logout-confirm
pages built on dashed-box + btn + main.css tokens.
- renderError now allow-lists error + error_description into query
params and lets Vue default interpolation escape them, closing an
XSS where OIDC error fields were concatenated into raw HTML.
- logoutSource extracts the xsrf from oidc-provider's stable form
output, sets it as an httpOnly 2-minute cookie, and redirects to
/auth/logout-confirm. The confirm page reads the cookie during SSR,
persists the value to useState, and clears the cookie so it's
strictly one-time use. Defensive fallback keeps the raw auto-submit
form if oidc-provider ever changes its form format.
- Fix form actions emitting http:// in production at the root cause:
oidc-provider extends Koa but calls super() with no args, so
app.proxy defaults to false and ctx.protocol ignores
X-Forwarded-Proto. Set _provider.proxy = true after construction;
remove the bogus proxy:true config key (silently ignored) and the
form.replace('http://', 'https://') symptom patch. Make the
x-forwarded-proto override in the catchall conditional on
production + missing header (was unconditional + dead code).
- Add site-wide .btn:focus-visible rule in main.css for WCAG 2.4.7.
Verified in browser: Brygada 1918 loads on all three pages, contrast
ratios pass AA in dark + light, XSS payload escapes to text nodes
only, Set-Cookie: Max-Age=0 enforces one-time xsrf use, no
horizontal overflow at 500px, no console errors.
280 lines
5.9 KiB
CSS
280 lines
5.9 KiB
CSS
/*
|
|
* Ghost Guild Design System — Zine Direction
|
|
* ============================================
|
|
*
|
|
* Two fonts: Brygada 1918 (display/serif), Commit Mono (body/mono)
|
|
* Dashed borders, cream backgrounds, content-dense zine layout
|
|
* Single palette via CSS custom properties, minimal Tailwind @theme mapping
|
|
*/
|
|
|
|
@import "./fonts.css";
|
|
@import "tailwindcss";
|
|
@import "@nuxt/ui";
|
|
|
|
/* ---- COLOR TOKENS ---- */
|
|
|
|
:root {
|
|
--bg: #f4efe4;
|
|
--input-bg: #faf8f2;
|
|
--surface: #e8dfc8;
|
|
--surface-hover: #e0d6bc;
|
|
--border: #b8a880;
|
|
--border-d: #a89470;
|
|
--candle: #7a5a10;
|
|
--candle-dim: #866518;
|
|
--candle-faint: #c4a448;
|
|
--ember: #8a4420;
|
|
--text: #2a2015;
|
|
--text-bright: #1a1008;
|
|
--text-dim: #5a5040;
|
|
--text-faint: #746a58;
|
|
--parch: #2a2015;
|
|
--parch-hover: #3a3025;
|
|
--parch-text: #ede4d0;
|
|
--parch-text-dim: #b8ae98;
|
|
--c-community: #7a4838;
|
|
--c-founder: #8a4420;
|
|
--c-practitioner: #2a4650;
|
|
--green: #4a6a38;
|
|
--green-bg: rgba(74, 106, 56, 0.08);
|
|
--ember-bg: rgba(138, 68, 32, 0.1);
|
|
--page-pad-x: 28px;
|
|
--page-pad-y: 24px;
|
|
--page-collapse: 1024px;
|
|
}
|
|
|
|
.dark {
|
|
--bg: #131210;
|
|
--input-bg: #1c1a17;
|
|
--surface: #1a1815;
|
|
--surface-hover: #252220;
|
|
--border: #2a2520;
|
|
--border-d: #3a3530;
|
|
--candle: #d4a03a;
|
|
--candle-dim: #b8922e;
|
|
--candle-faint: #8a7030;
|
|
--ember: #ca6a3a;
|
|
--text: #a89880;
|
|
--text-bright: #d0c8b0;
|
|
--text-dim: #958774;
|
|
--text-faint: #8b7b62;
|
|
--parch: #ede4d0;
|
|
--parch-hover: #d4c8a8;
|
|
--parch-text: #2a2015;
|
|
--parch-text-dim: #5a5040;
|
|
--c-community: #a06850;
|
|
--c-founder: #c06030;
|
|
--c-practitioner: #4a7080;
|
|
--green: #6e9c52;
|
|
--green-bg: rgba(110, 156, 82, 0.12);
|
|
--ember-bg: rgba(202, 106, 58, 0.14);
|
|
--page-pad-x: 28px;
|
|
--page-pad-y: 24px;
|
|
--page-collapse: 1024px;
|
|
}
|
|
|
|
/* ---- TAILWIND @THEME MAPPING ---- */
|
|
|
|
@theme {
|
|
--font-sans: "Commit Mono", monospace;
|
|
--font-body: "Commit Mono", monospace;
|
|
--font-mono: "Commit Mono", monospace;
|
|
--font-display: "Brygada 1918", serif;
|
|
--font-serif: "Brygada 1918", serif;
|
|
|
|
/* Map primary to candle for Nuxt UI components */
|
|
--color-primary-500: var(--candle);
|
|
--color-primary-600: var(--candle-dim);
|
|
--color-primary-400: var(--candle-faint);
|
|
}
|
|
|
|
/* ---- BASE STYLES ---- */
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: "Commit Mono", monospace;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* ---- NOISE TEXTURE OVERLAY ---- */
|
|
body::after {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9999;
|
|
pointer-events: none;
|
|
background: url("~/assets/images/noise.webp") repeat;
|
|
opacity: 0.025;
|
|
}
|
|
|
|
a {
|
|
color: var(--candle);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
p a, blockquote a {
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
/* ---- SECTION LABELS ---- */
|
|
.section-label {
|
|
font-size: 10px;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--text-faint);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* ---- CIRCLE BADGES (dashed) ---- */
|
|
.badge {
|
|
display: inline-block;
|
|
font-size: 10px;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
padding: 2px 8px;
|
|
border: 1px dashed;
|
|
}
|
|
.badge.community {
|
|
color: var(--c-community);
|
|
border-color: rgba(122, 72, 56, 0.35);
|
|
}
|
|
.badge.founder {
|
|
color: var(--c-founder);
|
|
border-color: rgba(138, 68, 32, 0.35);
|
|
}
|
|
.badge.practitioner {
|
|
color: var(--c-practitioner);
|
|
border-color: rgba(42, 70, 80, 0.35);
|
|
}
|
|
.badge.all {
|
|
color: var(--text-dim);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
/* ---- BUTTONS ---- */
|
|
.btn {
|
|
font-family: "Commit Mono", monospace;
|
|
font-size: 12px;
|
|
padding: 7px 18px;
|
|
border: 1px dashed var(--border);
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
letter-spacing: 0.04em;
|
|
transition: all 0.15s;
|
|
}
|
|
.btn:hover {
|
|
background: var(--surface-hover);
|
|
border-color: var(--border-d);
|
|
}
|
|
/* WCAG 2.4.7 — keyboard focus must be visibly indicated. Dashed outline
|
|
echoes the design system's zine/dashed aesthetic. */
|
|
.btn:focus-visible {
|
|
outline: 2px dashed var(--candle);
|
|
outline-offset: 3px;
|
|
}
|
|
.btn-primary {
|
|
background: var(--candle);
|
|
color: var(--bg);
|
|
border-color: var(--candle);
|
|
border-style: solid;
|
|
}
|
|
.btn-primary:hover {
|
|
background: var(--candle-dim);
|
|
border-color: var(--candle-dim);
|
|
}
|
|
.btn-danger {
|
|
color: var(--ember);
|
|
border-color: var(--ember);
|
|
}
|
|
.btn-danger:hover {
|
|
background: var(--ember);
|
|
color: var(--bg);
|
|
border-style: solid;
|
|
}
|
|
|
|
/* ---- FORM FIELDS ---- */
|
|
.field {
|
|
margin-bottom: 12px;
|
|
}
|
|
.field label {
|
|
font-size: 10px;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--text-faint);
|
|
margin-bottom: 3px;
|
|
display: block;
|
|
}
|
|
.field input,
|
|
.field select,
|
|
.field textarea {
|
|
width: 100%;
|
|
padding: 5px 8px;
|
|
font-family: "Commit Mono", monospace;
|
|
font-size: 13px;
|
|
color: var(--text-bright);
|
|
background: var(--input-bg);
|
|
border: 1px dashed var(--border);
|
|
outline: none;
|
|
}
|
|
.field input:focus,
|
|
.field select:focus,
|
|
.field textarea:focus {
|
|
border-color: var(--candle);
|
|
border-style: solid;
|
|
}
|
|
|
|
/* ---- DASHED BOX ---- */
|
|
.dashed-box {
|
|
border: 1px dashed var(--border);
|
|
padding: 20px 24px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.dashed-box:hover {
|
|
border-color: var(--candle-faint);
|
|
}
|
|
.dashed-box.no-hover:hover {
|
|
border-color: var(--border);
|
|
}
|
|
|
|
/* ---- SEGMENTED CONTROL (flush dashed-border groups) ---- */
|
|
/* Negative-margin overlap: every item keeps all 4 borders,
|
|
siblings overlap by 1px, active item paints on top via z-index. */
|
|
.segmented {
|
|
display: flex;
|
|
}
|
|
.segmented > * {
|
|
position: relative;
|
|
}
|
|
.segmented > * + * {
|
|
margin-left: -1px;
|
|
}
|
|
|
|
/* ---- SECTION DIVIDERS ---- */
|
|
.section-divider {
|
|
display: block;
|
|
width: 100%;
|
|
max-width: none;
|
|
box-sizing: border-box;
|
|
border: 0;
|
|
border-top: 1px dashed var(--border);
|
|
margin: 20px 0 14px;
|
|
padding: 0;
|
|
flex: 0 0 auto;
|
|
align-self: stretch;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* ---- MOBILE ---- */
|
|
@media (max-width: 1023px) {
|
|
body {
|
|
overflow-x: hidden;
|
|
}
|
|
}
|