移除color组件多余的z-index

master
yutent 2023-04-06 17:39:00 +08:00
parent c2ebc91196
commit 0bb5c82acc
1 changed files with 0 additions and 7 deletions

View File

@ -241,7 +241,6 @@ class Color extends Component {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
z-index: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
content: ''; content: '';
@ -256,7 +255,6 @@ class Color extends Component {
.thumb { .thumb {
position: absolute; position: absolute;
z-index: 1;
width: 0; width: 0;
height: 0; height: 0;
@ -293,7 +291,6 @@ class Color extends Component {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
z-index: 0;
width: 12px; width: 12px;
height: 0; height: 0;
@ -310,7 +307,6 @@ class Color extends Component {
} }
.hue { .hue {
position: relative; position: relative;
z-index: 1;
display: block; display: block;
width: 12px; width: 12px;
height: 180px; height: 180px;
@ -330,7 +326,6 @@ class Color extends Component {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
z-index: 0;
width: 100%; width: 100%;
height: 12px; height: 12px;
background: linear-gradient(to right, transparent, #f00); background: linear-gradient(to right, transparent, #f00);
@ -340,7 +335,6 @@ class Color extends Component {
position: absolute; position: absolute;
left: 100%; left: 100%;
top: 0; top: 0;
z-index: 0;
width: 0; width: 0;
height: 12px; height: 12px;
@ -358,7 +352,6 @@ class Color extends Component {
.alpha { .alpha {
position: relative; position: relative;
z-index: 1;
display: block; display: block;
width: 100%; width: 100%;
height: 12px; height: 12px;