data-tooltip 去掉默认内容显式
This commit is contained in:
parent
e61b4c09d2
commit
1b2027823a
|
@ -166,6 +166,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@keyframes tooltipIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
[data-tooltip] {
|
||||
position: relative;
|
||||
|
||||
|
@ -187,11 +195,15 @@
|
|||
left: 100%;
|
||||
color: $Tooltip--attr-color;
|
||||
padding: $Tooltip--attr-paddingY $Tooltip--attr-paddingX;
|
||||
opacity: 0;
|
||||
transition: $Tooltip--attr-transition;
|
||||
display: none;
|
||||
animation-duration: 0.2s;
|
||||
animation-fill-mode: both;
|
||||
}
|
||||
|
||||
&:not(.is-disabled):hover:after {
|
||||
display: inline-block;
|
||||
animation-name: tooltipIn;
|
||||
|
||||
opacity: 1;
|
||||
z-index: $zindex-tooltip;
|
||||
margin: 0 0 0 $Tooltip--attr-gap;
|
||||
|
@ -234,4 +246,4 @@
|
|||
content: '';
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue