Version 1
[yaffs-website] / node_modules / video.js / src / css / components / _big-play.scss
1 .video-js .vjs-big-play-button {
2   font-size: 3em;
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.
6   display: block;
7   position: absolute;
8   top: 10px;
9   left: 10px;
10   padding: 0;
11   cursor: pointer;
12   opacity: 1;
13   border: 0.06666em solid $primary-foreground-color;
14
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);
19
20   @extend .vjs-icon-play;
21
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.
24   &:before {
25     @extend %icon-default;
26   }
27 }
28
29 // Allow people that hate their poster image to center the big play button.
30 .vjs-big-play-centered .vjs-big-play-button {
31   top: 50%;
32   left: 50%;
33   margin-top: -($big-play-button--height / 2);
34   margin-left: -($big-play-button--width / 2);
35 }
36
37 .video-js:hover .vjs-big-play-button,
38 .video-js .vjs-big-play-button:focus {
39   outline: 0;
40   border-color: $primary-foreground-color;
41
42   @include background-color-with-alpha($secondary-background-color, $secondary-background-transparency);
43   @include transition(all 0s);
44 }
45
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 {
51   display: none;
52 }
53
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 {
56   display: block;
57 }