Change the light switch (sun/moon) (#1289)

This commit is contained in:
lexi 2022-05-21 20:25:41 -05:00 committed by Jonah Aragon
parent ca9e725d0a
commit c438cac4e8
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View File

@ -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;
}

View File

@ -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