From 14de4b27673870c0f4a577834fe90abab6a3f843 Mon Sep 17 00:00:00 2001 From: Csaky Date: Tue, 21 Nov 2023 17:23:44 -0800 Subject: [PATCH] visual css adjustments after review --- app/app.ts | 2 +- frontend/src/assets/main.scss | 24 ++- frontend/src/assets/primevue.scss | 170 ------------------ .../src/components/bucket/BucketTable.vue | 8 +- .../components/object/ObjectFileDetails.vue | 2 +- .../src/components/object/ObjectMetadata.vue | 2 +- .../object/ObjectMetadataTagForm.vue | 4 +- .../src/components/object/ObjectTable.vue | 11 +- frontend/src/components/object/ObjectTag.vue | 2 +- .../components/object/ObjectUploadBasic.vue | 7 +- .../components/object/ObjectUploadFile.vue | 2 +- .../src/components/object/ObjectVersion.vue | 11 +- .../object/share/ShareLinkContent.vue | 2 +- .../object/share/ShareObjectButton.vue | 2 +- frontend/src/views/HomeView.vue | 12 +- .../unit/components/layout/Footer.spec.ts | 1 - 16 files changed, 56 insertions(+), 206 deletions(-) delete mode 100644 frontend/src/assets/primevue.scss diff --git a/app/app.ts b/app/app.ts index d3ea43d6..830e8db3 100644 --- a/app/app.ts +++ b/app/app.ts @@ -50,7 +50,7 @@ appRouter.get('/config', (_req: Request, res: Response, next: (err: unknown) => ...config.get('frontend'), gitRev: state.gitRev, idpList: state.idpList, - version: process.env.npm_package_version + version: appVersion }); } catch (err) { next(err); diff --git a/frontend/src/assets/main.scss b/frontend/src/assets/main.scss index b93fc89e..3f32eeb0 100644 --- a/frontend/src/assets/main.scss +++ b/frontend/src/assets/main.scss @@ -30,6 +30,7 @@ body { "Droid Sans", "Helvetica Neue", sans-serif; + line-height: 1.6; font-weight: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; @@ -66,7 +67,6 @@ h5 { } p { - line-height: 1.5rem; margin-top: 0; } @@ -114,7 +114,7 @@ a:visited { margin: 1rem 5rem 1rem 5rem; } @media screen and (min-width: 1600px) { - margin: 1rem 10% 1rem 10%; + margin: 1rem 15% 1rem 15%; } } @@ -159,6 +159,7 @@ a:visited { } .p-button { + border-width: 2px; &:not(.p-button-secondary, .p-button-success, .p-button-info, .p-button-warning, .p-button-help, .p-button-danger) { color: $bcbox-primary; &:not(.p-button-outlined, .p-button-text) { @@ -233,9 +234,20 @@ a:visited { justify-content: right; } + .header-center .p-column-header-content { + justify-content: center; + } + .content-center { + text-align: center !important; + } + .header-right .p-column-header-content { + justify-content: right; + } .action-buttons { text-align: right; + // width: 150px; } + .action-buttons .p-button { padding: 0; margin-left: 1rem; @@ -257,6 +269,7 @@ a:visited { /* modals */ .bcbox-info-dialog { + width: 800px; .p-dialog-header { padding-bottom: 0; @@ -291,6 +304,13 @@ a:visited { justify-content: left; } +.p-tabview-header.p-disabled .p-tabview-nav-link { + color: gray; +} +.p-tabview-header:not(.p-disabled) .p-tabview-nav-link { + border-color: $bcbox-link-text; +} + /* side panel */ .side-panel { diff --git a/frontend/src/assets/primevue.scss b/frontend/src/assets/primevue.scss deleted file mode 100644 index af598ab2..00000000 --- a/frontend/src/assets/primevue.scss +++ /dev/null @@ -1,170 +0,0 @@ -.header-center .p-column-header-content { - justify-content: center; -} - -// For datatables -.header-right .p-column-header-content { - justify-content: right; -} - -// For treetables -.header-right .p-column-title { - display: flex; - justify-content: right; -} - -.p-dialog-footer { - display: flex; - flex-direction: row-reverse; -} - -.p-datatable { - .p-datatable-thead > tr > th { - background-color: transparent !important; - } - - &.p-datatable-striped .p-datatable-tbody > tr { - &:nth-child(even) { - background-color: $bcbox-table-stripe-background; - } - } - - tbody { - tr { - &.p-highlight { - background: $bcbox-highlight-background !important; - } - - &:focus { - outline: none !important; - } - } - } - - .p-checkbox { - .p-checkbox-box.p-highlight { - background-color: $bcbox-primary; - border-color: $bcbox-primary !important; - - &:hover { - background-color: darken($bcbox-primary, 20%) !important; - } - } - } - - .p-column-title { - font-weight: bold; - } - - .p-paginator { - justify-content: right; - } - - .action-buttons .p-button.p-button-lg { - padding: 0; - margin-left: 1rem; - } -} - -.p-treetable { - .p-treetable-thead > tr > th { - background-color: transparent !important; - } - - tbody { - tr { - &.p-highlight { - background: $bcbox-highlight-background !important; - } - - &:focus { - outline: none !important; - } - } - } - - .p-checkbox { - .p-checkbox-box.p-highlight { - background-color: $bcbox-primary; - border-color: $bcbox-primary !important; - - &:hover { - background-color: darken($bcbox-primary, 20%) !important; - } - } - } - - .p-column-title { - font-weight: bold; - } - - .p-paginator { - justify-content: right; - } - - .action-buttons .p-button.p-button-lg { - padding: 0; - margin-left: 1rem; - } -} - -// Primary color overrides for buttons and action items (checkboxes etc) -// Note this could be eventually replaced by a custom themeing (which has JUST been introduced in Primevue) -// once it is more settled implementation-wise -.p-button { - &:not(.p-button-secondary, .p-button-success, .p-button-info, .p-button-warning, .p-button-help, .p-button-danger) { - color: $bcbox-primary !important; - - &:not(.p-button-outlined, .p-button-text) { - background-color: $bcbox-primary; - border-color: $bcbox-primary; - color: $bcbox-outline-on-primary !important; - } - } -} - -.p-checkbox, -.p-radiobutton { - &.p-checkbox-checked, - &.p-radiobutton-checked { - .p-checkbox-box, - .p-radiobutton-box { - background-color: $bcbox-primary; - border-color: $bcbox-primary !important; - - &:hover { - background-color: darken($bcbox-primary, 20%) !important; - } - } - } -} - -.p-inputswitch.p-inputswitch-checked { - .p-inputswitch-slider { - background-color: $bcbox-primary; - } - - &:not(.p-disabled) { - &:hover { - .p-inputswitch-slider { - background-color: darken($bcbox-primary, 10%) !important; - } - } - } -} - -.p-tag { - background-color: $bcbox-primary; - font-size: 1rem; - padding: 0.25rem 0.75rem; - font-weight: normal; -} - -h1, -h2, -h3, -h4, -h5 { - font-weight: 600; - line-height: 1.2em; -} diff --git a/frontend/src/components/bucket/BucketTable.vue b/frontend/src/components/bucket/BucketTable.vue index 26edfd5b..e42d110e 100644 --- a/frontend/src/components/bucket/BucketTable.vue +++ b/frontend/src/components/bucket/BucketTable.vue @@ -262,7 +262,7 @@ watch(getBuckets, () => { v-if="!getIsLoading" class="flex justify-content-center" > -

There are no buckets associated with your account.

+

There are no buckets associated with your account.