Template:Tooltip/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
.tooltip:hover > .text { | .tooltip:hover > .text { | ||
visibility: visible; | visibility: visible; | ||
} | } |
Revision as of 00:53, 15 March 2024
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltip > .text {
visibility: hidden;
position: absolute;
left: 50%;
bottom: calc(10px + 100%);
z-index: 1;
min-width: 120px;
padding: 5px 0;
background: #fff;
box-shadow: 0 2px 0 0 rgba(0,0,0,0.15);
border: 1px solid #a2a9b1;
border-radius: 2px;
text-align: center;
white-space: normal;
font-weight: normal;
font-style: initial;
font-size: 14px;
line-height: 1.6;
}
.tooltip:hover > .text {
visibility: visible;
}