mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-01-31 10:13:30 -05:00
Change the light switch (sun/moon) (#1289)
This commit is contained in:
parent
ca9e725d0a
commit
c438cac4e8
@ -151,7 +151,7 @@ h1, h2, h3, .md-header__topic {
|
||||
width: 22px;
|
||||
}
|
||||
|
||||
/* Unsticky sidebar without JS */
|
||||
/* Un-sticky sidebar without JS */
|
||||
.no-js .md-sidebar {
|
||||
align-self: auto;
|
||||
}
|
||||
@ -197,3 +197,9 @@ h1, h2, h3, .md-header__topic {
|
||||
.pg-blue-gray {
|
||||
color: #546d78;
|
||||
}
|
||||
|
||||
/* Make light/dark mode icon smaller */
|
||||
label[class="md-header__button md-icon"] svg {
|
||||
height: 1rem;
|
||||
width: 1rem;
|
||||
}
|
||||
|
@ -64,13 +64,13 @@ theme:
|
||||
scheme: default
|
||||
accent: deep purple
|
||||
toggle:
|
||||
icon: material/toggle-switch-off-outline
|
||||
icon: octicons/moon-16
|
||||
name: Switch to dark mode
|
||||
- media: "(prefers-color-scheme: dark)"
|
||||
scheme: slate
|
||||
accent: deep purple
|
||||
toggle:
|
||||
icon: material/toggle-switch
|
||||
icon: octicons/sun-16
|
||||
name: Switch to light mode
|
||||
watch:
|
||||
- theme
|
||||
|
Loading…
x
Reference in New Issue
Block a user