You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spa_instat_tv/src/features/PageLayout/styled.tsx

41 lines
827 B

import styled, { css } from 'styled-components/macro'
import { isMobileDevice } from 'config/userAgent'
import { customScrollbar } from 'features/Common'
export const PageWrapper = styled.div<{isIOS?: boolean}>`
width: 100%;
touch-action: ${({ isIOS }) => (isIOS ? 'none' : 'unset')};
`
export const Main = styled.main`
display: flex;
`
export const Content = styled.div`
padding-top: 0.95rem;
padding-left: 0.38rem;
flex-grow: 1;
height: calc(100vh - 8.5rem);
overflow-y: auto;
${customScrollbar}
${isMobileDevice
? css`
padding-bottom: 23px;
height: calc(100vh - 174px);
`
: ''};
`
export const BodyBackdrop = styled.div`
position: fixed;
top: 8.5rem;
left: 0;
background-color: rgba(0, 0, 0, 0.7);
width: 100vw;
height: calc(100vh - 8.5rem);
z-index: 2;
`