mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
standaloneMedia added
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import styled, { css } from 'styled-components'
|
||||
import { standaloneMedia } from 'style/standaloneMedia'
|
||||
|
||||
export const DialogWrapper = styled.div`
|
||||
height: 100%;
|
||||
@@ -27,9 +28,9 @@ export const HeaderSection = styled.section`
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (display-mode: standalone) {
|
||||
${standaloneMedia(css`
|
||||
padding-top: 30px;
|
||||
}
|
||||
`)}
|
||||
`
|
||||
|
||||
export const ThanksSection = styled.section`
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import styled from 'styled-components'
|
||||
import { standaloneMedia } from 'style/standaloneMedia'
|
||||
import styled, { css } from 'styled-components'
|
||||
|
||||
export const pwaFooterHeight = 90
|
||||
|
||||
@@ -12,9 +13,9 @@ export default styled.div`
|
||||
|
||||
display: none;
|
||||
|
||||
@media screen and (display-mode: standalone) {
|
||||
${standaloneMedia(css`
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
justify-items: center;
|
||||
}
|
||||
`)}
|
||||
`
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { IconButton } from '@material-ui/core'
|
||||
import { rgba } from 'polished'
|
||||
import { standaloneMedia } from 'style/standaloneMedia'
|
||||
import styled, { css } from 'styled-components'
|
||||
|
||||
import { pwaFooterHeight } from './PWAFooter/style'
|
||||
@@ -19,11 +20,11 @@ export const AppWrapper = styled.div`
|
||||
'head head'
|
||||
'side content';
|
||||
|
||||
@media screen and (display-mode: standalone) {
|
||||
${standaloneMedia(css`
|
||||
grid-template-columns: 0 1fr;
|
||||
grid-template-rows: ${pwaFooterHeight}px 1fr ${pwaFooterHeight}px;
|
||||
height: 100vh;
|
||||
}
|
||||
`)}
|
||||
`}
|
||||
`
|
||||
|
||||
@@ -46,14 +47,14 @@ export const AppHeader = styled.div`
|
||||
padding: 0 16px;
|
||||
z-index: 3;
|
||||
|
||||
@media screen and (display-mode: standalone) {
|
||||
${standaloneMedia(css`
|
||||
grid-template-columns: max-content 1fr;
|
||||
align-items: end;
|
||||
padding: 7px 16px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: ${pwaFooterHeight}px;
|
||||
}
|
||||
`)}
|
||||
`}
|
||||
`
|
||||
export const AppSidebarStyle = styled.div`
|
||||
@@ -77,9 +78,9 @@ export const AppSidebarStyle = styled.div`
|
||||
fill: ${sidebarFillColor};
|
||||
}
|
||||
|
||||
@media screen and (display-mode: standalone) {
|
||||
${standaloneMedia(css`
|
||||
display: none;
|
||||
}
|
||||
`)}
|
||||
`}
|
||||
`
|
||||
export const TorrentListWrapper = styled.div`
|
||||
@@ -106,10 +107,10 @@ export const TorrentListWrapper = styled.div`
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
@media screen and (display-mode: standalone) {
|
||||
${standaloneMedia(css`
|
||||
height: calc(100vh - ${pwaFooterHeight}px);
|
||||
padding-bottom: 105px;
|
||||
}
|
||||
`)}
|
||||
`
|
||||
|
||||
export const HeaderToggle = styled.div`
|
||||
@@ -148,7 +149,7 @@ export const HeaderToggle = styled.div`
|
||||
export const StyledIconButton = styled(IconButton)`
|
||||
margin-right: 6px;
|
||||
|
||||
@media screen and (display-mode: standalone) {
|
||||
${standaloneMedia(css`
|
||||
display: none;
|
||||
}
|
||||
`)}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user