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