Skip to content

Commit 1303ab2

Browse files
committed
chore(video-player): bump version to 1.0.0-beta.1 and update z-index values in styles
1 parent 058c9a6 commit 1303ab2

2 files changed

Lines changed: 29 additions & 9 deletions

File tree

packages/video-player/javascript/styles/main.scss

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ $transition-base: 0.2s;
88
$transition-fade: 1s;
99

1010
$z-index-controls: 1;
11-
$z-index-control-bar: 2;
11+
$z-index-control-bar: 6;
1212
$z-index-chapter-tooltip: 4;
1313
$z-index-thumbnail: 5;
14+
$z-index-menu: 7;
1415

1516
// Spacing (em-based for scalability)
1617
$spacing-control-bar-bottom: 3em;
@@ -112,6 +113,7 @@ $spacing-progress-interactive-hover: -1.4rem;
112113
padding: 0.4em 0.6em;
113114
top: $spacing-time-tooltip-offset;
114115
font-size: 0.8em;
116+
z-index: 3;
115117
}
116118

117119
.vjs-big-play-button {
@@ -291,6 +293,11 @@ $spacing-progress-interactive-hover: -1.4rem;
291293
z-index: $z-index-control-bar;
292294
font-size: 120%;
293295

296+
.vjs-menu-button {
297+
position: relative;
298+
z-index: $z-index-menu;
299+
}
300+
294301
.vjs-volume-panel {
295302
margin-right: 0.5em;
296303

@@ -389,12 +396,16 @@ $spacing-progress-interactive-hover: -1.4rem;
389396
}
390397

391398
.vjs-menu {
399+
position: absolute;
400+
z-index: $z-index-menu;
401+
392402
.vjs-menu-content {
393403
max-width: 13em;
394404
width: auto;
395405
padding: 0.2em 0;
396406
overflow-y: auto;
397407
max-height: 20em;
408+
z-index: $z-index-menu;
398409
// Firefox
399410
scrollbar-gutter: stable;
400411
scrollbar-width: thin;
@@ -558,14 +569,23 @@ $spacing-progress-interactive-hover: -1.4rem;
558569
}
559570
}
560571

561-
.vjs-http-source-selector>.vjs-button {
562-
font-size: 1.6em;
563-
margin-right: -12px;
564-
margin-left: -12px;
565-
}
572+
.vjs-http-source-selector {
573+
z-index: $z-index-menu;
574+
575+
>.vjs-button {
576+
font-size: 1.6em;
577+
margin-right: -12px;
578+
margin-left: -12px;
579+
}
566580

567-
.vjs-http-source-selector>.vjs-menu {
568-
margin-bottom: 1.8em
581+
>.vjs-menu {
582+
// margin-bottom already set in general .vjs-menu rule above
583+
z-index: $z-index-menu;
584+
585+
.vjs-menu-content {
586+
z-index: $z-index-menu;
587+
}
588+
}
569589
}
570590

571591
.vjs-http-source-selector>.vjs-button.vjs-icon-cog::before {

packages/video-player/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@imagekit/video-player",
3-
"version": "1.0.0-alpha.1",
3+
"version": "1.0.0-beta.1",
44
"description": "Core ImageKit Video Player + framework-specific wrappers (React, Vue)",
55
"license": "MIT",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)