Mobile Responsive Styles (#580)

* WIP: Responsive styles

* Flip breakpoints, ensure doc doesn't spread

* Add MenuIcon

* Refactor Sidebar to share mobile responsive styles

* Fix accidental find/replace

* Tweak padding to take into account icon spacing
This commit is contained in:
Tom Moor
2018-02-10 23:24:12 -08:00
committed by GitHub
parent 4cc7338534
commit 6caba86751
17 changed files with 213 additions and 96 deletions

View File

@@ -2,6 +2,7 @@
import React from 'react';
import { observer } from 'mobx-react';
import styled, { injectGlobal } from 'styled-components';
import breakpoint from 'styled-components-breakpoint';
import ReactModal from 'react-modal';
import { color } from 'shared/styles/constants';
import { fadeAndScaleIn } from 'shared/styles/animations';
@@ -80,14 +81,19 @@ const StyledModal = styled(ReactModal)`
const Close = styled.a`
position: fixed;
top: 3rem;
right: 3rem;
top: 16px;
right: 16px;
opacity: 0.5;
color: ${color.text};
&:hover {
opacity: 1;
}
${breakpoint('tablet')`
top: 3rem;
right: 3rem;
`};
`;
export default observer(Modal);