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

chore: optimize the layout of main content and search input

This commit is contained in:
Cotes Chung
2022-06-08 22:35:13 +08:00
parent 35cadf969d
commit fd0f983bbe
5 changed files with 17 additions and 6 deletions

View File

@@ -1377,7 +1377,7 @@ $sidebar-display: "sidebar-display";
}
#search-wrapper {
max-width: 210px;
max-width: $search-max-width;
}
#search-result-wrapper {
@@ -1541,11 +1541,20 @@ $sidebar-display: "sidebar-display";
left: $sidebar-width-large;
}
#search-wrapper {
margin-right: calc(#{$main-content-max-width} * 0.25 - #{$search-max-width});
}
#topbar,
#main {
max-width: $main-content-max-width;
}
#core-wrapper,
#tail-wrapper {
padding-right: 4.5rem !important;
}
#back-to-top {
right: calc((100vw - #{$sidebar-width-large} - #{$main-content-max-width}) / 2 + 2rem);
}