mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-02 21:08:12 +00:00
fix: data tooltip sizing
This commit is contained in:
+10
-1
@@ -128,14 +128,23 @@ button {
|
||||
&:hover::after,
|
||||
&:focus-visible::after {
|
||||
position: absolute;
|
||||
transform: translateX(10px);
|
||||
|
||||
content: attr(data-tooltip);
|
||||
color: white;
|
||||
background: black;
|
||||
border-radius: 0.5em;
|
||||
margin: 0 0.75em;
|
||||
padding: 0.5em;
|
||||
|
||||
max-width: 300px;
|
||||
|
||||
z-index: 100;
|
||||
|
||||
@media screen and (max-width: $breakpointSm) {
|
||||
left: 50%;
|
||||
transform: translate(-50%, 3ex);
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user