Skip to content

Commit

Permalink
style: z-index 使用保守的数值
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed May 5, 2023
1 parent 20d7075 commit 80fe17c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/website/components/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function (props: {
<div
id="nav"
className=" bg-white sticky top-0 dark:bg-dark nav-shadow dark:nav-shadow-dark"
style={{ zIndex: 1200 }}
style={{ zIndex: 90 }}
>
{/* 上面的导航栏 */}
<div
Expand Down
2 changes: 1 addition & 1 deletion packages/website/components/NavBar/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function LinkItemWithChildren(props: { item: MenuItem }) {
top: 50,
left: "-4px",
transform: show ? "scale(100%)" : "scale(0)",
zIndex: 999,
zIndex: 80,
}}
onMouseEnter={() => {
setHoverSub(true);
Expand Down
2 changes: 1 addition & 1 deletion packages/website/components/SearchCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function (props: {
<div
className="fixed w-full h-full top-0 left-0 right-0 bottom-0 justify-center items-center flex"
style={{
zIndex: 1300,
zIndex: 100,
backgroundColor: "rgba(0,0,0,0.4)",
visibility: props.visible ? "visible" : "hidden",
}}
Expand Down
2 changes: 1 addition & 1 deletion packages/website/styles/back-to-top.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
height: 42px;
background-color: #fff;
font-size: 40px;
z-index: 999;
z-index: 90;
cursor: pointer;
text-align: center;
box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, 0.15);
Expand Down
2 changes: 1 addition & 1 deletion packages/website/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
.headroom {
will-change: transform;
transition: transform 200ms linear;
z-index: 999;
z-index: 100;
}
.headroom--pinned {
transform: translateY(0%);
Expand Down
2 changes: 1 addition & 1 deletion packages/website/styles/side-bar.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Note: Beware of modifying this element as it can break the animations - you shou
font-size: 1.15em;
width: 250px;
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
z-index: 1002;
z-index: 110;
}
.dark .bm-menu {
background: #26282c;
Expand Down
4 changes: 2 additions & 2 deletions packages/website/styles/zoom.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.medium-zoom-overlay {
z-index: 1300;
z-index: 200;
background: white !important;
}

Expand All @@ -8,5 +8,5 @@
}

.medium-zoom-image--opened {
z-index: 1400;
z-index: 210;
}

0 comments on commit 80fe17c

Please sign in to comment.