mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-30 06:25:24 -04:00
theme-switch-button: init feature (#15)
* thanks to https://feathericons.com for svgs * can be disabled in site config Params: disableThemeToggle : true
This commit is contained in:
parent
af19236002
commit
6a9e9e129a
3 changed files with 69 additions and 5 deletions
|
@ -16,6 +16,7 @@
|
|||
|
||||
.logo,
|
||||
.menu {
|
||||
display: flex;
|
||||
margin: auto var(--gap);
|
||||
}
|
||||
|
||||
|
@ -24,8 +25,21 @@
|
|||
font-weight: 700;
|
||||
}
|
||||
|
||||
.theme-toggle svg{
|
||||
height: 18px;
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
body.dark #moon{
|
||||
vertical-align: middle;
|
||||
display: none;
|
||||
}
|
||||
|
||||
body:not(.dark) #sun {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
word-break: keep-all;
|
||||
overflow-x: auto;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue