2 @use '_variables' as *;
4 @use './_player-variables' as *;
7 --embedForegroundColor: #{$primary-foreground-color};
9 --embedBigPlayBackgroundColor: #{$primary-background-color};
12 @mixin big-play-button-triangle-size($triangle-size) {
13 width: $triangle-size;
14 height: $triangle-size;
15 top: calc(50% - #{math.div($triangle-size, 2)});
16 left: calc(53% - #{math.div($triangle-size, 2)});
19 .video-js.vjs-peertube-skin {
20 font-size: $font-size;
21 color: pvar(--embedForegroundColor);
23 .vjs-volume-level::before {
24 content: ''; /* Remove Circle From Progress Bar */
31 .vjs-big-play-button {
32 $big-play-width: 1.2em;
33 $big-play-height: 1.2em;
35 @include margin-left(-(math.div($big-play-width, 2)));
40 border: 2px solid #fff;
45 width: $big-play-width;
46 height: $big-play-height;
47 line-height: $big-play-height;
48 margin-top: -(math.div($big-play-height, 2));
49 transition: 0.2s background-color;
56 .vjs-icon-placeholder::before {
57 @include big-play-button-triangle-size(45px);
60 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
65 background-color: var(--mainColor, #696969);
69 // Show poster and controls when playing audio-only content
70 &.vjs-playing-audio-only-content {
77 opacity: $primary-foreground-opacity-hover;
81 // Do not display poster when video is starting
82 &.vjs-has-autoplay:not(.vjs-has-started) {
89 // Hide the big play button on autoplay
91 .vjs-big-play-button {
92 display: none !important;
98 .vjs-settings-dialog {
99 background-color: pvar(--embedBigPlayBackgroundColor);
103 outline: none; /* Remove Blue Outline on Click*/
107 @media screen and (max-width: $screen-width-750) {
108 .vjs-big-play-button {
112 .vjs-icon-placeholder::before {
113 @include big-play-button-triangle-size(32px);
118 @media screen and (max-width: $screen-width-570) {
119 .vjs-big-play-button {
123 .vjs-icon-placeholder::before {
124 @include big-play-button-triangle-size(27px);
129 @media screen and (max-width: $screen-width-350) {
130 .vjs-big-play-button {
134 .vjs-icon-placeholder::before {
135 @include big-play-button-triangle-size(20px);
140 // Theater mode is enabled
141 &.vjs-theater-enabled {
142 .vjs-theater-control {
145 .vjs-icon-placeholder {
146 transform: scale(0.8);
151 // On fullscreen, hide theater control
153 .vjs-theater-control {
159 // Play/pause animations
160 .vjs-has-started .vjs-play-control {
162 animation: remove-pause-button 0.25s ease;
166 animation: add-play-button 0.25s ease;
169 @keyframes remove-pause-button {
171 transform: rotate(90deg);
174 transform: rotate(0deg);
178 @keyframes add-play-button {
180 transform: rotate(-90deg);
183 transform: rotate(0deg);
188 // Error display disabled
189 .vjs-error:not(.vjs-error-display-enabled) {
194 .vjs-loading-spinner {
199 // Error display enabled
200 .vjs-error.vjs-error-display-enabled {