hugo-PaperMod/assets/css/header.css
Mehdy Khoshnoody a153a7cc6f
Add RTL support for multilingual mode (#47)
Usage: 
in site config:
languages:
  ar:
    languagedirection: rtl
    title: مدونتي
    weight: 2

* ref: https://gohugo.io/content-management/multilingual/#configure-languages
2020-10-19 14:47:23 +05:30

70 lines
1.1 KiB
CSS

/* Header
-------------------------------------------------- */
.nav {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: calc(var(--nav-width) + var(--gap) * 2);
margin-inline-start: auto;
margin-inline-end: auto;
}
.nav a {
display: block;
line-height: var(--header-height);
}
.logo,
.menu {
display: flex;
margin: auto var(--gap);
}
.logo a {
font-size: 24px;
font-weight: 700;
}
.logo a img {
display: inline;
vertical-align: middle;
pointer-events: none;
transform: translate(0, -10%);
border-radius: 6px;
margin-inline-end: 8px;
}
.theme-toggle svg{
height: 18px;
margin: 0 10px;
}
body.dark #moon{
vertical-align: middle;
display: none;
}
body:not(.dark) #sun {
display: none;
}
.menu {
list-style: none;
word-break: keep-all;
overflow-x: auto;
white-space: nowrap;
}
.menu li+li {
margin-inline-start: var(--gap);
}
.menu a {
font-size: 16px;
}
.menu .active {
font-weight: 500;
border-bottom: 2px solid currentColor;
}