1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

refactor: optimize the basic layouts

This commit is contained in:
Cotes Chung
2023-09-30 04:46:40 +08:00
parent f49155f034
commit 475d181aac
5 changed files with 134 additions and 149 deletions

View File

@@ -148,7 +148,6 @@ footer {
}
p {
line-height: 1.75;
text-align: center;
margin-bottom: 0;
}
@@ -820,9 +819,11 @@ $btn-mb: 0.5rem;
padding-right: 1rem;
margin-bottom: 1.5rem;
$btn-size: 1.75rem;
%button {
width: 1.75rem;
height: 1.75rem;
width: $btn-size;
height: $btn-size;
margin-bottom: $btn-mb; // multi line gap
border-radius: 50%;
color: var(--sidebar-btn-color);
@@ -849,7 +850,7 @@ $btn-mb: 0.5rem;
}
i {
line-height: 1.75rem;
line-height: $btn-size;
}
.mode-toggle {
@@ -1129,10 +1130,6 @@ search {
> :not(script) {
margin-top: 3rem;
}
> :only-child {
margin-top: 0;
}
}
/* --- button back-to-top --- */