..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 | @import '@vidstack/react/player/styles/default/theme.css';
@import '@vidstack/react/player/styles/default/layouts/audio.css';
@import '@vidstack/react/player/styles/default/layouts/video.css';
.player {
--brand-color: #f5f5f5;
--focus-color: #4e9cf6;
--audio-brand: var(--brand-color);
--audio-focus-ring-color: var(--focus-color);
--audio-border-radius: var(--global-border-radius);
--video-brand: var(--brand-color);
--video-focus-ring-color: var(--focus-color);
--video-border-radius: var(--global-border-radius);
--video-border: none;
/* 👉 https://vidstack.io/docs/player/components/layouts/default#css-variables for more. */
}
.player[data-view-type='audio'] .vds-poster {
display: none;
border-radius: 5rem;
}
.player[data-view-type='video'] {
aspect-ratio: 16 /9;
}
.src-buttons {
display: flex;
align-items: center;
justify-content: space-evenly;
margin-top: 40px;
margin-inline: auto;
max-width: 300px;
}
.vds-poster {
object-fit: cover;
}
|
|