From fd5df7e1a1bd31edd8652f75088c647a25068892 Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Tue, 11 Oct 2022 22:47:36 +0800
Subject: [PATCH] refactor(typo): optimize the site-title position
---
_includes/sidebar.html | 2 +-
_sass/addon/commons.scss | 10 +++++++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/_includes/sidebar.html b/_includes/sidebar.html
index 4ecf539..8d4b1ef 100644
--- a/_includes/sidebar.html
+++ b/_includes/sidebar.html
@@ -21,7 +21,7 @@
-
+
{{ site.tagline }}
diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss
index 9549d04..ff93f7e 100644
--- a/_sass/addon/commons.scss
+++ b/_sass/addon/commons.scss
@@ -689,6 +689,8 @@ $sidebar-display: "sidebar-display";
} /* #avatar */
.site-title {
+ margin-top: 0.55rem;
+
a {
@extend %clickable-transition;
@@ -702,9 +704,9 @@ $sidebar-display: "sidebar-display";
.site-subtitle {
font-size: 95%;
color: var(--sidebar-muted-color);
- line-height: 1.2rem;
+ line-height: 1.25rem;
word-spacing: 1px;
- margin: 0.5rem 1.5rem 0.5rem 1.5rem;
+ margin: 0.2rem 1.5rem 0.5rem 1.5rem;
min-height: 3rem; /* avoid vertical shifting in multi-line words */
user-select: none;
}
@@ -1584,6 +1586,8 @@ $sidebar-display: "sidebar-display";
.site-title {
@extend %profile-ml;
+ margin-top: 0.4rem;
+
a {
font-size: 1.7rem;
letter-spacing: 1px;
@@ -1594,7 +1598,7 @@ $sidebar-display: "sidebar-display";
@extend %profile-ml;
word-spacing: 0;
- margin-top: 0.3rem;
+ margin-top: 0;
}
} /* .profile-wrapper (min-width: 1650px) */