fix: ensure theme switching works for all containers including sage-shell, topbar, sidebar, and main content area
This commit is contained in:
parent
4170c0b009
commit
22a8dc7ceb
@ -78,6 +78,17 @@ body {
|
|||||||
transition: background-color 0.2s ease, color 0.2s ease;
|
transition: background-color 0.2s ease, color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ensure theme variables override bricks.css hardcoded values */
|
||||||
|
[data-theme="dark"] body {
|
||||||
|
background-color: var(--sage-bg-primary);
|
||||||
|
color: var(--sage-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="light"] body {
|
||||||
|
background-color: var(--sage-bg-primary);
|
||||||
|
color: var(--sage-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
/* ===== Shell Layout ===== */
|
/* ===== Shell Layout ===== */
|
||||||
.sage-shell {
|
.sage-shell {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -85,6 +96,9 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
background-color: var(--sage-bg-primary);
|
||||||
|
color: var(--sage-text-primary);
|
||||||
|
transition: background-color 0.2s ease, color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sage-topbar {
|
.sage-topbar {
|
||||||
@ -695,6 +709,16 @@ body {
|
|||||||
color: var(--sage-brand);
|
color: var(--sage-brand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ===== Utility Classes ===== */
|
||||||
|
.sage-brand-title {
|
||||||
|
color: var(--sage-text-primary);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sage-text-secondary {
|
||||||
|
color: var(--sage-text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
/* ===== Responsive ===== */
|
/* ===== Responsive ===== */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.sage-sidebar {
|
.sage-sidebar {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user