summaryrefslogtreecommitdiff
path: root/assets/css
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-01-31 17:05:40 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-01-31 17:09:38 +0530
commitf8781e2cc8437b9af29714e6bc96adbd2797374b (patch)
treef167064ebaaf99b71f956f92f2d71867bd2dc87f /assets/css
parentebbeca4ab4066baaac2bfb9bcc60272dc0303344 (diff)
Improve header
- fix header height 61px->60px - check for elements before displaying - align theme-toggle - rm unnecessary elements - rm theme-toggle class - rm menu class
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/header.css27
1 files changed, 18 insertions, 9 deletions
diff --git a/assets/css/header.css b/assets/css/header.css
index c5fcf9d..ffba369 100644
--- a/assets/css/header.css
+++ b/assets/css/header.css
@@ -13,7 +13,7 @@
}
.logo,
-.menu {
+#menu {
display: flex;
margin: auto var(--gap);
}
@@ -25,7 +25,6 @@
.logo a {
font-size: 24px;
font-weight: 700;
- margin-inline-end: 10px
}
.logo a img {
@@ -37,9 +36,14 @@
margin-inline-end: 8px
}
-.theme-toggle svg {
+#theme-toggle svg {
height: 18px;
+}
+
+a#theme-toggle {
+ font-size: 24px;
user-select: none;
+ margin: auto 4px;
cursor: pointer
}
@@ -52,22 +56,22 @@ body:not(.dark) #sun {
display: none
}
-.menu {
+#menu {
list-style: none;
word-break: keep-all;
overflow-x: auto;
white-space: nowrap
}
-.menu li+li {
+#menu li+li {
margin-inline-start: var(--gap)
}
-.menu a {
+#menu a {
font-size: 16px
}
-.menu .active {
+#menu .active {
font-weight: 500;
border-bottom: 2px solid currentColor
}
@@ -75,13 +79,18 @@ body:not(.dark) #sun {
.lang-switch li,
.lang-switch ul,
.logo-switches {
- display: inline-flex
+ display: inline-flex;
+ margin: auto 4px;
+}
+
+.lang-switch {
+ display: flex;
+ flex-wrap: inherit
}
.lang-switch a {
font-size: 16px;
font-weight: 500;
- margin: 0 8px
}
.logo-switches {