From 41664efedee442fca846302e3ebb1e4babf3d136 Mon Sep 17 00:00:00 2001 From: mini Date: Sun, 19 Apr 2026 20:03:22 +0800 Subject: [PATCH] fix(design): scope puro.css to .puro-page container Code review flagged two critical issues with the initial scaffold: - html/body bg + universal reset applied globally, overriding admin Tailwind styles - Shared class names (.btn, .card, .input, .badge, .divider) collided with style.css, breaking 25+ admin views Fix: all non-:root rules now scoped under .puro-page descendant selector. @keyframes and global box-sizing preserved. html/body props merged into .puro-page root. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/src/assets/puro.css | 357 ++++++++++++++++++----------------- 1 file changed, 180 insertions(+), 177 deletions(-) diff --git a/frontend/src/assets/puro.css b/frontend/src/assets/puro.css index 96c11980..d343ca0d 100644 --- a/frontend/src/assets/puro.css +++ b/frontend/src/assets/puro.css @@ -5,7 +5,9 @@ Usage: ========================================================================== */ -*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } +*, *::before, *::after { box-sizing: border-box; } +.puro-page, .puro-page *, .puro-page *::before, .puro-page *::after { margin: 0; padding: 0; } + :root { /* Surfaces */ @@ -55,8 +57,8 @@ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; } - -html, body { +/* Merged from original html/body rules — applied to .puro-page container root */ +.puro-page { background: var(--bg-0); color: var(--text-0); font-family: var(--font-sans); @@ -64,25 +66,26 @@ html, body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.5; + overflow-x: hidden; } -body { overflow-x: hidden; } -a { color: inherit; text-decoration: none; } -button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; } + +.puro-page a { color: inherit; text-decoration: none; } +.puro-page button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; } /* scrollbar — subtle */ -::-webkit-scrollbar { width: 10px; height: 10px; } -::-webkit-scrollbar-track { background: transparent; } -::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; } -::-webkit-scrollbar-thumb:hover { background: var(--border-3); } +.puro-page::-webkit-scrollbar { width: 10px; height: 10px; } +.puro-page::-webkit-scrollbar-track { background: transparent; } +.puro-page::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; } +.puro-page::-webkit-scrollbar-thumb:hover { background: var(--border-3); } -.mono { font-family: var(--font-mono); } +.puro-page .mono { font-family: var(--font-mono); } /* ========================================================================== BACKGROUND EFFECTS ========================================================================== */ -.bg-glow { +.puro-page .bg-glow { position: fixed; inset: 0; pointer-events: none; @@ -90,7 +93,7 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; overflow: hidden; } .bg-glow::before, -.bg-glow::after { +.puro-page .bg-glow::after { content: ""; position: absolute; width: 900px; @@ -99,20 +102,20 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; filter: blur(120px); opacity: 0.35; } -.bg-glow::before { +.puro-page .bg-glow::before { background: radial-gradient(circle, #22d3ee 0%, transparent 60%); top: -300px; left: -200px; } -.bg-glow::after { +.puro-page .bg-glow::after { background: radial-gradient(circle, #a855f7 0%, transparent 60%); top: 200px; right: -300px; opacity: 0.25; } -.bg-glow.soft::before, .bg-glow.soft::after { opacity: 0.15; } +.puro-page .bg-glow.soft::before, .puro-page .bg-glow.soft::after { opacity: 0.15; } -.grain { +.puro-page .grain { position: fixed; inset: 0; pointer-events: none; @@ -122,20 +125,20 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; background-image: url("data:image/svg+xml;utf8,"); } -.container { +.puro-page .container { max-width: 1100px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; } -.container-wide { max-width: 1280px; } -.container-narrow { max-width: 860px; } +.puro-page .container-wide { max-width: 1280px; } +.puro-page .container-narrow { max-width: 860px; } /* ========================================================================== NAV ========================================================================== */ -.nav { +.puro-page .nav { position: sticky; top: 0; z-index: 50; @@ -143,13 +146,13 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; background: rgba(10, 14, 26, 0.72); border-bottom: 1px solid var(--border); } -.nav-inner { +.puro-page .nav-inner { display: flex; align-items: center; height: 64px; gap: 48px; } -.brand { +.puro-page .brand { display: flex; align-items: center; gap: 10px; @@ -157,21 +160,21 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: 15px; letter-spacing: 0.02em; } -.hex { +.puro-page .hex { width: 22px; height: 22px; color: var(--cyan); } -.nav-links { +.puro-page .nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); } -.nav-links a { transition: color .15s; } -.nav-links a:hover, .nav-links a.active { color: var(--text-0); } -.nav-links .disabled { color: var(--text-3); cursor: not-allowed; display: inline-flex; align-items: center; gap: 6px; } -.nav-links .disabled::after { +.puro-page .nav-links a { transition: color .15s; } +.puro-page .nav-links a:hover, .puro-page .nav-links a.active { color: var(--text-0); } +.puro-page .nav-links .disabled { color: var(--text-3); cursor: not-allowed; display: inline-flex; align-items: center; gap: 6px; } +.puro-page .nav-links .disabled::after { content: "即将推出"; font-size: 10px; padding: 2px 6px; @@ -179,7 +182,7 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; border-radius: 4px; color: var(--text-3); } -.nav-cta { +.puro-page .nav-cta { margin-left: auto; display: flex; gap: 10px; @@ -189,7 +192,7 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; /* ========================================================================== BUTTONS ========================================================================== */ -.btn { +.puro-page .btn { display: inline-flex; align-items: center; justify-content: center; @@ -202,40 +205,40 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; white-space: nowrap; border: 1px solid transparent; } -.btn-primary { +.puro-page .btn-primary { background: var(--cyan); color: #042f2e; font-weight: 600; } -.btn-primary:hover { background: var(--cyan-2); } -.btn-primary:active { transform: translateY(1px); } -.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } +.puro-page .btn-primary:hover { background: var(--cyan-2); } +.puro-page .btn-primary:active { transform: translateY(1px); } +.puro-page .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } -.btn-ghost { +.puro-page .btn-ghost { border-color: var(--border-2); color: var(--text-1); } -.btn-ghost:hover { border-color: var(--border-3); color: var(--text-0); background: rgba(255,255,255,0.02); } +.puro-page .btn-ghost:hover { border-color: var(--border-3); color: var(--text-0); background: rgba(255,255,255,0.02); } -.btn-subtle { +.puro-page .btn-subtle { background: rgba(255,255,255,0.04); color: var(--text-1); border-color: transparent; } -.btn-subtle:hover { background: rgba(255,255,255,0.08); color: var(--text-0); } +.puro-page .btn-subtle:hover { background: rgba(255,255,255,0.08); color: var(--text-0); } -.btn-danger { +.puro-page .btn-danger { background: rgba(248, 113, 113, 0.1); color: var(--red); border-color: rgba(248, 113, 113, 0.25); } -.btn-danger:hover { background: rgba(248, 113, 113, 0.15); border-color: rgba(248, 113, 113, 0.4); } +.puro-page .btn-danger:hover { background: rgba(248, 113, 113, 0.15); border-color: rgba(248, 113, 113, 0.4); } -.btn-lg { padding: 12px 20px; font-size: 14px; } -.btn-sm { padding: 5px 10px; font-size: 12px; } -.btn-icon { padding: 7px; aspect-ratio: 1; } +.puro-page .btn-lg { padding: 12px 20px; font-size: 14px; } +.puro-page .btn-sm { padding: 5px 10px; font-size: 12px; } +.puro-page .btn-icon { padding: 7px; aspect-ratio: 1; } -.btn .spinner { +.puro-page .btn .spinner { width: 14px; height: 14px; border: 2px solid rgba(0,0,0,0.2); border-top-color: currentColor; @@ -243,14 +246,14 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; animation: spin .7s linear infinite; display: none; } -.btn.loading .spinner { display: inline-block; } -.btn.loading .label { opacity: 0.5; } +.puro-page .btn.loading .spinner { display: inline-block; } +.puro-page .btn.loading .label { opacity: 0.5; } @keyframes spin { to { transform: rotate(360deg); } } /* ========================================================================== BADGES / PILLS / CHIPS ========================================================================== */ -.badge { +.puro-page .badge { display: inline-flex; align-items: center; gap: 4px; @@ -262,13 +265,13 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; background: rgba(34, 211, 238, 0.1); color: var(--cyan); } -.badge.amber { background: rgba(251, 191, 36, 0.12); color: var(--amber); } -.badge.purple { background: rgba(168, 85, 247, 0.12); color: var(--purple); } -.badge.green { background: rgba(52, 211, 153, 0.12); color: var(--green); } -.badge.red { background: rgba(248, 113, 113, 0.12); color: var(--red); } -.badge.muted { background: rgba(255, 255, 255, 0.04); color: var(--text-2); border: 1px solid var(--border); } +.puro-page .badge.amber { background: rgba(251, 191, 36, 0.12); color: var(--amber); } +.puro-page .badge.purple { background: rgba(168, 85, 247, 0.12); color: var(--purple); } +.puro-page .badge.green { background: rgba(52, 211, 153, 0.12); color: var(--green); } +.puro-page .badge.red { background: rgba(248, 113, 113, 0.12); color: var(--red); } +.puro-page .badge.muted { background: rgba(255, 255, 255, 0.04); color: var(--text-2); border: 1px solid var(--border); } -.pill { +.puro-page .pill { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); @@ -279,7 +282,7 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; color: var(--text-0); } -.chip { +.puro-page .chip { display: inline-flex; align-items: center; gap: 6px; @@ -291,16 +294,16 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; color: var(--text-1); font-family: var(--font-mono); } -.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); } -.chip.claude .dot { background: var(--p-claude); } -.chip.gpt .dot { background: var(--p-gpt); } -.chip.gemini .dot { background: var(--p-gemini); } -.chip.codex .dot { background: var(--p-codex); } +.puro-page .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); } +.puro-page .chip.claude .dot { background: var(--p-claude); } +.puro-page .chip.gpt .dot { background: var(--p-gpt); } +.puro-page .chip.gemini .dot { background: var(--p-gemini); } +.puro-page .chip.codex .dot { background: var(--p-codex); } -.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); display: inline-block; } +.puro-page .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); display: inline-block; } /* status chip (tiny dot absolute-positioned) */ -.status-chip { +.puro-page .status-chip { width: 6px; height: 6px; border-radius: 50%; @@ -308,61 +311,61 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); display: inline-block; } -.status-chip.dim { background: var(--text-3); box-shadow: none; } -.status-chip.amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15); } -.status-chip.red { background: var(--red); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); } +.puro-page .status-chip.dim { background: var(--text-3); box-shadow: none; } +.puro-page .status-chip.amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15); } +.puro-page .status-chip.red { background: var(--red); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); } /* ========================================================================== CARDS / SURFACES ========================================================================== */ -.card { +.puro-page .card { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; } -.card-raised { +.puro-page .card-raised { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-lg); } -.card-interactive { +.puro-page .card-interactive { transition: all .2s; cursor: pointer; } -.card-interactive:hover { +.puro-page .card-interactive:hover { border-color: var(--border-2); background: rgba(15, 23, 42, 0.85); transform: translateY(-2px); } -.divider { height: 1px; background: var(--border); margin: 24px 0; border: 0; } -.divider-dashed { border: 0; border-top: 1px dashed var(--border); margin: 20px 0; } +.puro-page .divider { height: 1px; background: var(--border); margin: 24px 0; border: 0; } +.puro-page .divider-dashed { border: 0; border-top: 1px dashed var(--border); margin: 20px 0; } /* ========================================================================== FORMS ========================================================================== */ -.field { margin-bottom: 18px; } -.field-label { +.puro-page .field { margin-bottom: 18px; } +.puro-page .field-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-1); margin-bottom: 8px; } -.field-hint { +.puro-page .field-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; } -.field-error { +.puro-page .field-error { font-size: 12px; color: var(--red); margin-top: 6px; } -.input-wrap { position: relative; } -.input-wrap .icon { +.puro-page .input-wrap { position: relative; } +.puro-page .input-wrap .icon { position: absolute; left: 14px; top: 50%; @@ -371,7 +374,7 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; pointer-events: none; display: inline-flex; } -.input { +.puro-page .input { width: 100%; height: 42px; padding: 0 14px; @@ -384,22 +387,22 @@ button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; transition: all .15s; } -.input.with-icon { padding-left: 40px; } -.input::placeholder { color: var(--text-3); } -.input:hover { border-color: var(--border-3); } -.input:focus { +.puro-page .input.with-icon { padding-left: 40px; } +.puro-page .input::placeholder { color: var(--text-3); } +.puro-page .input:hover { border-color: var(--border-3); } +.puro-page .input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12); background: rgba(15, 23, 42, 0.9); } -.input.ok { border-color: rgba(52, 211, 153, 0.4); } -.input.ok:focus { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12); } -.input.error { border-color: var(--red); } -.input.error:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12); } +.puro-page .input.ok { border-color: rgba(52, 211, 153, 0.4); } +.puro-page .input.ok:focus { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12); } +.puro-page .input.error { border-color: var(--red); } +.puro-page .input.error:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12); } -textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; } +.puro-page textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; } -select.input { +.puro-page select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,"); background-repeat: no-repeat; @@ -408,7 +411,7 @@ select.input { } /* checkbox */ -.check { +.puro-page .check { display: inline-flex; align-items: center; gap: 10px; @@ -417,8 +420,8 @@ select.input { font-size: 13px; color: var(--text-1); } -.check input { display: none; } -.check .box { +.puro-page .check input { display: none; } +.puro-page .check .box { width: 16px; height: 16px; border: 1px solid var(--border-2); border-radius: 4px; @@ -429,11 +432,11 @@ select.input { transition: all .15s; flex-shrink: 0; } -.check input:checked + .box { +.puro-page .check input:checked + .box { background: var(--cyan); border-color: var(--cyan); } -.check input:checked + .box::after { +.puro-page .check input:checked + .box::after { content: "✓"; color: #042f2e; font-size: 11px; @@ -443,7 +446,7 @@ select.input { /* ========================================================================== SECTION HEADINGS ========================================================================== */ -.section-kicker { +.puro-page .section-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); @@ -451,14 +454,14 @@ select.input { text-transform: uppercase; margin-bottom: 12px; } -.section-title { +.puro-page .section-title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; } -.section-sub { +.puro-page .section-sub { color: var(--text-2); font-size: 16px; line-height: 1.6; @@ -467,12 +470,12 @@ select.input { /* ========================================================================== TABLES ========================================================================== */ -.tbl { +.puro-page .tbl { width: 100%; font-size: 13px; border-collapse: collapse; } -.tbl th { +.puro-page .tbl th { text-align: left; color: var(--text-3); font-weight: 500; @@ -482,26 +485,26 @@ select.input { font-size: 10px; letter-spacing: 0.1em; } -.tbl td { +.puro-page .tbl td { padding: 14px; border-bottom: 1px solid rgba(30, 41, 59, 0.5); color: var(--text-1); } -.tbl tr:last-child td { border-bottom: none; } -.tbl tr:hover td { background: rgba(15, 23, 42, 0.4); } -.tbl td.mono, .tbl th.mono { font-family: var(--font-mono); } +.puro-page .tbl tr:last-child td { border-bottom: none; } +.puro-page .tbl tr:hover td { background: rgba(15, 23, 42, 0.4); } +.puro-page .tbl td.mono, .puro-page .tbl th.mono { font-family: var(--font-mono); } /* ========================================================================== CODE BLOCKS ========================================================================== */ -.code-frame { +.puro-page .code-frame { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); } -.code-head { +.puro-page .code-head { display: flex; align-items: center; height: 40px; @@ -510,17 +513,17 @@ select.input { background: rgba(15, 23, 42, 0.8); gap: 10px; } -.traffic { +.puro-page .traffic { display: flex; gap: 6px; } -.traffic span { +.puro-page .traffic span { width: 10px; height: 10px; border-radius: 50%; background: #475569; } -.code-body { +.puro-page .code-body { padding: 22px 26px; font-family: var(--font-mono); font-size: 13px; @@ -528,93 +531,93 @@ select.input { color: var(--text-1); overflow-x: auto; } -.code-body .line { display: flex; gap: 20px; } -.ln { color: var(--text-3); user-select: none; min-width: 16px; text-align: right; opacity: 0.5; } +.puro-page .code-body .line { display: flex; gap: 20px; } +.puro-page .ln { color: var(--text-3); user-select: none; min-width: 16px; text-align: right; opacity: 0.5; } /* syntax */ -.kw { color: #c084fc; } -.str { color: #86efac; } -.num { color: #fbbf24; } -.com { color: #64748b; font-style: italic; } -.fn { color: #22d3ee; } -.prop{ color: #f0abfc; } -.var-v { color: #f8fafc; } -.flag{ color: #fb923c; } -.bash-prompt { color: var(--cyan); user-select: none; } +.puro-page .kw { color: #c084fc; } +.puro-page .str { color: #86efac; } +.puro-page .num { color: #fbbf24; } +.puro-page .com { color: #64748b; font-style: italic; } +.puro-page .fn { color: #22d3ee; } +.puro-page .prop { color: #f0abfc; } +.puro-page .var-v { color: #f8fafc; } +.puro-page .flag { color: #fb923c; } +.puro-page .bash-prompt { color: var(--cyan); user-select: none; } /* ========================================================================== PROVIDER-BRAND HELPERS ========================================================================== */ -.provider { +.puro-page .provider { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; } -.provider .dot { width: 6px; height: 6px; border-radius: 50%; } -.provider.claude .dot { background: var(--p-claude); } -.provider.gpt .dot { background: var(--p-gpt); } -.provider.gemini .dot { background: var(--p-gemini); } -.provider.codex .dot { background: var(--p-codex); } +.puro-page .provider .dot { width: 6px; height: 6px; border-radius: 50%; } +.puro-page .provider.claude .dot { background: var(--p-claude); } +.puro-page .provider.gpt .dot { background: var(--p-gpt); } +.puro-page .provider.gemini .dot { background: var(--p-gemini); } +.puro-page .provider.codex .dot { background: var(--p-codex); } /* ========================================================================== UTILITIES ========================================================================== */ -.stack-xs { display: flex; flex-direction: column; gap: 8px; } -.stack-sm { display: flex; flex-direction: column; gap: 12px; } -.stack-md { display: flex; flex-direction: column; gap: 20px; } -.stack-lg { display: flex; flex-direction: column; gap: 32px; } +.puro-page .stack-xs { display: flex; flex-direction: column; gap: 8px; } +.puro-page .stack-sm { display: flex; flex-direction: column; gap: 12px; } +.puro-page .stack-md { display: flex; flex-direction: column; gap: 20px; } +.puro-page .stack-lg { display: flex; flex-direction: column; gap: 32px; } -.row { display: flex; align-items: center; gap: 12px; } -.row-sm { gap: 8px; } -.row-lg { gap: 20px; } -.row-between { justify-content: space-between; } -.row-center { justify-content: center; } -.row-wrap { flex-wrap: wrap; } +.puro-page .row { display: flex; align-items: center; gap: 12px; } +.puro-page .row-sm { gap: 8px; } +.puro-page .row-lg { gap: 20px; } +.puro-page .row-between { justify-content: space-between; } +.puro-page .row-center { justify-content: center; } +.puro-page .row-wrap { flex-wrap: wrap; } -.flex-1 { flex: 1; } -.ml-auto { margin-left: auto; } -.mt-auto { margin-top: auto; } +.puro-page .flex-1 { flex: 1; } +.puro-page .ml-auto { margin-left: auto; } +.puro-page .mt-auto { margin-top: auto; } -.text-0 { color: var(--text-0); } -.text-1 { color: var(--text-1); } -.text-2 { color: var(--text-2); } -.text-3 { color: var(--text-3); } -.text-cyan { color: var(--cyan); } -.text-purple { color: var(--purple); } -.text-amber { color: var(--amber); } -.text-green { color: var(--green); } -.text-red { color: var(--red); } +.puro-page .text-0 { color: var(--text-0); } +.puro-page .text-1 { color: var(--text-1); } +.puro-page .text-2 { color: var(--text-2); } +.puro-page .text-3 { color: var(--text-3); } +.puro-page .text-cyan { color: var(--cyan); } +.puro-page .text-purple { color: var(--purple); } +.puro-page .text-amber { color: var(--amber); } +.puro-page .text-green { color: var(--green); } +.puro-page .text-red { color: var(--red); } -.text-xs { font-size: 11px; } -.text-sm { font-size: 13px; } -.text-md { font-size: 14px; } -.text-lg { font-size: 16px; } -.text-xl { font-size: 20px; } -.text-2xl { font-size: 28px; } -.text-3xl { font-size: 36px; } +.puro-page .text-xs { font-size: 11px; } +.puro-page .text-sm { font-size: 13px; } +.puro-page .text-md { font-size: 14px; } +.puro-page .text-lg { font-size: 16px; } +.puro-page .text-xl { font-size: 20px; } +.puro-page .text-2xl { font-size: 28px; } +.puro-page .text-3xl { font-size: 36px; } -.fw-400 { font-weight: 400; } -.fw-500 { font-weight: 500; } -.fw-600 { font-weight: 600; } -.fw-700 { font-weight: 700; } -.fw-800 { font-weight: 800; } +.puro-page .fw-400 { font-weight: 400; } +.puro-page .fw-500 { font-weight: 500; } +.puro-page .fw-600 { font-weight: 600; } +.puro-page .fw-700 { font-weight: 700; } +.puro-page .fw-800 { font-weight: 800; } -.tabular { font-variant-numeric: tabular-nums; } -.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.puro-page .tabular { font-variant-numeric: tabular-nums; } +.puro-page .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ========================================================================== APP SHELL (for dashboard-style pages) ========================================================================== */ -.app-shell { +.puro-page .app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; position: relative; z-index: 2; } -.app-side { +.puro-page .app-side { border-right: 1px solid var(--border); background: rgba(2, 6, 23, 0.6); padding: 20px 14px; @@ -626,9 +629,9 @@ select.input { height: 100vh; overflow-y: auto; } -.app-side .brand { padding: 6px 10px 14px; } -.side-group { display: flex; flex-direction: column; gap: 2px; } -.side-label { +.puro-page .app-side .brand { padding: 6px 10px 14px; } +.puro-page .side-group { display: flex; flex-direction: column; gap: 2px; } +.puro-page .side-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; @@ -636,7 +639,7 @@ select.input { padding: 0 10px 8px; font-family: var(--font-mono); } -.side-item { +.puro-page .side-item { display: flex; align-items: center; gap: 10px; @@ -647,27 +650,27 @@ select.input { cursor: pointer; transition: all .12s; } -.side-item:hover { color: var(--text-0); background: rgba(255,255,255,0.03); } -.side-item.active { background: rgba(34, 211, 238, 0.08); color: var(--cyan); } -.side-item .ico { +.puro-page .side-item:hover { color: var(--text-0); background: rgba(255,255,255,0.03); } +.puro-page .side-item.active { background: rgba(34, 211, 238, 0.08); color: var(--cyan); } +.puro-page .side-item .ico { width: 16px; height: 16px; opacity: 0.8; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; } -.side-item .count { +.puro-page .side-item .count { margin-left: auto; font-size: 11px; color: var(--text-3); font-family: var(--font-mono); } -.side-item.active .count { color: var(--cyan); } +.puro-page .side-item.active .count { color: var(--cyan); } -.app-main { +.puro-page .app-main { min-width: 0; /* allow grid children to shrink */ display: flex; flex-direction: column; } -.app-topbar { +.puro-page .app-topbar { height: 60px; border-bottom: 1px solid var(--border); display: flex; @@ -680,18 +683,18 @@ select.input { background: rgba(10, 14, 26, 0.75); backdrop-filter: blur(12px); } -.app-topbar h1 { +.puro-page .app-topbar h1 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; } -.app-content { +.puro-page .app-content { padding: 32px; flex: 1; } /* user avatar pill */ -.avatar { +.puro-page .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #22d3ee, #a855f7); @@ -707,7 +710,7 @@ select.input { /* ========================================================================== KBD ========================================================================== */ -kbd { +.puro-page kbd { display: inline-flex; align-items: center; justify-content: center;