|
|
|
|
@ -1,4 +1,6 @@ |
|
|
|
|
import styled from 'styled-components/macro' |
|
|
|
|
import styled, { css } from 'styled-components/macro' |
|
|
|
|
|
|
|
|
|
import { isMobileDevice } from 'config' |
|
|
|
|
|
|
|
|
|
export const WrapperError = styled.div` |
|
|
|
|
position: fixed; |
|
|
|
|
@ -14,4 +16,15 @@ export const WrapperError = styled.div` |
|
|
|
|
text-align: center; |
|
|
|
|
z-index: 1000000; |
|
|
|
|
white-space: pre-wrap; |
|
|
|
|
|
|
|
|
|
${isMobileDevice |
|
|
|
|
&& css` |
|
|
|
|
position: absolute; |
|
|
|
|
width: auto; |
|
|
|
|
top: 10%; |
|
|
|
|
left: 50%; |
|
|
|
|
max-width: 70vw; |
|
|
|
|
transform: translateX(-50%) |
|
|
|
|
` |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|