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