diff options
| author | rtk0c <[email protected]> | 2025-09-01 11:27:12 -0700 |
|---|---|---|
| committer | rtk0c <[email protected]> | 2025-09-01 11:27:12 -0700 |
| commit | 568d2f599f7f42494758797f0d052f3a2847cbf0 (patch) | |
| tree | c16ace68524dc3c554f83f7501cc9acf255ac0f4 /themes/PaperMod/assets/css/common/header.css | |
| parent | cb3897c9f07769a820a4fea23946a78fea6456cb (diff) | |
| parent | 86b0d0c422e34c38837b5b5495ad6d295d0e73d2 (diff) | |
Merge commit '86b0d0c422e34c38837b5b5495ad6d295d0e73d2' as 'themes/PaperMod'
Diffstat (limited to 'themes/PaperMod/assets/css/common/header.css')
| -rw-r--r-- | themes/PaperMod/assets/css/common/header.css | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/themes/PaperMod/assets/css/common/header.css b/themes/PaperMod/assets/css/common/header.css new file mode 100644 index 0000000..64894da --- /dev/null +++ b/themes/PaperMod/assets/css/common/header.css @@ -0,0 +1,93 @@ +.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; + line-height: var(--header-height); +} + +.nav a { + display: block; +} + +.logo, +#menu { + display: flex; + margin: auto var(--gap); +} + +.logo { + flex-wrap: inherit; +} + +.logo a { + font-size: 24px; + font-weight: 700; +} + +.logo a img, .logo a svg { + display: inline; + vertical-align: middle; + pointer-events: none; + transform: translate(0, -10%); + border-radius: 6px; + margin-inline-end: 8px; +} + +button#theme-toggle { + font-size: 26px; + margin: auto 4px; +} + +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; +} + +.lang-switch li, +.lang-switch ul, +.logo-switches { + display: inline-flex; + margin: auto 4px; +} + +.lang-switch { + display: flex; + flex-wrap: inherit; +} + +.lang-switch a { + margin: auto 3px; + font-size: 16px; + font-weight: 500; +} + +.logo-switches { + flex-wrap: inherit; +} |
