Update: make sidebars sticky. (#6280)

This commit is contained in:
Juntao_Luo 2022-10-25 15:28:31 +08:00 committed by GitHub
parent 39bd960e2a
commit 6245a4525b

View file

@ -66,4 +66,29 @@ code span.pre {
.bigdl-quicklinks-section-title {
color: var(--pst-color-primary);
padding: 0.25rem 0rem;
}
/* make the sidebars sticky */
/* make the page footer position absolute to aviod pushing sidebars up when scrolling to the end of the page */
.bd-footer{
position: absolute;
bottom: 0;
background-color: var(--pst-color-on-background);
}
/* make its parent element position relative to ensure the "position:absolute" change valid */
body{
position: relative;
}
/* set the height of footer */
footer.bd-footer{
height: 5rem;
}
/* the margin height is just the height of original footer, to avoid content overlapping */
.bd-footer-article {
margin-bottom: 5rem;
}