responsive modals

pull/350/head
slowbackspace 5 years ago
parent 782956b230
commit 4724e35b04

@ -13,7 +13,7 @@ import P from 'components/Paragraph';
import type { Props } from '../../Container'; import type { Props } from '../../Container';
const Wrapper = styled.div` const Wrapper = styled.div`
width: 390px; max-width: 390px;
`; `;
const Header = styled.div` const Header = styled.div`

@ -20,7 +20,7 @@ type Props = {
} }
const Wrapper = styled.div` const Wrapper = styled.div`
width: 390px; max-width: 390px;
`; `;
const Header = styled.div` const Header = styled.div`

@ -30,7 +30,7 @@ const StyledLink = styled(Link)`
`; `;
const Wrapper = styled.div` const Wrapper = styled.div`
width: 370px; max-width: 370px;
padding: 30px 48px; padding: 30px 48px;
`; `;

@ -25,7 +25,6 @@ type Props = {
} }
const Wrapper = styled.div` const Wrapper = styled.div`
width: 360px;
`; `;
const Header = styled.div` const Header = styled.div`

@ -18,7 +18,7 @@ type Props = {
} }
const Wrapper = styled.div` const Wrapper = styled.div`
width: 360px; max-width: 360px;
padding: 30px 48px; padding: 30px 48px;
`; `;

@ -4,7 +4,7 @@ import * as React from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import colors from 'config/colors'; import colors from 'config/colors';
import { FONT_SIZE, FONT_WEIGHT } from 'config/variables'; import { FONT_SIZE, FONT_WEIGHT, SCREEN_SIZE } from 'config/variables';
type Props = { type Props = {
onClick: () => void; onClick: () => void;
@ -24,6 +24,11 @@ const Wrapper = styled.button`
transition: all 0.3s; transition: all 0.3s;
cursor: pointer; cursor: pointer;
@media screen and (max-width: ${SCREEN_SIZE.XS}) {
width: 50px;
height: 50px;
}
&:first-child { &:first-child {
margin-left: 0px; margin-left: 0px;
} }

Loading…
Cancel
Save