Skip to content

Commit

Permalink
Fix second to last tooltip overflowing due to our wide player controls
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Jan 7, 2025
1 parent eec8c7f commit 74d2688
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,17 @@
:deep(.shaka-tooltips-on button:hover::after) {
margin-bottom: 8px;
}

/*
similar to the styling that shaka-player applies with last-child
needed as we have made the controls a lot wider than they were intended to be :/
*/
:deep(.shaka-tooltips-on button:nth-last-child(2):active::after),
:deep(.shaka-tooltips-on button:nth-last-child(2):focus-visible::after),
:deep(.shaka-tooltips-on button:nth-last-child(2):hover::after) {
left: 32px;
transform: translateX(-80%);
}
}

@media only screen and (width <=1350px) {
Expand Down

0 comments on commit 74d2688

Please sign in to comment.