From 7ce154d5973019b5d3fe6d417e31f12786d82f2c Mon Sep 17 00:00:00 2001 From: Axolotle Date: Wed, 25 Nov 2020 16:20:59 +0100 Subject: [PATCH] uniformize description list and buttons --- app/src/scss/main.scss | 29 +++---- app/src/views/app/AppInfo.vue | 52 ++++++------ app/src/views/service/ServiceInfo.vue | 111 +++++++++++++------------- app/src/views/tool/ToolLog.vue | 13 ++- 4 files changed, 103 insertions(+), 102 deletions(-) diff --git a/app/src/scss/main.scss b/app/src/scss/main.scss index e7740f69..d99303bf 100644 --- a/app/src/scss/main.scss +++ b/app/src/scss/main.scss @@ -61,27 +61,20 @@ body { display: block; } -// elems with inside and eventually .sep inside +// Descriptive list ( elems with inside) .row-line { - &:hover > div > :first-child { - background-color: rgba(0, 0, 0, 0.05); - border-radius: 0.2rem; - padding: 0 .5rem; - margin-right: -.5rem; - margin-left: -.5rem; + @include media-breakpoint-up(md) { + &:hover { + background-color: rgba(0, 0, 0, 0.05); + border-radius: 0.2rem; + } } - & > div { - align-self: flex-start; - display: flex; - align-items: center; - // display a dashed line between col items - .sep { - height: 0; - border-top: 1px dashed rgba(0, 0, 0, 0.25); - flex-grow: 1; - margin: 0 .75rem; - } + @include media-breakpoint-down(sm) { + flex-direction: column; + margin-bottom: 0.5rem; + padding-bottom: 0.5rem; + border-bottom: $border-width solid $card-border-color; } } diff --git a/app/src/views/app/AppInfo.vue b/app/src/views/app/AppInfo.vue index b9bfb972..167b87a8 100644 --- a/app/src/views/app/AppInfo.vue +++ b/app/src/views/app/AppInfo.vue @@ -10,26 +10,29 @@ v-for="(value, prop) in info" :key="prop" no-gutters class="row-line" > - + {{ $t(prop) }} - {{ value }} {{ value }} -
- - -

- {{ $t('app_info_access_desc') }} -
- {{ allowedGroups.length > 0 ? allowedGroups.join(', ') + '.' : $t('nobody') }} -

- - {{ $t('groups_and_permissions_manage') }} - + + + {{ $t('app_info_access_desc') }} + + + + {{ allowedGroups.length > 0 ? allowedGroups.join(', ') + '.' : $t('nobody') }} + + {{ $t('groups_and_permissions_manage') }} + + + @@ -39,11 +42,11 @@ - +