@hanifhan1f/vidstack-react 1.12.13 → 1.12.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev/chunks/vidstack-B-FM4-oZ.js +668 -0
- package/dev/chunks/vidstack-B92UncBI.js +61 -0
- package/dev/chunks/vidstack-BDiAEW1N.js +11691 -0
- package/dev/chunks/vidstack-BZIhWvGa.js +1371 -0
- package/dev/chunks/vidstack-Bfi_jCvb.js +476 -0
- package/dev/chunks/vidstack-CBF7iUqu.js +22 -0
- package/dev/chunks/vidstack-CFZ0rYJz.js +34 -0
- package/dev/chunks/vidstack-CM82l-7o.js +551 -0
- package/dev/chunks/vidstack-CvWDiSTs.js +84 -0
- package/dev/chunks/vidstack-CzU-uC5f.js +189 -0
- package/dev/chunks/vidstack-D-hQD1eE.js +9 -0
- package/dev/chunks/vidstack-D6_9yy0x.js +643 -0
- package/dev/chunks/vidstack-DJQOTrl6.js +180 -0
- package/dev/chunks/vidstack-DNbKNc4R.js +288 -0
- package/dev/chunks/vidstack-D_bWd66h.js +2023 -0
- package/dev/chunks/vidstack-Dm1xEU9Q.js +36 -0
- package/dev/chunks/vidstack-f6WXkmfP.js +375 -0
- package/dev/chunks/vidstack-krOAtKMi.js +34 -0
- package/dev/chunks/vidstack-lYFZKRUc.js +401 -0
- package/dev/chunks/vidstack-vz-aZSfo.js +1497 -0
- package/dev/player/vidstack-default-components.js +14 -0
- package/dev/player/vidstack-default-icons.js +88 -0
- package/dev/player/vidstack-default-layout.js +14 -0
- package/dev/player/vidstack-plyr-icons.js +62 -0
- package/dev/player/vidstack-plyr-layout.js +636 -0
- package/dev/player/vidstack-remotion.js +345 -0
- package/dev/vidstack.js +587 -0
- package/dom.d.ts +91 -0
- package/google-cast.d.ts +1422 -0
- package/icons.d.ts +5 -0
- package/index.d.ts +8 -0
- package/package.json +9 -60
- package/player/layouts/default.d.ts +11392 -0
- package/player/layouts/plyr.d.ts +5 -0
- package/player/remotion.d.ts +5 -0
- package/player/styles/base.css +153 -0
- package/player/styles/default/buffering.css +55 -0
- package/player/styles/default/buttons.css +175 -0
- package/player/styles/default/captions.css +181 -0
- package/player/styles/default/chapter-title.css +26 -0
- package/player/styles/default/controls.css +56 -0
- package/player/styles/default/gestures.css +19 -0
- package/player/styles/default/icons.css +6 -0
- package/player/styles/default/keyboard.css +148 -0
- package/player/styles/default/layouts/audio.css +417 -0
- package/player/styles/default/layouts/video.css +1082 -0
- package/player/styles/default/menus.css +959 -0
- package/player/styles/default/poster.css +52 -0
- package/player/styles/default/sliders.css +391 -0
- package/player/styles/default/theme.css +2461 -0
- package/player/styles/default/thumbnail.css +40 -0
- package/player/styles/default/time.css +45 -0
- package/player/styles/default/tooltips.css +141 -0
- package/player/styles/plyr/theme.css +1237 -0
- package/prod/chunks/vidstack-0Foyib2F.js +34 -0
- package/prod/chunks/vidstack-BbPEqH3g.js +11196 -0
- package/prod/chunks/vidstack-Bh7M8kL6.js +663 -0
- package/prod/chunks/vidstack-BlPINAXN.js +189 -0
- package/prod/chunks/vidstack-C5Rzkyfp.js +375 -0
- package/prod/chunks/vidstack-CBF7iUqu.js +22 -0
- package/prod/chunks/vidstack-CZNlvfmV.js +288 -0
- package/prod/chunks/vidstack-CZgUA94N.js +1979 -0
- package/prod/chunks/vidstack-Ce0Qn3e1.js +1497 -0
- package/prod/chunks/vidstack-D0XCUWbp.js +159 -0
- package/prod/chunks/vidstack-DTyDOhwS.js +504 -0
- package/prod/chunks/vidstack-DhC5F6c8.js +470 -0
- package/prod/chunks/vidstack-Dm1xEU9Q.js +36 -0
- package/prod/chunks/vidstack-Ma9rwtR0.js +386 -0
- package/prod/chunks/vidstack-WsodkLQg.js +1371 -0
- package/prod/chunks/vidstack-jIPoNqhj.js +545 -0
- package/prod/chunks/vidstack-krOAtKMi.js +34 -0
- package/prod/chunks/vidstack-vqp2QaHR.js +9 -0
- package/prod/chunks/vidstack-xo_SmgiV.js +84 -0
- package/prod/chunks/vidstack-xvxeRtaN.js +61 -0
- package/prod/player/vidstack-default-components.js +14 -0
- package/prod/player/vidstack-default-icons.js +88 -0
- package/prod/player/vidstack-default-layout.js +14 -0
- package/prod/player/vidstack-plyr-icons.js +62 -0
- package/prod/player/vidstack-plyr-layout.js +636 -0
- package/prod/player/vidstack-remotion.js +335 -0
- package/prod/vidstack-icons.js +435 -0
- package/prod/vidstack.js +648 -0
- package/server/chunks/vidstack-2zMSe4ym.js +1371 -0
- package/server/chunks/vidstack-BtqWstSj.js +375 -0
- package/server/chunks/vidstack-C-HdFsZi.js +84 -0
- package/server/chunks/vidstack-C4iWXMC-.js +545 -0
- package/server/chunks/vidstack-C5zFBMwg.js +386 -0
- package/server/chunks/vidstack-CBF7iUqu.js +22 -0
- package/server/chunks/vidstack-CEh38XpD.js +288 -0
- package/server/chunks/vidstack-CWR0J8Qz.js +1497 -0
- package/server/chunks/vidstack-CkMAeO-e.js +34 -0
- package/server/chunks/vidstack-Cm0qnRvu.js +11196 -0
- package/server/chunks/vidstack-CoGzBr_V.js +663 -0
- package/server/chunks/vidstack-CyFwkPiu.js +470 -0
- package/server/chunks/vidstack-D-hQD1eE.js +9 -0
- package/server/chunks/vidstack-D_bWd66h.js +2023 -0
- package/server/chunks/vidstack-Dm1xEU9Q.js +36 -0
- package/server/chunks/vidstack-DtQSvsQr.js +189 -0
- package/server/chunks/vidstack-jlaBqZq5.js +61 -0
- package/server/chunks/vidstack-krOAtKMi.js +34 -0
- package/server/chunks/vidstack-rWs25cS9.js +159 -0
- package/server/chunks/vidstack-uyCXITen.js +504 -0
- package/server/player/vidstack-default-components.js +14 -0
- package/server/player/vidstack-default-icons.js +88 -0
- package/server/player/vidstack-default-layout.js +14 -0
- package/server/player/vidstack-plyr-icons.js +62 -0
- package/server/player/vidstack-plyr-layout.js +636 -0
- package/server/player/vidstack-remotion.js +335 -0
- package/server/vidstack.js +648 -0
- package/tailwind.cjs +101 -0
- package/tailwind.d.cts +15 -0
- package/.templates/sandbox/document.css +0 -27
- package/.templates/sandbox/favicon-32x32.png +0 -0
- package/.templates/sandbox/index.html +0 -21
- package/.templates/sandbox/main.tsx +0 -12
- package/.templates/sandbox/player.css +0 -39
- package/.templates/sandbox/player.tsx +0 -121
- package/.templates/sandbox/tracks.ts +0 -23
- package/analyze.config.ts +0 -7
- package/build/build-icons.js +0 -62
- package/rollup.config.ts +0 -256
- package/src/components/announcer.tsx +0 -47
- package/src/components/layouts/default/audio-layout.tsx +0 -231
- package/src/components/layouts/default/context.ts +0 -28
- package/src/components/layouts/default/hooks.ts +0 -13
- package/src/components/layouts/default/icons.tsx +0 -225
- package/src/components/layouts/default/index.ts +0 -11
- package/src/components/layouts/default/media-layout.tsx +0 -259
- package/src/components/layouts/default/slots.tsx +0 -98
- package/src/components/layouts/default/ui/announcer.tsx +0 -22
- package/src/components/layouts/default/ui/buttons.tsx +0 -301
- package/src/components/layouts/default/ui/captions.tsx +0 -16
- package/src/components/layouts/default/ui/controls.tsx +0 -12
- package/src/components/layouts/default/ui/keyboard-display.tsx +0 -132
- package/src/components/layouts/default/ui/menus/accessibility-menu.tsx +0 -100
- package/src/components/layouts/default/ui/menus/audio-menu.tsx +0 -167
- package/src/components/layouts/default/ui/menus/captions-menu.tsx +0 -61
- package/src/components/layouts/default/ui/menus/chapters-menu.tsx +0 -132
- package/src/components/layouts/default/ui/menus/font-menu.tsx +0 -331
- package/src/components/layouts/default/ui/menus/items/menu-checkbox.tsx +0 -72
- package/src/components/layouts/default/ui/menus/items/menu-items.tsx +0 -135
- package/src/components/layouts/default/ui/menus/items/menu-slider.tsx +0 -92
- package/src/components/layouts/default/ui/menus/playback-menu.tsx +0 -232
- package/src/components/layouts/default/ui/menus/settings-menu.tsx +0 -114
- package/src/components/layouts/default/ui/menus/utils.ts +0 -12
- package/src/components/layouts/default/ui/sliders.tsx +0 -136
- package/src/components/layouts/default/ui/time.tsx +0 -73
- package/src/components/layouts/default/ui/title.tsx +0 -24
- package/src/components/layouts/default/ui/tooltip.tsx +0 -27
- package/src/components/layouts/default/ui.ts +0 -8
- package/src/components/layouts/default/video-layout.tsx +0 -344
- package/src/components/layouts/plyr/context.ts +0 -26
- package/src/components/layouts/plyr/icons/plyr-airplay.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-captions-off.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-captions-on.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-download.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-enter-fullscreen.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-exit-fullscreen.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-fast-forward.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-muted.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-pause.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-pip.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-play.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-restart.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-rewind.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-settings.js +0 -1
- package/src/components/layouts/plyr/icons/plyr-volume.js +0 -1
- package/src/components/layouts/plyr/icons.tsx +0 -71
- package/src/components/layouts/plyr/index.ts +0 -11
- package/src/components/layouts/plyr/layout.tsx +0 -1024
- package/src/components/layouts/plyr/props.ts +0 -104
- package/src/components/layouts/plyr/slots.tsx +0 -52
- package/src/components/layouts/remotion-ui.ts +0 -13
- package/src/components/layouts/utils.ts +0 -17
- package/src/components/player-callbacks.ts +0 -67
- package/src/components/player.tsx +0 -67
- package/src/components/primitives/instances.ts +0 -92
- package/src/components/primitives/nodes.tsx +0 -58
- package/src/components/primitives/slot.tsx +0 -132
- package/src/components/provider.tsx +0 -187
- package/src/components/text-track.tsx +0 -106
- package/src/components/ui/buttons/airplay-button.tsx +0 -53
- package/src/components/ui/buttons/caption-button.tsx +0 -55
- package/src/components/ui/buttons/fullscreen-button.tsx +0 -55
- package/src/components/ui/buttons/google-cast-button.tsx +0 -53
- package/src/components/ui/buttons/live-button.tsx +0 -56
- package/src/components/ui/buttons/mute-button.tsx +0 -60
- package/src/components/ui/buttons/pip-button.tsx +0 -54
- package/src/components/ui/buttons/play-button.tsx +0 -53
- package/src/components/ui/buttons/seek-button.tsx +0 -55
- package/src/components/ui/buttons/toggle-button.tsx +0 -51
- package/src/components/ui/caption.tsx +0 -70
- package/src/components/ui/captions.tsx +0 -41
- package/src/components/ui/chapter-title.tsx +0 -40
- package/src/components/ui/controls.tsx +0 -90
- package/src/components/ui/gesture.tsx +0 -43
- package/src/components/ui/menu.tsx +0 -251
- package/src/components/ui/poster.tsx +0 -101
- package/src/components/ui/radio-group.tsx +0 -88
- package/src/components/ui/sliders/audio-gain-slider.tsx +0 -55
- package/src/components/ui/sliders/quality-slider.tsx +0 -54
- package/src/components/ui/sliders/slider-callbacks.ts +0 -14
- package/src/components/ui/sliders/slider-value.tsx +0 -13
- package/src/components/ui/sliders/slider.tsx +0 -254
- package/src/components/ui/sliders/speed-slider.tsx +0 -54
- package/src/components/ui/sliders/time-slider.tsx +0 -379
- package/src/components/ui/sliders/volume-slider.tsx +0 -55
- package/src/components/ui/spinner.tsx +0 -105
- package/src/components/ui/thumbnail.tsx +0 -82
- package/src/components/ui/time.tsx +0 -77
- package/src/components/ui/title.tsx +0 -32
- package/src/components/ui/tooltip.tsx +0 -135
- package/src/globals.d.ts +0 -3
- package/src/hooks/create-text-track.ts +0 -22
- package/src/hooks/options/use-audio-gain-options.ts +0 -75
- package/src/hooks/options/use-audio-options.ts +0 -71
- package/src/hooks/options/use-caption-options.ts +0 -95
- package/src/hooks/options/use-chapter-options.ts +0 -97
- package/src/hooks/options/use-playback-rate-options.ts +0 -75
- package/src/hooks/options/use-video-quality-options.ts +0 -123
- package/src/hooks/use-active-text-cues.ts +0 -28
- package/src/hooks/use-active-text-track.ts +0 -19
- package/src/hooks/use-chapter-title.ts +0 -12
- package/src/hooks/use-dom.ts +0 -121
- package/src/hooks/use-media-context.ts +0 -6
- package/src/hooks/use-media-player.ts +0 -19
- package/src/hooks/use-media-provider.ts +0 -31
- package/src/hooks/use-media-remote.ts +0 -37
- package/src/hooks/use-media-state.ts +0 -58
- package/src/hooks/use-signals.ts +0 -24
- package/src/hooks/use-slider-preview.ts +0 -126
- package/src/hooks/use-slider-state.ts +0 -63
- package/src/hooks/use-state.ts +0 -47
- package/src/hooks/use-text-cues.ts +0 -33
- package/src/hooks/use-thumbnails.ts +0 -69
- package/src/icon.ts +0 -37
- package/src/icons.ts +0 -754
- package/src/index.ts +0 -181
- package/src/providers/remotion/index.ts +0 -10
- package/src/providers/remotion/layout-engine.ts +0 -123
- package/src/providers/remotion/loader.ts +0 -35
- package/src/providers/remotion/playback-engine.ts +0 -142
- package/src/providers/remotion/provider.tsx +0 -514
- package/src/providers/remotion/type-check.ts +0 -13
- package/src/providers/remotion/types.ts +0 -94
- package/src/providers/remotion/ui/context.tsx +0 -120
- package/src/providers/remotion/ui/error-boundary.tsx +0 -57
- package/src/providers/remotion/ui/poster.tsx +0 -33
- package/src/providers/remotion/ui/slider-thumbnail.tsx +0 -41
- package/src/providers/remotion/ui/thumbnail.tsx +0 -166
- package/src/providers/remotion/validate.ts +0 -220
- package/src/source.ts +0 -5
- package/src/utils.ts +0 -27
- package/tsconfig.build.json +0 -10
- package/tsconfig.json +0 -11
- package/types/react/src/components/announcer.d.ts +0 -16
- package/types/react/src/components/layouts/default/audio-layout.d.ts +0 -27
- package/types/react/src/components/layouts/default/context.d.ts +0 -14
- package/types/react/src/components/layouts/default/hooks.d.ts +0 -2
- package/types/react/src/components/layouts/default/icons.d.ts +0 -95
- package/types/react/src/components/layouts/default/index.d.ts +0 -5
- package/types/react/src/components/layouts/default/media-layout.d.ts +0 -133
- package/types/react/src/components/layouts/default/slots.d.ts +0 -22
- package/types/react/src/components/layouts/default/ui/announcer.d.ts +0 -6
- package/types/react/src/components/layouts/default/ui/buttons.d.ts +0 -54
- package/types/react/src/components/layouts/default/ui/captions.d.ts +0 -6
- package/types/react/src/components/layouts/default/ui/controls.d.ts +0 -6
- package/types/react/src/components/layouts/default/ui/keyboard-display.d.ts +0 -8
- package/types/react/src/components/layouts/default/ui/menus/accessibility-menu.d.ts +0 -10
- package/types/react/src/components/layouts/default/ui/menus/audio-menu.d.ts +0 -10
- package/types/react/src/components/layouts/default/ui/menus/captions-menu.d.ts +0 -10
- package/types/react/src/components/layouts/default/ui/menus/chapters-menu.d.ts +0 -7
- package/types/react/src/components/layouts/default/ui/menus/font-menu.d.ts +0 -6
- package/types/react/src/components/layouts/default/ui/menus/items/menu-checkbox.d.ts +0 -13
- package/types/react/src/components/layouts/default/ui/menus/items/menu-items.d.ts +0 -49
- package/types/react/src/components/layouts/default/ui/menus/items/menu-slider.d.ts +0 -26
- package/types/react/src/components/layouts/default/ui/menus/playback-menu.d.ts +0 -10
- package/types/react/src/components/layouts/default/ui/menus/settings-menu.d.ts +0 -15
- package/types/react/src/components/layouts/default/ui/menus/utils.d.ts +0 -1
- package/types/react/src/components/layouts/default/ui/sliders.d.ts +0 -24
- package/types/react/src/components/layouts/default/ui/time.d.ts +0 -30
- package/types/react/src/components/layouts/default/ui/title.d.ts +0 -6
- package/types/react/src/components/layouts/default/ui/tooltip.d.ts +0 -12
- package/types/react/src/components/layouts/default/ui.d.ts +0 -8
- package/types/react/src/components/layouts/default/video-layout.d.ts +0 -47
- package/types/react/src/components/layouts/plyr/context.d.ts +0 -12
- package/types/react/src/components/layouts/plyr/icons/plyr-airplay.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-captions-off.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-captions-on.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-download.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-enter-fullscreen.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-exit-fullscreen.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-fast-forward.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-muted.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-pause.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-pip.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-play.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-restart.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-rewind.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-settings.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons/plyr-volume.d.ts +0 -2
- package/types/react/src/components/layouts/plyr/icons.d.ts +0 -25
- package/types/react/src/components/layouts/plyr/index.d.ts +0 -6
- package/types/react/src/components/layouts/plyr/layout.d.ts +0 -17
- package/types/react/src/components/layouts/plyr/props.d.ts +0 -71
- package/types/react/src/components/layouts/plyr/slots.d.ts +0 -9
- package/types/react/src/components/layouts/remotion-ui.d.ts +0 -3
- package/types/react/src/components/layouts/utils.d.ts +0 -1
- package/types/react/src/components/player-callbacks.d.ts +0 -6
- package/types/react/src/components/player.d.ts +0 -32
- package/types/react/src/components/primitives/instances.d.ts +0 -83
- package/types/react/src/components/primitives/nodes.d.ts +0 -15
- package/types/react/src/components/primitives/slot.d.ts +0 -11
- package/types/react/src/components/provider.d.ts +0 -26
- package/types/react/src/components/text-track.d.ts +0 -100
- package/types/react/src/components/ui/buttons/airplay-button.d.ts +0 -22
- package/types/react/src/components/ui/buttons/caption-button.d.ts +0 -24
- package/types/react/src/components/ui/buttons/fullscreen-button.d.ts +0 -24
- package/types/react/src/components/ui/buttons/google-cast-button.d.ts +0 -22
- package/types/react/src/components/ui/buttons/live-button.d.ts +0 -26
- package/types/react/src/components/ui/buttons/mute-button.d.ts +0 -30
- package/types/react/src/components/ui/buttons/pip-button.d.ts +0 -24
- package/types/react/src/components/ui/buttons/play-button.d.ts +0 -23
- package/types/react/src/components/ui/buttons/seek-button.d.ts +0 -25
- package/types/react/src/components/ui/buttons/toggle-button.d.ts +0 -22
- package/types/react/src/components/ui/caption.d.ts +0 -11
- package/types/react/src/components/ui/captions.d.ts +0 -20
- package/types/react/src/components/ui/chapter-title.d.ts +0 -20
- package/types/react/src/components/ui/controls.d.ts +0 -40
- package/types/react/src/components/ui/gesture.d.ts +0 -20
- package/types/react/src/components/ui/menu.d.ts +0 -102
- package/types/react/src/components/ui/poster.d.ts +0 -25
- package/types/react/src/components/ui/radio-group.d.ts +0 -39
- package/types/react/src/components/ui/sliders/audio-gain-slider.d.ts +0 -29
- package/types/react/src/components/ui/sliders/quality-slider.d.ts +0 -28
- package/types/react/src/components/ui/sliders/slider-callbacks.d.ts +0 -6
- package/types/react/src/components/ui/sliders/slider-value.d.ts +0 -9
- package/types/react/src/components/ui/sliders/slider.d.ts +0 -134
- package/types/react/src/components/ui/sliders/speed-slider.d.ts +0 -28
- package/types/react/src/components/ui/sliders/time-slider.d.ts +0 -124
- package/types/react/src/components/ui/sliders/volume-slider.d.ts +0 -29
- package/types/react/src/components/ui/spinner.d.ts +0 -31
- package/types/react/src/components/ui/thumbnail.d.ts +0 -26
- package/types/react/src/components/ui/time.d.ts +0 -20
- package/types/react/src/components/ui/title.d.ts +0 -15
- package/types/react/src/components/ui/tooltip.d.ts +0 -63
- package/types/react/src/hooks/create-text-track.d.ts +0 -7
- package/types/react/src/hooks/options/use-audio-gain-options.d.ts +0 -22
- package/types/react/src/hooks/options/use-audio-options.d.ts +0 -17
- package/types/react/src/hooks/options/use-caption-options.d.ts +0 -24
- package/types/react/src/hooks/options/use-chapter-options.d.ts +0 -18
- package/types/react/src/hooks/options/use-playback-rate-options.d.ts +0 -22
- package/types/react/src/hooks/options/use-video-quality-options.d.ts +0 -35
- package/types/react/src/hooks/use-active-text-cues.d.ts +0 -6
- package/types/react/src/hooks/use-active-text-track.d.ts +0 -5
- package/types/react/src/hooks/use-chapter-title.d.ts +0 -4
- package/types/react/src/hooks/use-dom.d.ts +0 -9
- package/types/react/src/hooks/use-media-context.d.ts +0 -1
- package/types/react/src/hooks/use-media-player.d.ts +0 -7
- package/types/react/src/hooks/use-media-provider.d.ts +0 -7
- package/types/react/src/hooks/use-media-remote.d.ts +0 -12
- package/types/react/src/hooks/use-media-state.d.ts +0 -15
- package/types/react/src/hooks/use-signals.d.ts +0 -5
- package/types/react/src/hooks/use-slider-preview.d.ts +0 -27
- package/types/react/src/hooks/use-slider-state.d.ts +0 -16
- package/types/react/src/hooks/use-state.d.ts +0 -18
- package/types/react/src/hooks/use-text-cues.d.ts +0 -6
- package/types/react/src/hooks/use-thumbnails.d.ts +0 -16
- package/types/react/src/icon.d.ts +0 -17
- package/types/react/src/icons.d.ts +0 -215
- package/types/react/src/index.d.ts +0 -78
- package/types/react/src/providers/remotion/index.d.ts +0 -7
- package/types/react/src/providers/remotion/layout-engine.d.ts +0 -8
- package/types/react/src/providers/remotion/loader.d.ts +0 -9
- package/types/react/src/providers/remotion/playback-engine.d.ts +0 -11
- package/types/react/src/providers/remotion/provider.d.ts +0 -26
- package/types/react/src/providers/remotion/type-check.d.ts +0 -6
- package/types/react/src/providers/remotion/types.d.ts +0 -91
- package/types/react/src/providers/remotion/ui/context.d.ts +0 -17
- package/types/react/src/providers/remotion/ui/error-boundary.d.ts +0 -21
- package/types/react/src/providers/remotion/ui/poster.d.ts +0 -18
- package/types/react/src/providers/remotion/ui/slider-thumbnail.d.ts +0 -17
- package/types/react/src/providers/remotion/ui/thumbnail.d.ts +0 -32
- package/types/react/src/providers/remotion/validate.d.ts +0 -12
- package/types/react/src/source.d.ts +0 -3
- package/types/react/src/utils.d.ts +0 -3
- package/types/vidstack/src/core/api/src-types.d.ts +0 -50
- package/types/vidstack/src/utils/mime.d.ts +0 -15
- package/types/vidstack/src/utils/network.d.ts +0 -17
- package/types/vidstack/src/utils/support.d.ts +0 -72
- package/vite.config.ts +0 -23
- /package/{npm/analyze.json.d.ts → analyze.json.d.ts} +0 -0
|
@@ -0,0 +1,959 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
3
|
+
* Theme
|
|
4
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:where(.vds-menu-items) {
|
|
8
|
+
--color-inverse: var(--media-menu-color-inverse, var(--default-inverse));
|
|
9
|
+
--color-gray-50: var(--media-menu-color-gray-50, var(--default-gray-50));
|
|
10
|
+
--color-gray-100: var(--media-menu-color-gray-100, var(--default-gray-100));
|
|
11
|
+
--color-gray-200: var(--media-menu-color-gray-200, var(--default-gray-200));
|
|
12
|
+
--color-gray-300: var(--media-menu-color-gray-300, var(--default-gray-300));
|
|
13
|
+
--color-gray-400: var(--media-menu-color-gray-400, var(--default-gray-400));
|
|
14
|
+
|
|
15
|
+
--text-color: var(--media-menu-text-color, var(--default-text));
|
|
16
|
+
--text-secondary-color: var(--media-menu-text-secondary-color, var(--default-text-secondary));
|
|
17
|
+
|
|
18
|
+
--root-border: var(--media-menu-border, var(--default-root-border));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.light .vds-menu-items {
|
|
22
|
+
--default-inverse: black;
|
|
23
|
+
--default-gray-50: rgb(80 80 80 / 0.15);
|
|
24
|
+
--default-gray-100: rgb(80 80 80 / 0.45);
|
|
25
|
+
--default-gray-200: rgb(235 235 235 / 0.6);
|
|
26
|
+
--default-gray-300: rgb(238 238 238);
|
|
27
|
+
--default-gray-400: rgb(250 250 250);
|
|
28
|
+
|
|
29
|
+
--default-text: #1a1a1a;
|
|
30
|
+
--default-text-secondary: #6b6b6b;
|
|
31
|
+
|
|
32
|
+
--default-root-border: 1px solid rgb(10 10 10 / 0.1);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.dark .vds-menu-items {
|
|
36
|
+
--default-inverse: white;
|
|
37
|
+
--default-gray-50: rgb(245 245 245 / 0.1);
|
|
38
|
+
--default-gray-100: rgb(245 245 245 / 0.45);
|
|
39
|
+
--default-gray-200: rgb(10 10 10 / 0.6);
|
|
40
|
+
--default-gray-300: rgb(27 27 27);
|
|
41
|
+
--default-gray-400: rgb(10 10 10);
|
|
42
|
+
|
|
43
|
+
--default-text: #f5f5f5;
|
|
44
|
+
--default-text-secondary: #8a8a8a;
|
|
45
|
+
|
|
46
|
+
--default-root-border: 1px solid rgb(255 255 255 / 0.1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where(.vds-menu-items) {
|
|
50
|
+
--font-family: var(--media-font-family, sans-serif);
|
|
51
|
+
--font-size: var(--media-menu-font-size, 14px);
|
|
52
|
+
--font-weight: var(--media-menu-font-weight, 500);
|
|
53
|
+
|
|
54
|
+
--root-bg: var(--media-menu-bg, var(--color-gray-400));
|
|
55
|
+
--root-padding: var(--media-menu-padding, 12px);
|
|
56
|
+
--root-border-radius: var(--media-menu-border-radius, 4px);
|
|
57
|
+
|
|
58
|
+
--divider: var(--media-menu-divider, 1px solid var(--color-gray-50));
|
|
59
|
+
|
|
60
|
+
--section-bg: var(--media-menu-section-bg, var(--color-gray-300));
|
|
61
|
+
--section-border: var(--media-menu-section-border);
|
|
62
|
+
--section-divider: var(--media-menu-section-divider, var(--divider));
|
|
63
|
+
|
|
64
|
+
--top-bar-bg: var(--media-menu-top-bar-bg, var(--color-gray-200));
|
|
65
|
+
--top-bar-divider: var(--media-menu-divider, transparent);
|
|
66
|
+
|
|
67
|
+
--text-hint-color: var(--media-menu-hint-color, var(--text-secondary-color));
|
|
68
|
+
|
|
69
|
+
--chapter-divider: var(--media-chapters-divider, var(--divider));
|
|
70
|
+
--chapter-active-bg: var(--media-chapters-item-active-bg, var(--color-gray-50));
|
|
71
|
+
--chapter-active-border-left: var(--media-chapters-item-active-border-left);
|
|
72
|
+
|
|
73
|
+
--chapter-progress-bg: var(--media-chapters-progress-bg, var(--color-inverse));
|
|
74
|
+
|
|
75
|
+
--chapter-time-font-size: var(--media-chapters-time-font-size, 12px);
|
|
76
|
+
--chapter-time-font-weight: var(--media-chapters-time-font-weight, 500);
|
|
77
|
+
--chapter-time-gap: var(--media-chapters-time-gap, 6px);
|
|
78
|
+
|
|
79
|
+
--chapter-duration-bg: var(--media-chapters-duration-bg);
|
|
80
|
+
|
|
81
|
+
--item-border: var(--media-menu-item-border, 0);
|
|
82
|
+
--item-bg: var(--media-menu-item-bg, transparent);
|
|
83
|
+
--item-hover-bg: var(--media-menu-item-hover-bg, var(--color-gray-50));
|
|
84
|
+
--item-icon-size: var(--media-menu-item-icon-size, 18px);
|
|
85
|
+
--item-padding: var(--media-menu-item-padding, 10px);
|
|
86
|
+
--item-min-height: var(--media-menu-item-height, 40px);
|
|
87
|
+
--item-border-radius: var(--media-menu-item-border-radius, 2px);
|
|
88
|
+
|
|
89
|
+
--scrollbar-track-bg: var(--media-menu-scrollbar-track-bg, transparent);
|
|
90
|
+
--scrollbar-thumb-bg: var(--media-menu-scrollbar-thumb-bg, var(--color-gray-50));
|
|
91
|
+
--webkit-scrollbar-bg: var(--color-gray-400);
|
|
92
|
+
--webkit-scrollbar-track-bg: var(--media-menu-scrollbar-track-bg, var(--color-gray-50));
|
|
93
|
+
|
|
94
|
+
--checkbox-bg: var(--media-menu-checkbox-bg, var(--color-gray-100));
|
|
95
|
+
--checkbox-active-bg: var(--media-menu-checkbox-bg-active, #1ba13f);
|
|
96
|
+
--checkbox-handle-bg: var(--media-menu-checkbox-handle-bg, #f5f5f5);
|
|
97
|
+
--checkbox-handle-border: var(--media-menu-checkbox-handle-border);
|
|
98
|
+
|
|
99
|
+
--radio-icon-color: var(--media-menu-radio-icon-color, var(--text-color));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/*
|
|
103
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
104
|
+
* Menu
|
|
105
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
:where(.vds-menu[data-root] media-menu[data-root]) {
|
|
109
|
+
display: contents;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:where(.vds-menu) {
|
|
113
|
+
font-family: var(--font-family);
|
|
114
|
+
font-size: var(--font-size);
|
|
115
|
+
font-weight: var(--font-weight);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:where(.vds-menu[data-disabled][data-root]) {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:where(.vds-menu[data-submenu]) {
|
|
123
|
+
display: inline-block;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:where(.vds-menu-items:focus) {
|
|
127
|
+
outline: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:where(.vds-menu-item:focus, .vds-radio:focus) {
|
|
131
|
+
outline: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:where(
|
|
135
|
+
.vds-menu-item:focus-visible,
|
|
136
|
+
.vds-menu-item[data-focus],
|
|
137
|
+
.vds-radio:focus-visible,
|
|
138
|
+
.vds-radio[data-focus]
|
|
139
|
+
) {
|
|
140
|
+
outline: none;
|
|
141
|
+
box-shadow: var(--media-focus-ring);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:where(.vds-menu[data-open] .vds-tooltip-content) {
|
|
145
|
+
display: none !important;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.vds-menu-items [data-hidden] {
|
|
149
|
+
display: none !important;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/*
|
|
153
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
154
|
+
* Scroll
|
|
155
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
159
|
+
:where(.vds-menu-items) {
|
|
160
|
+
scroll-behavior: smooth;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:where(.vds-menu-items) {
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
min-width: var(--media-menu-min-width, 280px);
|
|
167
|
+
scrollbar-width: thin;
|
|
168
|
+
scrollbar-color: var(--scrollbar-thumb-bg) var(--scrollbar-track-bg);
|
|
169
|
+
transform: translate3d(0, 0, 0);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:where(.vds-menu-items)::-webkit-scrollbar {
|
|
173
|
+
background-color: var(--webkit-scrollbar-bg);
|
|
174
|
+
border-radius: var(--root-border-radius);
|
|
175
|
+
height: 6px;
|
|
176
|
+
width: 5px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:where(.vds-menu-items)::-webkit-scrollbar-track {
|
|
180
|
+
background-color: var(--webkit-scrollbar-track-bg);
|
|
181
|
+
border-radius: 4px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:where(.vds-menu-items)::-webkit-scrollbar-thumb {
|
|
185
|
+
background-color: var(--scrollbar-thumb-bg);
|
|
186
|
+
border-radius: 4px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:where(.vds-menu-items)::-webkit-scrollbar-corner {
|
|
190
|
+
background-color: var(--scrollbar-thumb-bg);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/*
|
|
194
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
195
|
+
* Menu Button
|
|
196
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
:where(.vds-menu-button) {
|
|
200
|
+
outline: none;
|
|
201
|
+
box-sizing: border-box;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:where(.vds-menu-button .vds-rotate-icon) {
|
|
205
|
+
transition: transform 0.2s ease-out;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:where(.vds-menu-button[aria-expanded='true'] .vds-rotate-icon) {
|
|
209
|
+
transform: rotate(var(--media-menu-icon-rotate-deg, 90deg));
|
|
210
|
+
transition: transform 0.2s ease-in;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:where(.vds-menu-button) {
|
|
214
|
+
display: inline-flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@media (prefers-reduced-motion) {
|
|
220
|
+
:where(.vds-menu-button .vds-rotate-icon) {
|
|
221
|
+
transition: unset;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/*
|
|
226
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
227
|
+
* Menu Items
|
|
228
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
:where(.vds-menu-items) {
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
flex-direction: column;
|
|
235
|
+
font-family: var(--font-family);
|
|
236
|
+
font-size: var(--font-size);
|
|
237
|
+
font-weight: var(--font-weight);
|
|
238
|
+
transition: height 0.35s ease;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@media (prefers-reduced-motion) {
|
|
242
|
+
:where(.vds-menu-items) {
|
|
243
|
+
transition: unset;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:where(.vds-menu-items[data-root]) {
|
|
248
|
+
background-color: var(--root-bg);
|
|
249
|
+
border-radius: var(--root-border-radius);
|
|
250
|
+
box-shadow: var(--media-menu-box-shadow);
|
|
251
|
+
backdrop-filter: blur(4px);
|
|
252
|
+
height: var(--menu-height, auto);
|
|
253
|
+
will-change: width, height;
|
|
254
|
+
overflow-y: auto;
|
|
255
|
+
overscroll-behavior: contain;
|
|
256
|
+
opacity: 0;
|
|
257
|
+
z-index: 9999999;
|
|
258
|
+
box-sizing: border-box;
|
|
259
|
+
max-height: var(--media-menu-max-height, 250px);
|
|
260
|
+
filter: var(
|
|
261
|
+
--media-menu-filter,
|
|
262
|
+
drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@-moz-document url-prefix() {
|
|
267
|
+
:where(.vds-menu-items[data-root]) {
|
|
268
|
+
backdrop-filter: none;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.vds-menu-items[data-root] {
|
|
273
|
+
border: var(--root-border);
|
|
274
|
+
padding: var(--root-padding);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
:where([data-view-type='video']) :where(.vds-menu-items[data-root]) {
|
|
278
|
+
max-height: var(--media-menu-video-max-height, calc(var(--player-height) * 0.7));
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
:where(.vds-menu-items[data-transition='height']) {
|
|
282
|
+
--scrollbar-thumb-bg: rgba(0, 0, 0, 0);
|
|
283
|
+
pointer-events: none;
|
|
284
|
+
overflow: hidden;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.vds-menu-button[aria-disabled='true'],
|
|
288
|
+
.vds-menu-item[aria-disabled='true'],
|
|
289
|
+
.vds-menu-item[data-disabled] {
|
|
290
|
+
display: none;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/*
|
|
294
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
295
|
+
* Menu Items Animation
|
|
296
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
297
|
+
*/
|
|
298
|
+
|
|
299
|
+
:where(.vds-menu-items[data-root]) {
|
|
300
|
+
--enter-transform: translateY(0px);
|
|
301
|
+
--exit-transform: translateY(12px);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/* Mobile Popup */
|
|
305
|
+
:where(.vds-menu-items[data-root]:not([data-placement])) {
|
|
306
|
+
--enter-transform: translateY(-24px);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
:where(.vds-menu-items[data-root][aria-hidden='true']) {
|
|
310
|
+
animation: var(--media-menu-exit-animation, vds-menu-exit 0.2s ease-out);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
:where(.vds-menu-items[data-root][aria-hidden='false']) {
|
|
314
|
+
animation: var(--media-menu-enter-animation, vds-menu-enter 0.3s ease-out);
|
|
315
|
+
animation-fill-mode: forwards;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* Bottom */
|
|
319
|
+
:where(.vds-menu-items[data-placement~='bottom']) {
|
|
320
|
+
--enter-transform: translateY(0);
|
|
321
|
+
--exit-transform: translateY(-12px);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@keyframes vds-menu-enter {
|
|
325
|
+
from {
|
|
326
|
+
opacity: 0;
|
|
327
|
+
transform: var(--exit-transform);
|
|
328
|
+
}
|
|
329
|
+
to {
|
|
330
|
+
opacity: 1;
|
|
331
|
+
transform: var(--enter-transform);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
@keyframes vds-menu-exit {
|
|
336
|
+
from {
|
|
337
|
+
opacity: 1;
|
|
338
|
+
transform: var(--enter-transform);
|
|
339
|
+
}
|
|
340
|
+
to {
|
|
341
|
+
opacity: 0;
|
|
342
|
+
transform: var(--exit-transform);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@media (prefers-reduced-motion) {
|
|
347
|
+
:where(.vds-menu-items) {
|
|
348
|
+
animation: none;
|
|
349
|
+
opacity: 1;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/*
|
|
354
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
355
|
+
* Menu Portal
|
|
356
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
:where(media-menu-portal) {
|
|
360
|
+
display: contents;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
:where(.vds-menu-items[data-root]:not([data-placement])) {
|
|
364
|
+
position: fixed;
|
|
365
|
+
left: 16px;
|
|
366
|
+
right: 16px;
|
|
367
|
+
top: unset;
|
|
368
|
+
bottom: 0;
|
|
369
|
+
max-height: var(--media-sm-menu-portrait-max-height, 40vh);
|
|
370
|
+
max-height: var(--media-sm-menu-portrait-max-height, 40dvh);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
:where(.vds-menu-items[data-root]:not([data-placement])) {
|
|
374
|
+
max-width: 480px;
|
|
375
|
+
margin: 0 auto;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@media (orientation: landscape) and (pointer: coarse) {
|
|
379
|
+
:where(.vds-menu-items[data-root]:not([data-placement])) {
|
|
380
|
+
max-height: var(--media-sm-menu-landscape-max-height, min(70vh, 400px));
|
|
381
|
+
max-height: var(--media-sm-menu-landscape-max-height, min(70dvh, 400px));
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/*
|
|
386
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
387
|
+
* Submenu
|
|
388
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
389
|
+
*/
|
|
390
|
+
|
|
391
|
+
:where(.vds-menu[data-submenu] .vds-menu-button) {
|
|
392
|
+
display: flex;
|
|
393
|
+
align-items: center;
|
|
394
|
+
justify-content: flex-start;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
:where(.vds-menu-items[data-submenu]) {
|
|
398
|
+
width: 100%;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
:where(.vds-menu[aria-hidden='true']),
|
|
402
|
+
:where(.vds-menu-items[data-submenu][aria-hidden='true']) {
|
|
403
|
+
display: none;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/*
|
|
407
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
408
|
+
* Menu Item
|
|
409
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
410
|
+
*/
|
|
411
|
+
|
|
412
|
+
:where(.vds-menu-item, .vds-radio) {
|
|
413
|
+
position: relative;
|
|
414
|
+
-webkit-tap-highlight-color: transparent;
|
|
415
|
+
user-select: none;
|
|
416
|
+
display: flex;
|
|
417
|
+
align-items: center;
|
|
418
|
+
justify-content: left;
|
|
419
|
+
width: 100%;
|
|
420
|
+
appearance: none;
|
|
421
|
+
border: 0;
|
|
422
|
+
border-radius: var(--item-border-radius);
|
|
423
|
+
box-sizing: border-box;
|
|
424
|
+
min-height: var(--item-min-height);
|
|
425
|
+
font-size: var(--font-size);
|
|
426
|
+
outline: none;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.vds-menu-item,
|
|
430
|
+
.vds-radio {
|
|
431
|
+
color: var(--text-color);
|
|
432
|
+
background-color: var(--item-bg);
|
|
433
|
+
padding: var(--item-padding);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.vds-menu-item:focus-visible,
|
|
437
|
+
.vds-menu-item[data-focus],
|
|
438
|
+
.vds-radio:focus-visible,
|
|
439
|
+
.vds-radio[data-focus] {
|
|
440
|
+
cursor: pointer;
|
|
441
|
+
background-color: var(--item-hover-bg);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
@media (hover: hover) and (pointer: fine) {
|
|
445
|
+
.vds-menu-item[role]:hover,
|
|
446
|
+
.vds-radio:hover {
|
|
447
|
+
cursor: pointer;
|
|
448
|
+
background-color: var(--item-hover-bg);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
:where(.vds-menu-items[data-submenu]) {
|
|
453
|
+
align-items: flex-start;
|
|
454
|
+
justify-content: center;
|
|
455
|
+
flex-direction: column;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
:where(.vds-menu-item[aria-expanded='true']) {
|
|
459
|
+
font-weight: bold;
|
|
460
|
+
border-radius: 0;
|
|
461
|
+
border-top-left-radius: var(--item-border-radius);
|
|
462
|
+
border-top-right-radius: var(--item-border-radius);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.vds-menu-item[aria-expanded='true'] {
|
|
466
|
+
border-bottom: var(--top-bar-divider);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
:where(.vds-menu-item[aria-expanded='true']) {
|
|
470
|
+
position: sticky;
|
|
471
|
+
top: calc(-1 * var(--root-padding));
|
|
472
|
+
left: 0;
|
|
473
|
+
width: 100%;
|
|
474
|
+
z-index: 10;
|
|
475
|
+
backdrop-filter: blur(4px);
|
|
476
|
+
margin-bottom: 4px;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.vds-menu-item[aria-expanded='true'] {
|
|
480
|
+
background-color: var(--top-bar-bg);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/*
|
|
484
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
485
|
+
* Menu Item Parts
|
|
486
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
487
|
+
*/
|
|
488
|
+
|
|
489
|
+
:where(.vds-menu-item-label) {
|
|
490
|
+
flex: 1 0 0%;
|
|
491
|
+
text-align: start;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
:where(.vds-menu-item .vds-icon, .vds-radio .vds-icon) {
|
|
495
|
+
--size: var(--item-icon-size);
|
|
496
|
+
width: var(--size);
|
|
497
|
+
height: var(--size);
|
|
498
|
+
margin-right: var(--media-menu-item-icon-spacing, 6px);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
:where(.vds-menu-open-icon, .vds-menu-close-icon) {
|
|
502
|
+
--size: var(--media-menu-arrow-icon-size, 18px);
|
|
503
|
+
width: var(--size);
|
|
504
|
+
height: var(--size);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
:where(.vds-menu-item-hint, .vds-menu-open-icon, .vds-radio-hint) {
|
|
508
|
+
color: var(--text-hint-color);
|
|
509
|
+
font-size: var(--media-menu-hint-font-size, 13px);
|
|
510
|
+
font-weight: var(--media-menu-hint-font-weight, 400);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
:where(.vds-menu-items .vds-menu-open-icon) {
|
|
514
|
+
margin-right: 0;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
:where(.vds-menu-items) :where(.vds-menu-item-hint, .vds-menu-open-icon) {
|
|
518
|
+
margin-left: auto;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
:where(.vds-menu-items) :where(.vds-menu-item-hint + .vds-menu-open-icon),
|
|
522
|
+
:where(.vds-menu-item-hint + media-icon .vds-menu-open-icon),
|
|
523
|
+
:where(.vds-menu-item-hint + slot > .vds-menu-open-icon) {
|
|
524
|
+
margin-left: 2px;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
:where(.vds-menu-item[aria-hidden='true']),
|
|
528
|
+
:where(.vds-menu-item[aria-expanded='true'] .vds-menu-open-icon) {
|
|
529
|
+
display: none !important;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
:where(.vds-menu-items)
|
|
533
|
+
:where(.vds-menu-item[aria-disabled='true'], .vds-menu-item[data-disabled])
|
|
534
|
+
:where(.vds-menu-open-icon) {
|
|
535
|
+
opacity: 0;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
:where(.vds-menu-close-icon),
|
|
539
|
+
:where(.vds-menu-item[aria-expanded='true'] > .vds-icon) {
|
|
540
|
+
display: none !important;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
:where(.vds-menu-item[aria-expanded='true'] .vds-menu-close-icon) {
|
|
544
|
+
display: inline !important;
|
|
545
|
+
margin-left: calc(-1 * var(--item-padding) / 2);
|
|
546
|
+
}
|
|
547
|
+
/*
|
|
548
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
549
|
+
* Checkbox
|
|
550
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
551
|
+
*/
|
|
552
|
+
|
|
553
|
+
:where(.vds-menu-checkbox) {
|
|
554
|
+
--checkbox-width: var(--media-menu-checkbox-width, 40px);
|
|
555
|
+
--checkbox-height: var(--media-menu-checkbox-height, 18px);
|
|
556
|
+
--checkbox-top: calc((var(--checkbox-height) - var(--checkbox-diameter)) / 2);
|
|
557
|
+
--checkbox-diameter: var(
|
|
558
|
+
--media-menu-checkbox-handle-diameter,
|
|
559
|
+
calc(var(--checkbox-height) - 2px)
|
|
560
|
+
);
|
|
561
|
+
--checkbox-gap: var(--media-menu-checkbox-gap, 2.5px);
|
|
562
|
+
position: relative;
|
|
563
|
+
display: inline-block;
|
|
564
|
+
width: var(--checkbox-width);
|
|
565
|
+
height: var(--checkbox-height);
|
|
566
|
+
border-radius: calc(var(--checkbox-height) / 2);
|
|
567
|
+
transition: 0.3s all ease-in-out;
|
|
568
|
+
box-sizing: border-box;
|
|
569
|
+
cursor: pointer;
|
|
570
|
+
pointer-events: auto;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.vds-menu-checkbox {
|
|
574
|
+
background-color: var(--checkbox-bg);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
:where(.vds-menu-checkbox:focus-visible) {
|
|
578
|
+
outline: none;
|
|
579
|
+
box-shadow: var(--media-focus-ring);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.vds-menu-checkbox[aria-checked='true'] {
|
|
583
|
+
background-color: var(--checkbox-active-bg);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
:where(.vds-menu-checkbox)::after {
|
|
587
|
+
content: '';
|
|
588
|
+
display: inline-block;
|
|
589
|
+
width: var(--checkbox-diameter);
|
|
590
|
+
height: var(--checkbox-diameter);
|
|
591
|
+
border-radius: calc(var(--checkbox-diameter) / 2);
|
|
592
|
+
position: absolute;
|
|
593
|
+
top: var(--checkbox-top);
|
|
594
|
+
transform: translateX(var(--checkbox-gap));
|
|
595
|
+
transition: 0.3s all ease-in-out;
|
|
596
|
+
border: var(--checkbox-handle-border);
|
|
597
|
+
box-sizing: border-box;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.vds-menu-checkbox::after {
|
|
601
|
+
background-color: var(--checkbox-handle-bg);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
:where(.vds-menu-checkbox[aria-checked='true'])::after {
|
|
605
|
+
transform: translateX(
|
|
606
|
+
calc(var(--checkbox-width) - var(--checkbox-diameter) - var(--checkbox-gap))
|
|
607
|
+
);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
611
|
+
:where(.vds-menu-checkbox[data-active])::after {
|
|
612
|
+
width: calc(var(--checkbox-width) - calc(var(--checkbox-gap) * 2));
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
:where(.vds-menu-checkbox[aria-checked='true'][data-active])::after {
|
|
617
|
+
transform: translateX(var(--checkbox-gap));
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/*
|
|
621
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
622
|
+
* Slider
|
|
623
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
624
|
+
*/
|
|
625
|
+
|
|
626
|
+
:where(.vds-menu-items .vds-slider) {
|
|
627
|
+
--media-slider-track-bg: var(--media-menu-slider-track-bg, var(--color-gray-50));
|
|
628
|
+
--media-slider-track-fill-bg: var(--media-menu-slider-track-fill-bg, var(--color-inverse));
|
|
629
|
+
--media-slider-height: var(--media-menu-slider-height, 32px);
|
|
630
|
+
--track-focus-height: var(--track-height) !important;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
:where(.vds-menu-items .vds-slider-thumb) {
|
|
634
|
+
opacity: 1 !important;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
:where(.vds-menu-slider-item.group) {
|
|
638
|
+
flex-direction: column;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
:where(.vds-menu-slider-title) {
|
|
642
|
+
margin-top: 4px;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
:where(.vds-menu-slider-body) {
|
|
646
|
+
width: 100%;
|
|
647
|
+
display: flex;
|
|
648
|
+
align-items: center;
|
|
649
|
+
margin-top: 6px;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
:where(.vds-menu-slider-item .vds-icon) {
|
|
653
|
+
margin: 0;
|
|
654
|
+
color: var(--text-hint-color);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
:where(
|
|
658
|
+
.vds-menu-slider-item[data-min] .vds-icon.down,
|
|
659
|
+
.vds-menu-slider-item[data-max] .vds-icon.up
|
|
660
|
+
) {
|
|
661
|
+
color: var(--text-color);
|
|
662
|
+
animation: 0.6s ease-in-out vds-slider-icon;
|
|
663
|
+
transition: all 1.2s ease;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
@keyframes vds-slider-icon {
|
|
667
|
+
0% {
|
|
668
|
+
transform: scale(1);
|
|
669
|
+
}
|
|
670
|
+
50% {
|
|
671
|
+
transform: scale(1.25);
|
|
672
|
+
}
|
|
673
|
+
100% {
|
|
674
|
+
transform: scale(1);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
:where(.vds-menu-items .vds-slider-track-fill) {
|
|
679
|
+
transition: opacity 0.3s ease;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
:where(.vds-menu-items .vds-slider[data-active] .vds-slider-track-fill) {
|
|
683
|
+
opacity: 0;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/*
|
|
687
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
688
|
+
* Radio
|
|
689
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
690
|
+
*/
|
|
691
|
+
|
|
692
|
+
:where(.vds-radio-group) {
|
|
693
|
+
box-sizing: border-box;
|
|
694
|
+
width: 100%;
|
|
695
|
+
display: flex;
|
|
696
|
+
flex-direction: column;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.vds-radio {
|
|
700
|
+
cursor: pointer;
|
|
701
|
+
contain: content;
|
|
702
|
+
padding-left: calc(var(--item-icon-size) + var(--item-padding));
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.vds-radio[aria-checked='true'] {
|
|
706
|
+
padding-left: 0;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.vds-radio .vds-icon {
|
|
710
|
+
display: none;
|
|
711
|
+
color: var(--radio-icon-color);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.vds-radio[aria-checked='true'] .vds-icon {
|
|
715
|
+
display: inline-block;
|
|
716
|
+
margin-left: 6px;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
:where(.vds-radio-hint) {
|
|
720
|
+
margin-left: auto;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/*
|
|
724
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
725
|
+
* Color Picker
|
|
726
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
727
|
+
*/
|
|
728
|
+
|
|
729
|
+
.vds-color-picker {
|
|
730
|
+
width: 32px;
|
|
731
|
+
height: 32px;
|
|
732
|
+
border: 0;
|
|
733
|
+
background-color: transparent;
|
|
734
|
+
outline: none;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.vds-color-picker::-webkit-color-swatch {
|
|
738
|
+
border-radius: 2px;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.vds-color-picker::-moz-color-swatch {
|
|
742
|
+
border-radius: 2px;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.vds-color-picker:focus-visible::-webkit-color-swatch {
|
|
746
|
+
box-shadow: var(--media-focus-ring);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.vds-color-picker:focus-visible::-moz-color-swatch {
|
|
750
|
+
box-shadow: var(--media-focus-ring);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/*
|
|
754
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
755
|
+
* Menu Section
|
|
756
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
757
|
+
*/
|
|
758
|
+
|
|
759
|
+
:where(.vds-menu-section) {
|
|
760
|
+
width: 100%;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
:where(.vds-menu-item + .vds-menu-section) {
|
|
764
|
+
margin-top: 8px;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
:where(.vds-menu-section + .vds-menu-section) {
|
|
768
|
+
margin-top: 24px;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
:where(.vds-menu-section:first-child) {
|
|
772
|
+
margin-top: 8px;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
:where(.vds-menu-section:last-child) {
|
|
776
|
+
margin-bottom: 8px;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
:where(.vds-menu-section-title),
|
|
780
|
+
:where(.vds-menu-slider-title) {
|
|
781
|
+
width: 100%;
|
|
782
|
+
display: flex;
|
|
783
|
+
align-items: center;
|
|
784
|
+
justify-content: space-between;
|
|
785
|
+
color: var(--text-secondary-color);
|
|
786
|
+
font-size: var(--media-menu-section-header-font-size, 12px);
|
|
787
|
+
font-weight: var(--media-menu-section-header-font-weight, 500);
|
|
788
|
+
padding-inline: 2px;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
:where(.vds-menu-section-body) {
|
|
792
|
+
width: 100%;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
:where(.vds-menu-section-title + .vds-menu-section-body) {
|
|
796
|
+
margin-top: var(--media-menu-section-gap, 8px);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.vds-menu-section-body {
|
|
800
|
+
background-color: var(--section-bg);
|
|
801
|
+
border: var(--section-border);
|
|
802
|
+
border-radius: var(--media-menu-section-border-radius, 2px);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
:where(.vds-menu-section:not([data-open]) .vds-menu-item:not(:last-child)) {
|
|
806
|
+
border-bottom: var(--section-divider);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
:where(.vds-menu-section-body .vds-menu:last-child > .vds-menu-item) {
|
|
810
|
+
border-bottom: unset;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.vds-menu-section[data-open],
|
|
814
|
+
.vds-menu-section[data-open] > .vds-menu-section-body {
|
|
815
|
+
display: contents !important;
|
|
816
|
+
background-color: transparent !important;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.vds-menu-section[data-open] > .vds-menu-section-title,
|
|
820
|
+
.vds-menu-section[data-open] > .vds-menu-section-body > :not([data-open]) {
|
|
821
|
+
display: none;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/*
|
|
825
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
826
|
+
* Chapters Menu
|
|
827
|
+
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
828
|
+
*/
|
|
829
|
+
|
|
830
|
+
:where(.vds-chapters-menu-items) {
|
|
831
|
+
min-width: var(--media-chapters-min-width, var(--media-menu-min-width, 220px));
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.vds-chapters-menu-items {
|
|
835
|
+
padding: var(--media-chapters-padding, 0);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
:where(.vds-menu-items:has(.vds-chapters-radio-group[data-thumbnails])) {
|
|
839
|
+
min-width: var(--media-chapters-with-thumbnails-min-width, 300px);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
:where(.vds-chapter-radio) {
|
|
843
|
+
border-radius: 0;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.vds-chapter-radio {
|
|
847
|
+
border-bottom: var(--chapter-divider);
|
|
848
|
+
padding: var(--item-padding);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.vds-chapter-radio[aria-checked='true'] {
|
|
852
|
+
padding-left: var(--item-padding);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
:where(.vds-chapter-radio:last-child) {
|
|
856
|
+
border-bottom: 0;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.vds-chapter-radio[aria-checked='true'] {
|
|
860
|
+
background-color: var(--chapter-active-bg);
|
|
861
|
+
border-left: var(--chapter-active-border-left);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
:where(.vds-chapter-radio[aria-checked='true']):after {
|
|
865
|
+
content: ' ';
|
|
866
|
+
width: var(--progress);
|
|
867
|
+
height: var(--media-chapters-progress-height, 4px);
|
|
868
|
+
position: absolute;
|
|
869
|
+
bottom: 0;
|
|
870
|
+
left: 0;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.vds-chapter-radio[aria-checked='true']:after {
|
|
874
|
+
border-radius: var(--media-chapters-progress-border-radius, 0);
|
|
875
|
+
background-color: var(--chapter-progress-bg);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.vds-chapters-radio-group :where(.vds-thumbnail) {
|
|
879
|
+
margin-right: var(--media-chapters-thumbnail-gap, 12px);
|
|
880
|
+
flex-shrink: 0;
|
|
881
|
+
min-width: var(--media-chapters-thumbnail-min-width, 100px);
|
|
882
|
+
min-height: var(--media-chapters-thumbnail-min-height, 56px);
|
|
883
|
+
max-width: var(--media-chapters-thumbnail-max-width, 120px);
|
|
884
|
+
max-height: var(--media-chapters-thumbnail-max-height, 68px);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.vds-chapters-radio-group .vds-thumbnail {
|
|
888
|
+
border: var(--media-chapters-thumbnail-border, 0);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
:where(.vds-chapters-radio-group .vds-chapter-radio-label) {
|
|
892
|
+
color: var(--text-secondary-color);
|
|
893
|
+
font-size: var(--font-size);
|
|
894
|
+
font-weight: var(--font-weight);
|
|
895
|
+
white-space: nowrap;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
:where(.vds-chapter-radio[aria-checked='true'] .vds-chapter-radio-label) {
|
|
899
|
+
color: var(--text-color);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
:where(.vds-chapters-radio-group .vds-chapter-radio-start-time) {
|
|
903
|
+
display: inline-block;
|
|
904
|
+
letter-spacing: var(--media-chapters-start-time-letter-spacing, 0.4px);
|
|
905
|
+
border-radius: var(--media-chapters-start-time-border-radius, 2px);
|
|
906
|
+
font-size: var(--chapter-time-font-size);
|
|
907
|
+
font-weight: var(--chapter-time-font-weight);
|
|
908
|
+
margin-top: var(--chapter-time-gap);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.vds-chapters-radio-group .vds-chapter-radio-start-time {
|
|
912
|
+
color: var(--text-secondary-color);
|
|
913
|
+
background-color: var(--section-bg);
|
|
914
|
+
padding: var(--media-chapters-start-time-padding, 1px 4px);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
:where(.vds-chapters-radio-group .vds-chapter-radio-duration) {
|
|
918
|
+
color: var(--text-hint-color);
|
|
919
|
+
font-size: var(--chapter-time-font-size);
|
|
920
|
+
font-weight: var(--chapter-time-font-weight);
|
|
921
|
+
margin-top: var(--chapter-time-gap);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.vds-chapters-radio-group .vds-chapter-radio-duration {
|
|
925
|
+
background-color: var(--chapter-duration-bg);
|
|
926
|
+
border-radius: var(--media-chapters-duration-border-radius, 2px);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.vds-chapters-radio-group:not([data-thumbnails]) :where(.vds-thumbnail, media-thumbnail) {
|
|
930
|
+
display: none;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
:where(.vds-chapter-radio-content) {
|
|
934
|
+
display: flex;
|
|
935
|
+
align-items: flex-start;
|
|
936
|
+
flex-direction: column;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
:where(.vds-chapters-radio-group:not([data-thumbnails]) .vds-chapter-radio-content) {
|
|
940
|
+
width: 100%;
|
|
941
|
+
flex-direction: row;
|
|
942
|
+
display: flex;
|
|
943
|
+
flex-wrap: wrap;
|
|
944
|
+
align-items: center;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
:where(.vds-chapters-radio-group:not([data-thumbnails]) .vds-chapter-radio-start-time) {
|
|
948
|
+
margin-top: 0;
|
|
949
|
+
margin-left: auto;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
:where(.vds-chapters-radio-group:not([data-thumbnails]) .vds-chapter-radio-duration) {
|
|
953
|
+
margin-top: 4px;
|
|
954
|
+
flex-basis: 100%;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.vds-menu-items[data-keyboard] .vds-chapters-radio-group:focus-within {
|
|
958
|
+
padding: var(--media-chapters-focus-padding, 4px);
|
|
959
|
+
}
|