diff options
| author | Eltrac <hi@guhub.cn> | 2025-01-08 14:38:00 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-01-08 14:38:00 +0800 |
| commit | ae6df5e842f849ffe8464a8d0a070839de1b5b3a (patch) | |
| tree | c99858a90b5ef65ba2d1e7b1ad6653009ff26439 /assets/css/components/_header.scss | |
| parent | 049c33e8f246b213254e827f660e2e74a0fe3cc2 (diff) | |
refactor(theme): use scss and split index.css into modules
Diffstat (limited to 'assets/css/components/_header.scss')
| -rw-r--r-- | assets/css/components/_header.scss | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/assets/css/components/_header.scss b/assets/css/components/_header.scss new file mode 100644 index 00000000..9e3d4454 --- /dev/null +++ b/assets/css/components/_header.scss @@ -0,0 +1,68 @@ +/* header */ + +.header-title { + font-size: 2rem; + font-weight: 900; + margin-top: 32px; + text-align: center; + letter-spacing: .15rem; +} +.header-title a { + text-decoration: none; +} + +.header-subtitle { + color: var(--secondary-text-color); +} + +.header-line { + width: 100%; + border-width: 1px; + border-color: var(--border-color); + border-style: solid none none none; +} + +/* navigation */ + +#navigation-bar { + --gap: .75rem; + display: flex; + justify-content: center; + align-items: center; + gap: var(--gap); + padding-left: calc(1rem + var(--gap)) +} + +.navigation { + margin: 1rem 0; + display: flex; + justify-content: center; + align-items: center; + width: fit-content; + border-radius: 1rem; + overflow: hidden; +} + +.navigation-item a { + display: inline-block; + color: var(--background-color); + padding: 0.25rem 0.5rem; + background-color: var(--text-color); +} + +.navigation-item:first-child a { + padding-left: 0.75rem +} + +.navigation-item:last-child a { + padding-right: 0.75rem +} + +.navigation-item.active a { + color: var(--text-color); + background-color: var(--block-background-color); +} + +.navigation-item a:hover { + text-decoration: none; +} |
