fix: data tooltip sizing

This commit is contained in:
2025-04-04 20:11:18 +02:00
parent f1720c88e8
commit 50f573e8c6
+10 -1
View File
@@ -128,14 +128,23 @@ button {
&:hover::after, &:hover::after,
&:focus-visible::after { &:focus-visible::after {
position: absolute; position: absolute;
transform: translateX(10px);
content: attr(data-tooltip); content: attr(data-tooltip);
color: white; color: white;
background: black; background: black;
border-radius: 0.5em;
margin: 0 0.75em;
padding: 0.5em; padding: 0.5em;
max-width: 300px; max-width: 300px;
z-index: 100; z-index: 100;
@media screen and (max-width: $breakpointSm) {
left: 50%;
transform: translate(-50%, 3ex);
text-align: center;
}
} }
} }