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.
54 lines
1.4 KiB
SCSS
54 lines
1.4 KiB
SCSS
.tmla-mask,
|
|
.touch-menu-la {
|
|
position: fixed;
|
|
top: 0;
|
|
bottom: 0;
|
|
contain: strict;
|
|
box-sizing: border-box;
|
|
padding-left: env(safe-area-inset-left);
|
|
}
|
|
|
|
.touch-menu-la {
|
|
background-color: #fff;
|
|
will-change: transform;
|
|
display: -webkit-box;
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-transition: -webkit-transform ease-out 40ms, left ease-out 260ms;
|
|
-o-transition: transform ease-out 40ms, left ease-out 260ms;
|
|
transition: transform ease-out 40ms, left ease-out 260ms;
|
|
z-index: 1099;
|
|
}
|
|
|
|
.touch-menu-la.transition {
|
|
-webkit-transition: -webkit-transform ease-out 240ms, left ease-out 260ms;
|
|
-o-transition: transform ease-out 240ms, left ease-out 260ms;
|
|
transition: transform ease-out 240ms, left ease-out 260ms;
|
|
}
|
|
|
|
.drawer-open {
|
|
-webkit-box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
|
|
box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.scrollContainer {
|
|
-webkit-box-flex: 1;
|
|
-webkit-flex-grow: 1;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.tmla-mask {
|
|
left: 0;
|
|
right: 0;
|
|
opacity: 0;
|
|
z-index: 1098;
|
|
-webkit-transition: opacity ease-in-out 0.38s, visibility ease-in-out 0.38s;
|
|
-o-transition: opacity ease-in-out 0.38s, visibility ease-in-out 0.38s;
|
|
transition: opacity ease-in-out 0.38s, visibility ease-in-out 0.38s;
|
|
will-change: opacity;
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.tmla-mask.backdrop {
|
|
opacity: 1;
|
|
}
|