From 6978420010cbb902ae3b3b248611f882996909a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Fri, 8 Sep 2017 18:54:45 +0200 Subject: [PATCH] Organize app-navigation menu types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/css/apps.scss | 144 +++++++++++++++++++++++++-------------------- 1 file changed, 81 insertions(+), 63 deletions(-) diff --git a/core/css/apps.scss b/core/css/apps.scss index 91fb31701e..f2e07515b0 100644 --- a/core/css/apps.scss +++ b/core/css/apps.scss @@ -197,6 +197,10 @@ kbd { &.without-app-settings { padding-bottom: 0; } + + /** + * Collapsible menus + */ .collapse { /* hide collapse button initially */ display: none; @@ -243,63 +247,6 @@ kbd { } } } - /* Deleted entries with undo button */ - .app-navigation-entry-deleted { - display: inline-block; - height: 44px; - width: 100%; - } - .app-navigation-entry-deleted-description { - padding-left: 12px; - position: relative; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - display: inline-block; - width: calc(100% - 49px); - line-height: 44px; - float: left; - } - .app-navigation-entry-deleted-button { - margin: 0; - height: 44px; - width: 44px; - line-height: 44px; - border: 0; - display: inline-block; - background-color: transparent; - opacity: .5; - &:hover, &:focus { - opacity: 1; - } - } - /* counter and actions, legacy code TO BE DELETED */ - .utils { - position: absolute; - padding: 7px 7px 0 0; - right: 0; - top: 0; - bottom: 0; - font-size: 12px; - button, - .counter { - width: 44px; - height: 44px; - padding-top: 12px; - } - } - /* drag and drop */ - .drag-and-drop { - -webkit-transition: padding-bottom 500ms ease 0s; - transition: padding-bottom 500ms ease 0s; - padding-bottom: 40px; - } - .error { - color: $color-error; - } - .app-navigation-separator { - border-bottom: 1px solid nc-lighten($color-main-text, 86%); - } /** * App navigation utils, buttons and counters for drop down menu @@ -328,6 +275,9 @@ kbd { background-color: transparent; background-repeat: no-repeat; background-position: center; + } + /* Only apply background-image if no icon is set on the button */ + button:not([class^='icon-']):not([class*=' icon-']) { background-image: url('../img/actions/more.svg?v=1'); } &:hover button, @@ -344,13 +294,10 @@ kbd { padding: 0 12px; /* Same padding as all li > a in the app-navigation */ } } - - .app-navigation-entry-utils ul, - .app-navigation-entry-menu ul { - list-style-type: none; - } - /* editing an entry */ + /** + * Editable entries + */ .app-navigation-entry-edit { padding-left: 5px; padding-right: 5px; @@ -380,6 +327,77 @@ kbd { margin-right: 0; } } + + /** + * Deleted entries with undo button + */ + .app-navigation-entry-deleted { + display: inline-block; + height: 44px; + width: 100%; + .app-navigation-entry-deleted-description { + padding-left: 12px; + position: relative; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + display: inline-block; + width: calc(100% - 49px); + line-height: 44px; + float: left; + } + .app-navigation-entry-deleted-button { + margin: 0; + height: 44px; + width: 44px; + line-height: 44px; + border: 0; + display: inline-block; + background-color: transparent; + opacity: .5; + &:hover, &:focus { + opacity: 1; + } + } + } + + /** + * drag and drop + */ + .drag-and-drop { + -webkit-transition: padding-bottom 500ms ease 0s; + transition: padding-bottom 500ms ease 0s; + padding-bottom: 40px; + } + + /** + * Counter and actions, legacy code **TO BE DELETED** + */ + .utils { + position: absolute; + padding: 7px 7px 0 0; + right: 0; + top: 0; + bottom: 0; + font-size: 12px; + button, + .counter { + width: 44px; + height: 44px; + padding-top: 12px; + } + } + .error { + color: $color-error; + } + .app-navigation-separator { + border-bottom: 1px solid nc-lighten($color-main-text, 86%); + } + + .app-navigation-entry-utils ul, + .app-navigation-entry-menu ul { + list-style-type: none; + } } /* APP-CONTENT ---------------------------------------------------------------*/