Template:Tooltip/styles.css: Difference between revisions

From Space Station 14 Wiki
(Created page with ".tooltip-display-text { position: relative; } .tooltip { position: absolute; top: 0; left: 0; transform: translate(50%, -100%); margin-bottom: .5rem; }")
 
(wip)
Line 7: Line 7:
top: 0;
top: 0;
left: 0;
left: 0;
transform: translate(50%, -100%);
transform: translate(50%, -100%);
width: max-content;
margin-bottom: .5rem;
margin-bottom: .5rem;
padding: .35rem;
    background-color: var(--bg-color-light-x4);
    border: 1px solid var(--border-color-light-x2);
}
}

Revision as of 02:46, 3 September 2024

.tooltip-display-text {
	position: relative;
}

.tooltip {
	position: absolute;
	top: 0;
	left: 0;
	
	transform: translate(50%, -100%);
	width: max-content;
	margin-bottom: .5rem;
	padding: .35rem;

    background-color: var(--bg-color-light-x4);
    border: 1px solid var(--border-color-light-x2);
}