From d09375dc4c5fe5c25e6f1acafd36761f19f0603a Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 6 Aug 2017 01:58:39 +0100 Subject: [PATCH] TOC --- src/components/App.vue | 6 +- src/components/Layout.vue | 55 +---- src/components/SideBar.vue | 73 +++++-- .../{MenuItem.vue => SideBarItem.vue} | 8 +- src/components/Toc.vue | 95 +++++++++ src/components/common/app.scss | 15 +- src/data/markdownSample.md | 20 +- src/index.js | 6 +- src/services/localDbSvc.js | 73 +++---- src/services/markdownConversionSvc.js | 14 ++ src/services/userSvc.js | 63 ++++++ src/services/utils.js | 14 ++ src/store/modules/layout.js | 196 +++++++++--------- 13 files changed, 406 insertions(+), 232 deletions(-) rename src/components/{MenuItem.vue => SideBarItem.vue} (72%) create mode 100644 src/services/userSvc.js diff --git a/src/components/App.vue b/src/components/App.vue index b243f648..46766757 100644 --- a/src/components/App.vue +++ b/src/components/App.vue @@ -34,10 +34,10 @@ export default { @import 'common/app'; .app__spash-screen { - position: absolute; - width: 100%; + margin: 0 auto; + max-width: 600px; height: 100%; background: no-repeat center url('../assets/logo.svg'); - background-color: #fff; + background-size: contain; } diff --git a/src/components/Layout.vue b/src/components/Layout.vue index 1f8bce75..ccf1d75f 100644 --- a/src/components/Layout.vue +++ b/src/components/Layout.vue @@ -1,6 +1,6 @@ @@ -152,6 +114,11 @@ export default { background-color: #fff; } +.layout__panel--button-bar, +.layout__panel--preview { + background-color: #f3f3f3; +} + .layout__panel--explorer, .layout__panel--side-bar { background-color: #dadada; diff --git a/src/components/SideBar.vue b/src/components/SideBar.vue index 8d257ce9..04cc9ba2 100644 --- a/src/components/SideBar.vue +++ b/src/components/SideBar.vue @@ -1,13 +1,11 @@