-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #921, fix #983 - Brushed up mobile example https://media-chrome-git-fork-luwes-range-css-parts-mux.vercel.app/examples/vanilla/mobile.html - Removes the background element, we can use the track element for setting the CSS background. - Adds CSS parts: `thumb`, `track`, `progress`, `buffered`. - `--media-range-track-color` CSS var is removed from JS docs, this was left over from the old structure with CSS linear-gradient where it represented the color of the range section on the right of the thumb. 1. a smooth track height transition on hover looks like ```css media-time-range::part(track) { transition: transform 0.2s; transform: scaleY(1); } media-time-range:hover::part(track) { transform: scaleY(1.5); } ``` 2. adding border-radius to track buffered and track progress elements ```css media-time-range::part(buffered), media-time-range::part(progress) { border-radius: 9999px; } ```
- Loading branch information
Showing
3 changed files
with
47 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters