Skip to content

Commit 12b7166

Browse files
authored
fix(VIDEO-20091): hide shadow when controlBar is hidden (#924)
1 parent ba1f966 commit 12b7166

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/assets/styles/main.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ $icon-font-path: '../icon-font' !default;
232232
opacity: 0;
233233
}
234234

235-
&.vjs-controls-enabled::before {
235+
&.vjs-has-started.vjs-controls-enabled:has(.vjs-control-bar)::before {
236236
content: '';
237237
pointer-events: none;
238238
position: absolute;
@@ -245,13 +245,9 @@ $icon-font-path: '../icon-font' !default;
245245
opacity: 0.4;
246246
z-index: 1;
247247
font-size: 120%;
248-
display: none;
249-
}
250-
&.vjs-has-started::before,
251-
&.vjs-audio-only-mode::before {
252-
display: flex;
253248
transition: opacity 0.1s;
254249
}
250+
255251
&.vjs-has-started.vjs-user-inactive.vjs-playing::before {
256252
opacity: 0;
257253
transition: opacity 1s;

0 commit comments

Comments
 (0)