muryshev's picture
init
79278ec
raw
history blame contribute delete
527 Bytes
.tooltip {
position: relative;
display: inline-block;
}
.tooltiptext {
position: absolute;
bottom: 120%;
left: 50%;
transform: translateX(-50%);
background-color: rgb(49, 49, 49);
color: white;
padding: 5px;
border-radius: 4px;
white-space: nowrap;
z-index: 1000;
}
.tooltip .tooltiptext::after {
content: " ";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: var(--text-0-color) transparent transparent transparent;
}