Template:Tooltip/styles.css

From Space Station 14 Wiki
Revision as of 03:00, 3 September 2024 by Aliser (talk | contribs) (wip)
.tooltip-display-text {
	position: relative;
}

.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:hover .tooltip {
	display: inline-block;
}