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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user