fix(#2248): add style conditions for mobile popup

keep-around/bb75dd1c73b58d0f55b380f9529e5f59371d068c
Andrei Dekterev 4 years ago committed by Andrei Dekterev
parent 13c05e61ff
commit b1060c628f
  1. 33
      src/features/AuthServiceApp/components/ConfirmPopup/styled.tsx

@ -1,4 +1,8 @@
import styled from 'styled-components/macro'
import styled, { css } from 'styled-components/macro'
import { isMobileDevice } from 'config/userAgent'
import { devices } from 'config/devices'
import { ModalWindow } from 'features/Modal/styled'
import {
ApplyButton,
@ -10,11 +14,26 @@ import {
export const Modal = styled(BaseModal)`
${ModalWindow} {
min-height: 220px;
${isMobileDevice
? css`
@media ${devices.mobile} {
width: 95vw;
padding-top: 0;
}
`
: ''};
}
`
export const ScHeaderTitle = styled(HeaderTitle)`
text-align: center;
${isMobileDevice
? css`
font-size: 20px;
`
: ''};
`
export const ScBody = styled(Body)`
@ -23,8 +42,20 @@ export const ScBody = styled(Body)`
export const ScText = styled.span`
text-align: center;
${isMobileDevice
? css`
font-size: 14px;
`
: ''};
`
export const ScApplyButton = styled(ApplyButton)`
margin: 0;
${isMobileDevice
? css`
font-size: 14px;
`
: ''};
`

Loading…
Cancel
Save