Template:Tooltip/styles.css: Difference between revisions
From Space Station 14 Wiki
(wip) |
(wip) |
||
Line 1: | Line 1: | ||
.tooltip-display-text-container { | |||
position: relative; | |||
} | |||
.tooltip-display-text { | .tooltip-display-text { | ||
/* set in template */ | |||
} | } | ||
Line 19: | Line 23: | ||
} | } | ||
.tooltip-display-text:hover .tooltip { | .tooltip-display-text-container:hover .tooltip { | ||
display: inline-block; | display: inline-block; | ||
} | } |
Revision as of 03:09, 3 September 2024
.tooltip-display-text-container {
position: relative;
}
.tooltip-display-text {
/* set in template */
}
.tooltip {
display: none;
position: absolute;
top: -.5rem;
left: 0;
transform: translate(50%, -100%);
width: max-content;
padding: .35rem;
background-color: var(--bg-color-light-x4);
border: 1px solid var(--border-color-light-x2);
}
.tooltip-display-text-container:hover .tooltip {
display: inline-block;
}