From 622ce98bf08d58584fe4af7e8967a7d579823ca2 Mon Sep 17 00:00:00 2001 From: Gabriel Albo Date: Tue, 24 Feb 2015 16:13:56 -0300 Subject: #296 Hiding custom tags when the left side nav is collaped --- web-ui/app/index.html | 11 ++++++++--- web-ui/app/scss/styles.scss | 9 +++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'web-ui/app') diff --git a/web-ui/app/index.html b/web-ui/app/index.html index 87ab000d..7a8f335f 100644 --- a/web-ui/app/index.html +++ b/web-ui/app/index.html @@ -24,7 +24,7 @@ - + @@ -89,8 +89,13 @@ $(document).foundation(); $('.fake-left-off-canvas-toggle').click(function (ev) { ev.preventDefault(); $('.left-off-canvas-toggle').click(); - }); + if ($('#custom-tag-list').hasClass('expanded')) { + $('#custom-tag-list').removeClass('expanded'); + } + else { + $('#custom-tag-list').addClass('expanded'); + } + }); - diff --git a/web-ui/app/scss/styles.scss b/web-ui/app/scss/styles.scss index f8c8644c..5cbe1ca5 100644 --- a/web-ui/app/scss/styles.scss +++ b/web-ui/app/scss/styles.scss @@ -325,6 +325,10 @@ section { } ul#custom-tag-list { + visibility: hidden; + opacity: 0; + transition-duration: 500ms; + li { white-space: nowrap; overflow: hidden; @@ -337,6 +341,11 @@ section { } } + ul#custom-tag-list.expanded { + visibility: visible; + opacity: 1; + } + div.tags-icon { margin-bottom: 20px; i { -- cgit v1.2.3