Made the sidebar sticky

This commit is contained in:
Sodbileg Gansukh 2023-08-22 18:17:15 +08:00
parent 1df75aa4dd
commit 4335416f75
3 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1461,7 +1461,6 @@ Search LOGO Login Subscribe
display: grid; display: grid;
grid-template-columns: repeat(16, 1fr); grid-template-columns: repeat(16, 1fr);
column-gap: var(--grid-gap); column-gap: var(--grid-gap);
overflow: hidden;
} }
:is(.gh-featured, .gh-cta) + .gh-container { :is(.gh-featured, .gh-cta) + .gh-container {
@ -1527,6 +1526,7 @@ Search LOGO Login Subscribe
@media (max-width: 1199px) { @media (max-width: 1199px) {
.gh-container-inner { .gh-container-inner {
display: block; display: block;
overflow: hidden;
} }
.gh-container.has-sidebar .gh-sidebar { .gh-container.has-sidebar .gh-sidebar {
@ -1690,6 +1690,8 @@ Search LOGO Login Subscribe
/* ---------------------------------------------------------- */ /* ---------------------------------------------------------- */
.gh-about { .gh-about {
position: sticky;
top: calc(var(--grid-gap) / 2);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;