Files
web/packages/design-system/lib/components/VideoPlayer/videoPlayer.module.css
Erik Tiekstra 84593438e6 feat(BOOK-257): Added VideoPlayer component
Approved-by: Christel Westerberg
Approved-by: Bianca Widstam
2025-12-02 07:35:38 +00:00

49 lines
747 B
CSS

.videoPlayer {
position: relative;
width: 100%;
aspect-ratio: auto;
display: flex;
justify-content: center;
align-items: center;
&.inline {
border-radius: var(--Corner-radius-md);
overflow: hidden;
}
&.hero {
height: 100%;
.overlay {
display: contents;
}
.playButton {
position: absolute;
bottom: var(--Space-x2);
right: var(--Space-x2);
}
}
}
.video {
width: 100%;
height: 100%;
object-fit: cover;
}
.playButton {
position: absolute;
}
.muteButton {
position: absolute;
top: var(--Space-x2);
right: var(--Space-x2);
}
@media screen and (min-width: 768px) {
.videoPlayer.hero .playButton {
bottom: var(--Space-x4);
right: var(--Space-x4);
}
}