Skip to content

Commit 6d768e4

Browse files
refactor so we don't have to unset values for mobile
1 parent d0f0804 commit 6d768e4

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.css

+9-12
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@
4242
/* Place the seek bar above the controls (the default is below) */
4343
display: flex;
4444
flex-direction: column-reverse;
45-
46-
/* remove some bottom padding since the seek bar is above */
47-
padding-bottom: 0;
48-
width: 100%;
49-
}
50-
51-
/* increase height of captions since we remove the padding-bottom below the seekbar */
52-
:deep(.shaka-controls-container[shown='true']~.shaka-text-container) {
53-
bottom: 12.5%;
5445
}
5546

5647
/*
@@ -242,14 +233,20 @@
242233
:deep(.playerFullscreenTitleOverlay) {
243234
font-size: large;
244235
}
236+
}
245237

238+
@media only screen and (width >= 1000px) {
246239
:deep(.shaka-bottom-controls) {
247-
padding-bottom: 2.5%;
248-
width: 96%;
240+
/* remove some bottom padding since the seek bar is above */
241+
padding-bottom: 0;
242+
243+
/* make seekbar take full width on non-mobile devices */
244+
width: 100%;
249245
}
250246

247+
/* increase height of captions area since we remove the padding-bottom below the seekbar */
251248
:deep(.shaka-controls-container[shown='true']~.shaka-text-container) {
252-
bottom: 15%;
249+
bottom: 12.5%;
253250
}
254251
}
255252

0 commit comments

Comments
 (0)