Skip to content

Commit

Permalink
fix: fix doc sidebar error z-index (element-plus#15498)
Browse files Browse the repository at this point in the history
  • Loading branch information
0song authored Jan 15, 2024
1 parent 240fe6b commit fba3c2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/.vitepress/vitepress/styles/css-vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@

--nav-z-index: 12;
--sub-nav-z-index: 11;
--sidebar-z-index: 40;
--sidebar-z-index: 11;
--sidebar-z-index-mobile: 31;
--overlay-z-index: 30;
// --dropdown-z-index: 22;

Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/vitepress/styles/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

@media (max-width: 767px) {
width: calc(var(--vp-sidebar-width-mobile) - 14px);
z-index: var(--sidebar-z-index-mobile);
}

@include respond-to('md') {
Expand Down

0 comments on commit fba3c2f

Please sign in to comment.