mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Implement a toggle menu for setting dark mode
- Add a toggle menu for selecting the color scheme. JS code largely taken from Bootstrap documentation and slightly customized. - Use local storage to store the setting for dark/light/auto. Default to auto which means browser level preference is picked up (which could be system level preference). Tests: - Appearance of the toggle menu is consistent. Check box is shown on the currently selected value. - Deleting the local storage value reverts the preference to browser set value. - Menu is collapsed at smaller screen sizes. Appearance and functionality as expected. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
0419eb02cf
commit
00a69108dd
5 files changed
+156
No files matched your search
@@ -522,6 +522,10 @@ footer {
|
||||
border-bottom: var(--freedombox-navbar-color) 3px solid;
|
||||
}
|
||||
|
||||
.main-header .dropdown-menu .active .fa-check {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
/* Breadcrumbs */
|
||||
.breadcrumb-item {
|
||||
--bs-breadcrumb-divider: ">";
|
||||
|
||||
Reference in new issue
Block a user