summaryrefslogtreecommitdiff
path: root/assets/css/components/_header.scss
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-01-08 14:38:00 +0800
committerEltrac <hi@guhub.cn>2025-01-08 14:38:00 +0800
commitae6df5e842f849ffe8464a8d0a070839de1b5b3a (patch)
treec99858a90b5ef65ba2d1e7b1ad6653009ff26439 /assets/css/components/_header.scss
parent049c33e8f246b213254e827f660e2e74a0fe3cc2 (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.scss68
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;
+}