style(website): mobile sidebar menu
This commit is contained in:
@@ -18,7 +18,7 @@ const ReactFlowWrapper = styled(Box)`
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|
||||||
.react-flow {
|
.react-flow {
|
||||||
border-bottom:1px solid ${(p) => p.theme.colors.silverLighten30};
|
border-bottom: 1px solid ${(p) => p.theme.colors.silverLighten30};
|
||||||
height: 65vh;
|
height: 65vh;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -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 (
|
||||||
|
|||||||
@@ -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 = ({
|
||||||
|
|||||||
@@ -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%;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export default function useMenuHeight() {
|
|||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener('resize', onResize);
|
window.removeEventListener('resize', onResize);
|
||||||
};
|
};
|
||||||
});
|
}, []);
|
||||||
|
|
||||||
return menuHeight;
|
return menuHeight;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user