mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-18 17:14:34 -04:00
header: add Language switch (#54)
* language-switch: init * header: move logo-switches together
This commit is contained in:
parent
a97de0f9a4
commit
c33dabf3a2
2 changed files with 75 additions and 28 deletions
|
@ -7,17 +7,18 @@
|
|||
max-width: calc(var(--nav-width) + var(--gap) * 2);
|
||||
margin-inline-start: auto;
|
||||
margin-inline-end: auto;
|
||||
line-height: var(--header-height);
|
||||
}
|
||||
|
||||
.nav a {
|
||||
display: block;
|
||||
line-height: var(--header-height);
|
||||
}
|
||||
|
||||
.logo,
|
||||
.menu {
|
||||
display: flex;
|
||||
margin: auto var(--gap);
|
||||
flex-wrap: inherit;
|
||||
}
|
||||
|
||||
.logo a {
|
||||
|
@ -40,7 +41,7 @@
|
|||
user-select: none;
|
||||
}
|
||||
|
||||
body.dark #moon{
|
||||
body.dark #moon {
|
||||
vertical-align: middle;
|
||||
display: none;
|
||||
}
|
||||
|
@ -68,3 +69,22 @@ body:not(.dark) #sun {
|
|||
font-weight: 500;
|
||||
border-bottom: 2px solid currentColor;
|
||||
}
|
||||
|
||||
.lang-switch ul {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.lang-switch a {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
.lang-switch li {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.logo-switches {
|
||||
display: inline-flex;
|
||||
flex-wrap: inherit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue