Skip to content

Commit

Permalink
Add hover glow to buttons in portrait example
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Nov 22, 2023
1 parent ed61669 commit 42d4808
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/examples/portrait.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ theoplayer-time-range {
--theoplayer-range-padding: 5px;
}

/**
* Our custom buttons use an icon font, so apply a text shadow (instead of an SVG filter) for their hover glow.
*/
theoplayer-button:hover {
text-shadow: var(--theoplayer-button-hover-icon-shadow, 0 0 4px rgba(255, 255, 255, 0.5));
}

/*
* Hide all controls before first play, except for the center play button
*/
Expand Down

0 comments on commit 42d4808

Please sign in to comment.