Skip to content

Commit 8624c56

Browse files
improve big play button sizing
1 parent 006e711 commit 8624c56

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

src/player/modules/ViewVideo/style.css

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -844,26 +844,28 @@ body.userinactive .mainContainer:not([data-edit-mode="overlays"]):not([data-edit
844844
}
845845

846846
.hypervideoContainer .videoContainer .videoStartOverlay .playButtonBig {
847+
--play-button-size: 80px;
847848
background-color: var(--primary-bg-color);
848849
border: none;
849850
border-radius: 50%;
850-
height: 80px;
851+
height: var(--play-button-size);
851852
left: 50%;
852-
margin-left: -41px;
853-
margin-top: -41px;
854-
position: absolute;
855853
top: 50%;
856-
width: 80px;
854+
translate: -50% -50%;
855+
position: absolute;
856+
width: var(--play-button-size);
857857
z-index: 29;
858+
display: flex;
859+
align-items: center;
860+
justify-content: center;
861+
overflow: hidden;
858862
}
859863

860864
.hypervideoContainer .videoContainer .videoStartOverlay .playButtonBig [class^="icon-"]::before, .hypervideoContainer .videoContainer .videoStartOverlay .playButtonBig [class*=" icon-"]::before {
861865
transition-duration: 600ms;
862866
transition-property: opacity;
863867
color: var(--primary-fg-color);
864-
font-size: 86px;
865-
margin-top: -3px;
866-
margin-left: -3px;
868+
font-size: calc(var(--play-button-size) * 1.075);
867869
opacity: .7;
868870
}
869871

@@ -1382,9 +1384,13 @@ body.userinactive .mainContainer:not([data-edit-mode="overlays"]):not([data-edit
13821384
min-height: clamp(200px, calc(var(--ft-height, 100vh) * 0.6 - 40px), 300px);
13831385
}
13841386

1385-
.viewVideo.slide-pos-top .areaTopDetails,
1387+
.viewVideo.slide-pos-top .areaTopDetails,
13861388
.viewVideo.slide-pos-bottom .areaBottomDetails {
13871389
flex: 0 1 clamp(200px, calc(var(--ft-height, 100vh) * 0.6 - 40px), 350px);
13881390
min-height: clamp(200px, calc(var(--ft-height, 100vh) * 0.6 - 40px), 350px);
13891391
}
1392+
1393+
.hypervideoContainer .videoContainer .videoStartOverlay .playButtonBig {
1394+
--play-button-size: 50px;
1395+
}
13901396
}

0 commit comments

Comments
 (0)