2019-09-02 14:29:19 +03:00
|
|
|
[tooltip]{
|
|
|
|
position:relative;
|
|
|
|
display:inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
[tooltip]::before {
|
|
|
|
transition: .3s;
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top:-6px;
|
|
|
|
left:50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
border-width: 4px 6px 0 6px;
|
|
|
|
border-style: solid;
|
2021-03-29 11:47:57 +03:00
|
|
|
border-color: rgba(25, 30, 56) transparent transparent transparent;
|
2019-09-02 14:29:19 +03:00
|
|
|
z-index: 99;
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
|
|
|
|
[tooltip]::after {
|
|
|
|
transition: .3s;
|
|
|
|
white-space: nowrap;
|
|
|
|
content: attr(tooltip);
|
|
|
|
position: absolute;
|
|
|
|
left:50%;
|
|
|
|
top:-6px;
|
|
|
|
transform: translateX(-50%) translateY(-100%);
|
2021-03-29 11:47:57 +03:00
|
|
|
background: rgba(25, 30, 56);
|
2019-09-02 14:29:19 +03:00
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
|
|
|
font-size: .875rem;
|
|
|
|
min-width: 80px;
|
2020-07-07 16:36:06 +03:00
|
|
|
max-width: 420px;
|
2019-09-02 14:29:19 +03:00
|
|
|
border-radius: 3px;
|
|
|
|
pointer-events: none;
|
|
|
|
padding: 4px 8px;
|
|
|
|
z-index:99;
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
|
|
|
|
[tooltip]:hover::after,[tooltip]:hover::before {
|
|
|
|
opacity:1
|
|
|
|
}
|