From 5d22e8d4ea4aef40804a0ed1ef84dc3a38f8dbfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Tue, 21 Jan 2020 22:47:40 +0100 Subject: [PATCH] Use vue-components for app-navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- css/src/style.scss | 179 +++++++-------------------------- src/App.vue | 22 ++-- src/components/TheList.vue | 174 ++++++++++++++++---------------- src/components/TheSettings.vue | 85 +++++++--------- src/router.js | 1 + 5 files changed, 178 insertions(+), 283 deletions(-) diff --git a/css/src/style.scss b/css/src/style.scss index 5e47cb50..afc524bc 100644 --- a/css/src/style.scss +++ b/css/src/style.scss @@ -3,49 +3,30 @@ */ #app-navigation { - &:not(.vue) { - > ul > li { - > a { - background-position: inherit; - } - > .app-navigation-entry-edit { - padding-left: 5px !important; - } - } - .app-navigation-entry-menu { - ul { - align-items: unset; - li { - width: auto !important; - } - } - } - } > ul { > li { - background-image: unset; - - > a { - background-image: unset; - background-position: inherit; - } - - .sprite::before { + &.collection .app-navigation-entry-icon::before { content: ''; position: absolute; - z-index: -1; width: 16px; height: 16px; background: var(--icon-tasks-bw-000) no-repeat; - margin: 14px; - margin-left: -30px; background-position: inherit; } - &.active .app-navigation-entry-bullet { - height: 16px; - width: 16px; - margin: 14px; + &.list { + &.active .app-navigation-entry__icon-bullet > div { + height: 16px; + width: 16px; + margin: -1px; + } + + &:not(.active) { + .app-navigation-entry__utils .action-item, + .calendar__share { + display: none; + } + } } &.edit { @@ -61,20 +42,32 @@ } } - &.animate-up { - display: none; - } - - &.list:not(.active) { - .app-navigation-entry-utils-menu-button, - .calendar__share { + &.list, &.collection { + .task-item { display: none; } } - &.list, &.collection { - .task-item { - display: none; + button { + &.icon-share { + opacity: 0.3 !important; + } + + &.icon-shared, + &.icon-public { + opacity: 0.7 !important; + } + + &.icon-share:active, + &.icon-share:focus, + &.icon-share:hover, + &.icon-shared:active, + &.icon-shared:focus, + &.icon-shared:hover, + &.icon-public:active, + &.icon-public:focus, + &.icon-public:hover { + opacity: 1 !important; } } @@ -114,71 +107,6 @@ } } - .app-navigation-entry-utils li { - font-size: 100%; - } - - .app-navigation-entry-menu { - ul { - align-items: unset; - } - - li { - float: inherit; - width: auto !important; - cursor: pointer; - height: 44px; - - /* - * rules for confirmation directive - */ - > a { - &:not(:empty).confirmation-confirm { - padding: 0 !important; - } - - span.countdown { - background-color: inherit; - color: $white; - display: block; - text-align: center; - filter: alpha(opacity=100) !important; - opacity: 1 !important; - } - } - - &:hover a { - opacity: 1 !important; - } - - &.confirmed a { - &.confirmation-confirm { - display: inline-block !important; - opacity: 1; - } - - &.confirmation-abort { - display: inline-block !important; - opacity: 1; - } - } - - img { - cursor: pointer; - margin-right: 5px; - vertical-align: text-bottom; - } - - span { - cursor: pointer; - } - - button { - float: inherit; - } - } - } - > ul ul.colorpicker-list { display: inline-flex; } @@ -237,39 +165,6 @@ } } -.confirmation-default { - overflow: hidden; -} - -.confirmed { - .confirmation-default { - display: none !important; - } - - &.active { - .confirmation-confirm { - cursor: pointer !important; - } - - .countdown { - visibility: hidden; - } - } -} - -.confirmation-abort { - width: 50% !important; - display: none !important; - padding: 0 !important; - background-position: center !important; -} - -.confirmation-confirm { - @extend .confirmation-abort; - background-color: $red !important; - cursor: default !important; -} - /** * rules for settings area */ @@ -474,7 +369,7 @@ } } - .content-wrapper { + > div { padding: 6px 17px 75px; box-sizing: border-box; height: 100%; diff --git a/src/App.vue b/src/App.vue index a405c182..0e29f3c8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,16 +21,16 @@ License along with this library. If not, see .