Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(big-play-button): component customization #8398

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/css/components/_big-play.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
@use "sass:math";

.video-js .vjs-big-play-button {
font-size: 3em;
line-height: $big-play-button--line-height;
height: $big-play-button--height;
width: $big-play-button--width; // Firefox bug: For some reason without width the icon wouldn't show up. Switched to using width and removed padding.
display: block;
position: absolute;
top: 50%;
left: 50%;
padding: 0;
margin-top: -(math.div($big-play-button--height, 2));
margin-left: -(math.div($big-play-button--width, 2));
cursor: pointer;
opacity: 1;
border: $big-play-button--border-size solid $primary-foreground-color;
transform: translate(-50%, -50%);

// Need a slightly gray bg so it can be seen on black backgrounds
@include background-color-with-alpha($primary-background-color, $primary-background-transparency);
Expand All @@ -26,7 +22,10 @@
& .vjs-icon-placeholder:before {
@extend .vjs-icon-play;

@extend %icon-default;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
}

Expand Down