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.
58 lines
1.1 KiB
58 lines
1.1 KiB
import styled, { css } from 'styled-components/macro'
|
|
|
|
import { devices } from 'config/devices'
|
|
import { isMobileDevice } from 'config/userAgent'
|
|
|
|
export const Wrapper = styled.div`
|
|
width: 100%;
|
|
height: calc(100vh - 115px);
|
|
margin: 20px 0px 0 10px;
|
|
display: flex;
|
|
|
|
@media ${devices.tablet} {
|
|
width: 100%;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
}
|
|
|
|
${isMobileDevice
|
|
? css`
|
|
height: calc(100vh - 40px);
|
|
|
|
@media screen and (orientation: landscape) {
|
|
flex-direction: row;
|
|
}
|
|
`
|
|
: ''};
|
|
`
|
|
|
|
export const Container = styled.div`
|
|
width: 100%;
|
|
max-width: 2090px;
|
|
max-height: 896px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
|
|
@media ${devices.tablet} {
|
|
flex-grow: 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
${isMobileDevice
|
|
? css`
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin-right: 0;
|
|
padding: 0;
|
|
margin-bottom: 15px;
|
|
min-height: min-content;
|
|
|
|
@media screen and (orientation: landscape){
|
|
display: block;
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
`
|
|
: ''};
|
|
`
|
|
|