From a4e0e6d35c697846380a53c3ea88947d0cedaa6b Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 31 Dec 2017 01:20:38 -0500 Subject: [PATCH] feat: navigator sidebar --- client/js/components/navigator.vue | 51 ++++++++++---- client/scss/base/mixins.scss | 13 ---- client/scss/components/navigator.scss | 96 ++++++++++++++++++++++++++- client/svg/icons.svg | 52 +++++++++++++++ 4 files changed, 186 insertions(+), 26 deletions(-) diff --git a/client/js/components/navigator.vue b/client/js/components/navigator.vue index a5d427c4..a768e73c 100644 --- a/client/js/components/navigator.vue +++ b/client/js/components/navigator.vue @@ -9,18 +9,42 @@ .navigator-title h1 {{ siteTitle }} .navigator-subtitle(:class='subtitleClass') - - svg.icons.is-24(role='img', v-if='subtitleIcon') - title {{subtitleText}} - use(:xlink:href='subtitleIconClass') + transition(name='navigator-subtitle-icon') + svg.icons.is-24.navigator-subtitle-icon(role='img', v-if='subtitleIcon') + title {{subtitleText}} + use(:xlink:href='subtitleIconClass') h2 {{subtitleText}} .navigator-action .navigator-action-item svg.icons.is-32(role='img') title User use(xlink:href='#nc-user-circle') - .navigator-row - .navigator-nav + transition(name='navigator-sd') + .navigator-sd(v-show='sdShown') + .navigator-sd-actions + a.is-active(href='') + svg.icons.is-24(role='img') + title Search + use(xlink:href='#gg-search') + a(href='') + svg.icons.is-24(role='img') + title New Document + use(xlink:href='#nc-plus-circle') + a(href='') + svg.icons.is-24(role='img') + title Navigation + use(xlink:href='#nc-pen-red') + a(href='') + svg.icons.is-24(role='img') + title Navigation + use(xlink:href='#nc-restore') + a(href='') + svg.icons.is-24(role='img') + title New Document + use(xlink:href='#nc-code-editor') + .navigator-sd-search + input(type='text', placeholder='Search') + .navigator-sd-results