Add dark mode for PWA frontend
This commit is contained in:
@@ -845,3 +845,63 @@
|
||||
align-self: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
/* Theme Toggle */
|
||||
.menu-item-theme-label {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
color: var(--on-surface-variant);
|
||||
}
|
||||
|
||||
.profile-theme-options {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.profile-theme-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem 1rem;
|
||||
background: var(--surface);
|
||||
border: 2px solid var(--outline-variant);
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
color: var(--on-surface-variant);
|
||||
font-family: inherit;
|
||||
text-align: left;
|
||||
transition: border-color 0.15s, color 0.15s, background 0.15s;
|
||||
}
|
||||
|
||||
.profile-theme-btn:hover {
|
||||
border-color: var(--primary);
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
.profile-theme-btn--active {
|
||||
border-color: var(--primary);
|
||||
background: var(--primary-faint);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.profile-theme-btn--active .profile-theme-btn-label {
|
||||
color: var(--primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.profile-theme-btn-label {
|
||||
flex: 1;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
.profile-theme-btn-desc {
|
||||
font-size: 0.8rem;
|
||||
color: var(--on-surface-variant);
|
||||
}
|
||||
|
||||
.profile-modal-theme {
|
||||
max-width: 24rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user