fix: only apply z-index on left sidebar

This commit is contained in:
Jacky Zhao 2024-08-28 12:50:25 -07:00
parent d613a3d2f2
commit 6715079a89

View File

@ -172,7 +172,6 @@ a {
box-sizing: border-box; box-sizing: border-box;
padding: 0 4rem; padding: 0 4rem;
position: fixed; position: fixed;
z-index: 1;
@media all and (max-width: $fullPageWidth) { @media all and (max-width: $fullPageWidth) {
position: initial; position: initial;
flex-direction: row; flex-direction: row;
@ -183,6 +182,7 @@ a {
} }
& .sidebar.left { & .sidebar.left {
z-index: 1;
left: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth); left: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth);
@media all and (max-width: $fullPageWidth) { @media all and (max-width: $fullPageWidth) {
gap: 0; gap: 0;