From 64c2e946f4d17e877105116ddc6e02f9c2aa042b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sat, 2 Jun 2018 08:49:30 +0200 Subject: [PATCH] Some code cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/css/settings.scss | 70 +++++++++------ settings/src/components/appDetails.vue | 95 ++++++++++++++------- settings/src/components/appList.vue | 13 ++- settings/src/components/appList/appItem.vue | 73 +++------------- settings/src/components/appManagement.vue | 21 +++++ settings/src/store/apps.js | 7 +- settings/src/views/Apps.vue | 11 ++- 7 files changed, 159 insertions(+), 131 deletions(-) diff --git a/settings/css/settings.scss b/settings/css/settings.scss index 484e62592a..99bd4c5692 100644 --- a/settings/css/settings.scss +++ b/settings/css/settings.scss @@ -784,12 +784,34 @@ span.version { .app-score-image { height: 14px; } + .actions { + margin-top: 10px; + } } #app-sidebar #app-details-view { - .app-description p { + h2 { + .icon-settings-dark, + svg { + display: inline-block; + width: 16px; + height: 16px; + margin-right: 10px; + opacity: .7; + } + } + .app-level { margin-bottom: 10px; } + .app-author, .app-licence { + color: $color-text-details; + } + .app-dependencies { + margin: 10px 0; + } + .app-description p { + margin: 10px 0; + } .close { position: absolute; top: 0; @@ -797,6 +819,9 @@ span.version { padding: 14px; opacity: 0.5; z-index: 1; + }. + .actions { + display: flex; } } @@ -842,7 +867,7 @@ span.version { } } /* hide app version and level on narrower screens */ -@media only screen and (max-width: 768px) { +@media only screen and (max-width: 900px) { #apps-list.installed { .app-version, .app-level { display: none !important; @@ -850,7 +875,7 @@ span.version { } } -@media only screen and (max-width: 700px) { +@media only screen and (max-width: 500px) { #apps-list.installed .app-groups { display: none !important; } @@ -932,30 +957,15 @@ span.version { list-style-position: inside; } -/* Transition to complete width! */ - -.app { - &:hover, &:active { - max-width: inherit; - } -} - .appslink { text-decoration: underline; } -.score { - color: #666; - font-weight: bold; - font-size: 0.8em; -} - -.appinfo .documentation { - margin-top: 1em; - margin-bottom: 1em; -} #apps-list, #apps-list-search { + .section { + cursor: pointer; + } &.installed { display: table; width: 100%; @@ -974,6 +984,9 @@ span.version { padding: 6px; box-sizing: border-box; } + &.selected { + background-color: nc-darken($color-main-background, 3%); + } } .groups-enable { margin-top: 0; @@ -995,6 +1008,14 @@ span.version { background-size: cover; display: inline-block; } + .actions { + text-align: right; + .icon-loading-small { + display: inline-block; + top: 4px; + margin-right: 10px; + } + } } &:not(.installed) .app-image-icon svg { position: absolute; @@ -1014,9 +1035,6 @@ span.version { position: relative; flex: 0 0 auto; - &.selected { - background-color: nc-darken($color-main-background, 6%); - } h2.app-name { display: block; margin: 8px 0; @@ -1072,10 +1090,6 @@ span.version { } } -.installed .actions { - text-align: right; -} - /* LOG */ #log { white-space: normal; diff --git a/settings/src/components/appDetails.vue b/settings/src/components/appDetails.vue index faa5e02270..dbdcb1bb69 100644 --- a/settings/src/components/appDetails.vue +++ b/settings/src/components/appDetails.vue @@ -23,40 +23,53 @@