mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00

This adds paddings to various containers so that buttons and contents are not hidden by the notch or the Home indicator (the gray bar at the bottom). - `src/assets/css/librarybrowser.scss` - `.skinHeader`: menu bar at the top. - `.padded-left` and `.padded-right`: the heading of library. - `src/assets/css/site.scss` - `.content-primary`, `.padded-bottom-page`, `.page`, `.pageWithAbsoluteTabs`, and `.pageTabContent`: settings and dashboards. - `src/elements/emby-scroller/emby-scroller.scss` - `.emby-scroller`: the library items. - `src/assets/css/videoosd.scss` - `.videoOsdBottom`: the video playback control buttons and the progress bar. - `src/components/alphaPicker/style.scss` - `.alphaPicker-fixed` and `.alphaPicker-fixed-right`: the alphabet picker. - `src/components/appFooter/appFooter.scss` - `.appfooter`: the bottom bar showing the currently playing media. - `src/components/multiSelect/multiSelect.scss` - `.selectionCommandsPanel`: the top bar when selecting multiple media. Shown when long-pressing media. - `src/components/remotecontrol/remotecontrol.scss` - `.playlistSectionButton`: the bottom bar for current playlist. Shown when touching `.appfooter`. - `src/components/toast/toast.scss` - `.toastContainer`: the toast. Shown when refreshing metadata. - `src/index.html` - `.mainDrawerHandle`: gesture area for the drawer. It seems conflicting with gestures of Safari. - `src/libraries/navdrawer/navdrawer.scss` - `.tmla-mask` and `.touch-menu-la`: the drawer. - `src/plugins/htmlVideoPlayer/style.scss` - `.videoPlayerContainer`: the video area when not fullscreen. - `.videoSubtitles`: the video subtitles for some devices, not including iPhone. - `src/plugins/youtubePlayer/style.scss` - `.youtubePlayerContainer` container for the YouTube plugin. Not tested.
87 lines
2.2 KiB
SCSS
87 lines
2.2 KiB
SCSS
.videoPlayerContainer {
|
|
position: fixed !important;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
background: #000 !important;
|
|
padding-left: env(safe-area-inset-left);
|
|
padding-right: env(safe-area-inset-right);
|
|
padding-top: env(safe-area-inset-top);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
.videoPlayerContainer-onTop {
|
|
z-index: 1000;
|
|
}
|
|
|
|
.videoPlayerContainer .libassjs-canvas-parent {
|
|
order: -1;
|
|
}
|
|
|
|
/* Controls are enabled for devices that don't support autoplay. They will be hidden when playback starts.
|
|
In Tizen 2.3 (and probably other old web engines), subtitles are located under '-webkit-media-controls' tree.
|
|
Therefore, we hide controls only if they are enabled.
|
|
*/
|
|
video[controls]::-webkit-media-controls {
|
|
display: none !important;
|
|
}
|
|
|
|
.htmlvideoplayer {
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.htmlvideoplayer::cue {
|
|
background-color: transparent;
|
|
text-shadow: 0.14em 0.14em 0.14em rgba(0, 0, 0, 1);
|
|
-webkit-font-smoothing: antialiased;
|
|
font-family: inherit;
|
|
line-height: normal; /* Restore value. See -webkit-media-text-track-container 'line-height' */
|
|
}
|
|
|
|
.htmlvideoplayer::-webkit-media-text-track-container {
|
|
font-size: 170% !important; /* Override element inline style */
|
|
line-height: 50%; /* Child element cannot set line height smaller than its parent has. This allow smaller values for children */
|
|
}
|
|
|
|
.htmlvideoplayer::-webkit-media-text-track-display {
|
|
max-width: 70%;
|
|
margin-left: 15%;
|
|
}
|
|
|
|
.videoSubtitles {
|
|
position: fixed;
|
|
bottom: 0;
|
|
text-align: center;
|
|
left: 0;
|
|
right: 0;
|
|
color: #fff;
|
|
font-size: 170%;
|
|
padding-left: env(safe-area-inset-left);
|
|
padding-right: env(safe-area-inset-right);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
.videoSubtitlesInner {
|
|
max-width: 70%;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
margin: auto;
|
|
display: inline-block;
|
|
}
|
|
|
|
@keyframes htmlvideoplayer-zoomin {
|
|
from {
|
|
transform: scale3d(0.2, 0.2, 0.2);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
to {
|
|
transform: none;
|
|
opacity: initial;
|
|
}
|
|
}
|