2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 05:36:46 +00:00

Merge pull request #269 from EmileHofsink/feature/dark-mode-slider

feat: Enabling Dark Mode + Slider
This commit is contained in:
Oliver 2022-04-22 14:10:01 +10:00 committed by GitHub
commit bd54d80575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -2589,6 +2589,9 @@ html {
margin-bottom: 5px; margin-bottom: 5px;
font-weight: 700; font-weight: 700;
} }
label:is(.md-header__button) {
display: none;
}
input[type="search"] { input[type="search"] {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;

View File

@ -13,8 +13,18 @@ theme:
name: material name: material
custom_dir: _includes/overrides custom_dir: _includes/overrides
palette: palette:
scheme: default - media: "(prefers-color-scheme: light)"
accent: light blue scheme: default
accent: light blue
toggle:
icon: material/toggle-switch
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
accent: light blue
toggle:
icon: material/toggle-switch-off-outline
name: Switch to light mode
logo: assets/logo.png logo: assets/logo.png
favicon: assets/favicon.ico favicon: assets/favicon.ico
icon: icon: