1 .video-js .vjs-big-play-button {
3 line-height: $big-play-button--height;
4 height: $big-play-button--height;
5 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.
13 border: 0.06666em solid $primary-foreground-color;
15 // Need a slightly gray bg so it can be seen on black backgrounds
16 @include background-color-with-alpha($primary-background-color, $primary-background-transparency);
17 @include border-radius(0.3em);
18 @include transition(all 0.4s);
20 @extend .vjs-icon-play;
22 // Since the big play button doesn't inherit from vjs-control, we need to specify a bit more than
23 // other buttons for the icon.
25 @extend %icon-default;
29 // Allow people that hate their poster image to center the big play button.
30 .vjs-big-play-centered .vjs-big-play-button {
33 margin-top: -($big-play-button--height / 2);
34 margin-left: -($big-play-button--width / 2);
37 .video-js:hover .vjs-big-play-button,
38 .video-js .vjs-big-play-button:focus {
40 border-color: $primary-foreground-color;
42 @include background-color-with-alpha($secondary-background-color, $secondary-background-transparency);
43 @include transition(all 0s);
46 // Hide if controls are disabled, the video is playing, or native controls are used.
47 .vjs-controls-disabled .vjs-big-play-button,
48 .vjs-has-started .vjs-big-play-button,
49 .vjs-using-native-controls .vjs-big-play-button,
50 .vjs-error .vjs-big-play-button {
54 // Show big play button if video is paused and .vjs-show-big-play-button-on-pause is set on video element
55 .vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button {