9291bde531
Resolves #79 This Pull Request completes the visual implementation of the premium **"Warm Paper / Soft Sepia"** light theme across all user dashboard sub-modules and components. ### 🎨 Styling Refactoring & Light Sepia Layout We refactored isolated component styles (`.razor.css`) to ensure proper contrast, remove hardcoded dark tokens, and fix text visibility under the `.theme-light` environment: 1. **Dashboard & Sidebar Layouts:** * **MainHubLayout.razor.css** & **Dashboard.razor.css**: Replaced hardcoded dark backgrounds with `var(--bg-surface)` and `var(--bg-base)`. Overrode user name brackets, progress bar elements, active quiz cards, graph nodes, and buttons. 2. **Catalog & Library Pages:** * **Catalog.razor.css** & **MyBooks.razor.css**: Adjusted cover hover actions, overlay transparency, and progress tracks. Fixed course tile background gradients to use a warm, elegant `#e4e1d9` layer and `var(--text-main)` code text. 3. **Profile & Settings Views:** * **Profile.razor.css** & **Settings.razor.css**: Overrode token usage progress tracks, page title gradient transparency, section descriptions, and diagnostic button styling. 4. **Concepts Dashboard & Interactive Widgets:** * **ConceptsDashboard.razor.css** & **ConceptsMap.razor.css**: Transitioned node headers, unlocked/locked badges, warning blocks, and term pills to semantic colors. Removed neon glow animations for locked nodes. 5. **Intelligence Workspace & AI Responses:** * **Intelligence.razor.css** & **AiResponseRenderer.razor.css**: Refactored empty state welcome messages, placeholder styles, input fields, and robot avatar borders. Refined the linear-gradient mask fade effect to blend correctly into the light sepia surface environment rather than dropping into dark transparent channels. 6. **Dashboard Sidebar Widgets:** * **CurrentReadingWidget.razor.css** & **ContextualRecommendationsWidget.razor.css**: Replaced hardcoded `#1a1a1e` card containers and light text colors with semantic variables (`var(--bg-surface)`, `var(--border)`, `var(--text-main)`, and `var(--text-muted)`). ### 🛠️ Blazor CSS Isolation Compiler Compliance * Avoided the use of `:global(.theme-light)` selector overrides within isolated CSS rules because they are unsupported by Blazor's CSS isolation compiler and cause the compiled stylesheet to ignore them. * Replaced them with the correct standard selector format `.theme-light .some-class` which properly compiles to `.theme-light .some-class[b-xxxx]`, applying correct theme styles recursively to child scoped markup. ### 🧪 Verification * Checked that the solution builds cleanly with 0 compiler errors: `dotnet build NexusReader.slnx --no-restore` * Ran all unit tests successfully: `dotnet test NexusReader.slnx --no-restore` --------- Co-authored-by: Marek Jasiński <jasins.marek@gmail.com> Reviewed-on: #78 Co-authored-by: Antigravity <antigravity@google.com> Co-committed-by: Antigravity <antigravity@google.com>
112 lines
2.5 KiB
CSS
112 lines
2.5 KiB
CSS
.settings-page {
|
|
padding: 3rem 2rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
animation: fadeIn 0.6s ease-out;
|
|
}
|
|
|
|
.settings-page > h1 {
|
|
font-family: var(--nexus-font-serif);
|
|
font-size: 2.8rem;
|
|
font-weight: 700;
|
|
margin: 0 0 0.5rem 0;
|
|
background: linear-gradient(135deg, var(--nexus-text) 0%, rgba(255, 255, 255, 0.7) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.settings-page > p {
|
|
font-size: 1rem;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.settings-section {
|
|
padding: 2rem;
|
|
margin-top: 1.5rem;
|
|
border-radius: var(--radius-lg);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.settings-section h2 {
|
|
font-family: var(--nexus-font-sans);
|
|
font-size: 1.35rem;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin: 0 0 0.75rem 0;
|
|
}
|
|
|
|
.settings-section p {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
font-size: 0.95rem;
|
|
margin: 0 0 1.5rem 0;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.diag-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: rgba(0, 255, 153, 0.05);
|
|
color: var(--nexus-neon);
|
|
border: 1px solid rgba(0, 255, 153, 0.2);
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: var(--radius-md);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 0 0 transparent;
|
|
}
|
|
|
|
.diag-btn:hover {
|
|
background: var(--nexus-neon);
|
|
color: #000000;
|
|
border-color: var(--nexus-neon);
|
|
box-shadow: 0 0 15px var(--nexus-primary-glow);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(15px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ============================================================
|
|
LIGHT THEME OVERRIDES — "Warm Paper / Soft Sepia"
|
|
============================================================ */
|
|
|
|
.theme-light .settings-page > h1 {
|
|
background: none;
|
|
-webkit-text-fill-color: initial;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.theme-light .settings-page > p {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.theme-light .settings-section h2 {
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.theme-light .settings-section p {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.theme-light .diag-btn {
|
|
background: rgba(16, 185, 129, 0.05);
|
|
color: var(--accent);
|
|
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
}
|
|
|
|
.theme-light .diag-btn:hover {
|
|
background: var(--accent);
|
|
color: #ffffff;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
|
|
transform: translateY(-2px);
|
|
}
|
|
|