Template:TooltipPopup/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
visibility: visible; | visibility: visible; | ||
opacity: 1; | opacity: 1; | ||
} | } | ||
Revision as of 00:11, 7 February 2024
.tooltipcard {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltipcard .tooltiptext {
visibility: hidden;
background-color: rgb(84, 84, 84);
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
opacity: 0;
transition: opacity 0.3s;
}
.tooltipcard:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
.tooltipcard-top .tooltiptext-top::after {
content: " ";
position: absolute;
border-width: 5px;
border-style: solid;
top: 100%; /* At the bottom of the tooltip */
left: 50%;
margin-left: -5px;
border-color: black transparent transparent transparent;
}
.tooltipcard-bottom .tooltiptext-bottom::after {
content: " ";
position: absolute;
border-width: 5px;
border-style: solid;
bottom: 100%;
left: 50%;
margin-left: -5px;
border-color: transparent transparent black transparent;
}
.tooltipcard-right .tooltiptext-right::after {
content: " ";
position: absolute;
border-width: 5px;
border-style: solid;
top: 50%;
right: 100%;
margin-top: -5px;
border-color: transparent black transparent transparent;
}
.tooltipcard-left .tooltiptext-left::after {
content: " ";
position: absolute;
border-width: 5px;
border-style: solid;
top: 50%;
left: 100%;
margin-top: -5px;
border-color: transparent transparent transparent black;
}