提交 21c225f0 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

refactor: Optimize `z-index`

上级 f0e92ae9
......@@ -239,7 +239,6 @@ if (hexo-config('header.nav.height') && match('%', hexo-config('header.nav.heigh
position: absolute;
bottom: 1rem;
left: calc(50% - 1rem);
z-index: $z-index0;
width: 2rem;
height: 2rem;
text-align: center;
......
......@@ -10,29 +10,28 @@
content: '';
position: absolute;
top: 1em;
bottom: -1em;
left: 0;
z-index: $z-index0;
border: .15rem solid $post-timeline-dot-color;
border-radius: 50%;
width: .6rem;
height: .6rem;
background-color: var(--color-gray-250);
transition: border-color .2s ease;
transform: translate(-50%, -50%);
border-left: .2rem dashed var(--color-gray-250);
transform: translateX(-50%);
}
&::after {
content: '';
position: absolute;
top: 1em;
bottom: -1em;
left: 0;
border-left: .2rem dashed var(--color-gray-250);
transform: translateX(-50%);
border: .15rem solid $post-timeline-dot-color;
border-radius: 50%;
width: .6rem;
height: .6rem;
background-color: var(--color-gray-250);
transition: border-color .2s ease;
transform: translate(-50%, -50%);
}
&:hover {
&::before {
&::after {
border-color: $post-timeline-dot-hover-color;
}
}
......
......@@ -24,7 +24,6 @@
position: absolute;
top: 50%;
left: 0;
z-index: 1000;
border-radius: 50%;
width: .3rem;
height: .3rem;
......
......@@ -2,7 +2,7 @@
position: fixed;
top: 0;
left: 0;
z-index: $z-index1;
z-index: $z-index2;
width: 100%;
height: 100%;
background-color: convert(hexo-config('zoom_image.mask_color') || '#fff');
......
......@@ -13,7 +13,7 @@
position: absolute;
top: 0;
left: 50%;
z-index: $z-index1;
z-index: $z-index2;
font-family: sans-serif, Arial;
font-size: $font-size-base;
font-weight: normal;
......
......@@ -14,9 +14,9 @@ $yellow-light = #fff494
// -------------------------------------------
$z-index-2 = -2
$z-index-1 = -1
$z-index0 = 1000
$z-index1 = 1001
$z-index2 = 1002
$z-index0 = 0
$z-index1 = 1
$z-index2 = 2
// -------------------------------------------
// Layout
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册