diff --git a/src/assets/icons/menu.svg b/src/assets/icons/menu.svg new file mode 100644 index 000000000..4523b5a1b --- /dev/null +++ b/src/assets/icons/menu.svg @@ -0,0 +1 @@ + diff --git a/src/components/Layout/Layout.scss b/src/components/Layout/Layout.scss index a2d85dbae..b3a16adb0 100644 --- a/src/components/Layout/Layout.scss +++ b/src/components/Layout/Layout.scss @@ -61,6 +61,7 @@ .content { display: flex; + flex: 1; justify-content: center; &.fixed { diff --git a/src/scenes/Application.js b/src/scenes/Application.js index 346848474..5a9fd2683 100644 --- a/src/scenes/Application.js +++ b/src/scenes/Application.js @@ -4,7 +4,7 @@ import Helmet from "react-helmet"; const Application = observer((props) => { return ( -
+
{ + this.setState({ showSidebar: !this.state.showSidebar }); + } + renderNode = (node) => { return ( @@ -130,7 +135,7 @@ class DocumentScene extends React.Component { ) : ( - { this.store.isAtlas ? ( + { this.store.isAtlas && this.state.showSidebar ? (
) : null } - + + { this.store.updatingContent ? ( diff --git a/src/scenes/DocumentScene/DocumentScene.scss b/src/scenes/DocumentScene/DocumentScene.scss index 2a9b34235..9163c1f68 100644 --- a/src/scenes/DocumentScene/DocumentScene.scss +++ b/src/scenes/DocumentScene/DocumentScene.scss @@ -5,5 +5,23 @@ .sidebar { width: 250px; - padding: 40px 20px; + padding: 20px 20px 20px 5px; + + border-right: 1px solid #eee; +} + +.content { + position: relative; +} + +.menuIcon { + position: absolute; + top: 22px; + left: 17px; + height: 28px; + opacity: 0.5; + + &:hover { + opacity: 1; + } }