From ae64f20578cc53da7ef42d2ad108cbb213c9c62c Mon Sep 17 00:00:00 2001 From: Ben Haynes Date: Wed, 22 Apr 2020 13:19:20 -0400 Subject: [PATCH] Various style tweaks (#449) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * secondary action button style will apply to other modules if we like this * card styling filled grid static gaps improved selections/hovering * action button colors * dialog styling * updated pagination * choose layout name * move page count to footer * card footer * correct list group icon orientation * move card size to header * header icon color * radios are not labels * clean up projcet chooser styling * don’t collapse pagination when empty * logout style and tooltips * correct css variable * layout translation key * use general “per page” translation --- src/components/v-button/v-button.vue | 8 +- src/components/v-card/v-card-actions.vue | 2 +- src/components/v-card/v-card-text.vue | 1 + src/components/v-dialog/v-dialog.vue | 1 + src/components/v-list/v-list-group.vue | 4 +- src/components/v-pagination/v-pagination.vue | 108 +++++------ src/components/v-radio/v-radio.vue | 2 +- src/lang/en-US/index.json | 2 +- src/layouts/cards/cards.vue | 80 +++++--- src/layouts/cards/components/card.vue | 173 ++++++++++-------- src/layouts/cards/components/header.vue | 11 ++ src/layouts/tabular/tabular.vue | 65 ++++--- .../collections/routes/browse/browse.vue | 20 +- .../collections/routes/detail/detail.vue | 23 ++- .../collections/routes/overview/overview.vue | 8 +- .../components/add-folder/add-folder.vue | 6 +- src/modules/files/routes/browse/browse.vue | 18 +- src/modules/files/routes/detail/detail.vue | 12 +- .../data-model/collections/collections.vue | 2 +- .../routes/data-model/fields/fields.vue | 8 +- src/modules/settings/routes/global/global.vue | 2 +- .../settings/routes/roles/browse/browse.vue | 14 +- .../settings/routes/roles/detail/detail.vue | 14 +- .../routes/webhooks/browse/browse.vue | 14 +- .../routes/webhooks/detail/detail.vue | 14 +- src/modules/users/routes/browse/browse.vue | 18 +- src/modules/users/routes/detail/detail.vue | 12 +- .../layout-drawer-detail.vue | 2 +- .../module-bar-avatar/module-bar-avatar.vue | 15 +- .../project-chooser/project-chooser.vue | 7 +- src/views/private/private-view.vue | 2 +- 31 files changed, 414 insertions(+), 254 deletions(-) diff --git a/src/components/v-button/v-button.vue b/src/components/v-button/v-button.vue index f5898dcff7..e1830616e7 100644 --- a/src/components/v-button/v-button.vue +++ b/src/components/v-button/v-button.vue @@ -253,8 +253,8 @@ export default defineComponent({ --v-button-height: 28px; --v-button-font-size: 12px; --v-button-font-weight: 600; + --v-button-min-width: 60px; - min-width: 60px; padding: 0 12px; border-radius: 4px; } @@ -262,23 +262,23 @@ export default defineComponent({ &.small { --v-button-height: 36px; --v-button-font-size: 14px; + --v-button-min-width: 120px; - min-width: 120px; padding: 0 12px; } &.large { --v-button-height: 52px; + --v-button-min-width: 154px; - min-width: 154px; padding: 0 12px; } &.x-large { --v-button-height: 64px; --v-button-font-size: 18px; + --v-button-min-width: 180px; - min-width: 180px; padding: 0 12px; } diff --git a/src/components/v-card/v-card-actions.vue b/src/components/v-card/v-card-actions.vue index 5dfb61bcc6..c17a11bc55 100644 --- a/src/components/v-card/v-card-actions.vue +++ b/src/components/v-card/v-card-actions.vue @@ -9,7 +9,7 @@ padding: var(--v-card-padding); & ::v-deep > .v-button + .v-button { - margin-left: 8px; + margin-left: 12px; } } diff --git a/src/components/v-card/v-card-text.vue b/src/components/v-card/v-card-text.vue index fbbc250450..448ac10f37 100644 --- a/src/components/v-card/v-card-text.vue +++ b/src/components/v-card/v-card-text.vue @@ -6,5 +6,6 @@ .v-card-text { padding: var(--v-card-padding); padding-top: 0; + padding-bottom: 12px; } diff --git a/src/components/v-dialog/v-dialog.vue b/src/components/v-dialog/v-dialog.vue index 6da40c2fca..36f7179f41 100644 --- a/src/components/v-dialog/v-dialog.vue +++ b/src/components/v-dialog/v-dialog.vue @@ -79,6 +79,7 @@ export default defineComponent({ ::v-deep .v-card { --v-card-min-width: 540px; --v-card-padding: 20px; + --v-card-background-color: var(--background-page); } ::v-deep .v-sheet { diff --git a/src/components/v-list/v-list-group.vue b/src/components/v-list/v-list-group.vue index fd30a3c7b5..4f5f5400c1 100644 --- a/src/components/v-list/v-list-group.vue +++ b/src/components/v-list/v-list-group.vue @@ -4,7 +4,7 @@ - + @@ -64,7 +64,7 @@ export default defineComponent({ transition: transform var(--medium) var(--transition); &.active { - transform: rotate(-90deg); + transform: rotate(90deg); } } diff --git a/src/components/v-pagination/v-pagination.vue b/src/components/v-pagination/v-pagination.vue index 609a4b4b7f..62dd2a4777 100644 --- a/src/components/v-pagination/v-pagination.vue +++ b/src/components/v-pagination/v-pagination.vue @@ -1,58 +1,49 @@