style(website): mobile sidebar menu

This commit is contained in:
moklick
2020-10-14 18:05:34 +02:00
parent 372558c538
commit 0afcf6f776
4 changed files with 3 additions and 5 deletions
-2
View File
@@ -49,8 +49,6 @@ export default ({ children, title, slug, sourceCodeFiles = [] }) => {
robots: 'index, follow', robots: 'index, follow',
}; };
console.log(sourceCodeFiles);
const hasSource = sourceCodeFiles.length > 0; const hasSource = sourceCodeFiles.length > 0;
return ( return (
-1
View File
@@ -23,7 +23,6 @@ const PageWrapper = styled(Flex)`
const PageContent = styled(Box)` const PageContent = styled(Box)`
flex: 1 0 auto; flex: 1 0 auto;
position: relative;
`; `;
const Page = ({ const Page = ({
+1
View File
@@ -18,6 +18,7 @@ const Aside = styled.aside`
overflow-y: auto; overflow-y: auto;
background: white; background: white;
z-index: 400; z-index: 400;
padding: 20px 10px;
@media ${device.tablet} { @media ${device.tablet} {
width: 30%; width: 30%;
+1 -1
View File
@@ -17,7 +17,7 @@ export default function useMenuHeight() {
return () => { return () => {
window.removeEventListener('resize', onResize); window.removeEventListener('resize', onResize);
}; };
}); }, []);
return menuHeight; return menuHeight;
} }