Template:Tooltip/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
visibility: hidden; | visibility: hidden; | ||
position: absolute; | position: absolute; | ||
left: | left: 0; | ||
bottom: calc( | bottom: calc(2px + 100%); | ||
z-index: 1; | z-index: 1; | ||
min-width: 120px; | min-width: 120px; | ||
padding: 5px | padding: 5px; | ||
background: #fff; | background: #fff; | ||
box-shadow: | box-shadow: 1px 2px 0 0 rgba(0,0,0,0.15); | ||
border: 1px solid # | border: 1px solid #aaa; | ||
border-radius: | border-radius: 5px; | ||
text-align: center; | text-align: center; | ||
white-space: normal; | white-space: normal; | ||
Line 27: | Line 27: | ||
.tooltip:hover > .text { | .tooltip:hover > .text { | ||
visibility: visible; | visibility: visible; | ||
} | } |
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;
}