From 438802d2f0b905d46e59b7ef2f3a34e60e2923be Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Mon, 6 May 2019 17:18:48 +0200 Subject: [PATCH] feat(admin-ui): Restyle form inputs The single line for input is poor UX in my opinion - it makes inputs look unclear in certain cases. I've restyled form inputs to better match usual styling. Closes #60 --- .../collection-detail.component.html | 58 +++++++------- .../create-option-group-form.component.html | 30 +++---- .../product-list/product-list.component.scss | 4 + .../product-variants-list.component.scss | 3 +- .../customer-detail.component.html | 80 +++++++++---------- .../promotion-detail.component.html | 14 ++-- .../admin-detail/admin-detail.component.html | 65 +++++++-------- .../channel-detail.component.html | 58 +++++++------- .../country-detail.component.html | 28 +++---- .../global-settings.component.html | 52 ++++++------ .../payment-method-detail.component.html | 34 ++++---- .../payment-method-detail.component.ts | 1 + .../role-detail/role-detail.component.html | 39 ++++----- .../shipping-method-detail.component.html | 22 +++-- .../tax-category-detail.component.html | 10 +-- .../tax-rate-detail.component.html | 56 +++++++------ .../affixed-input.component.html | 4 +- .../affixed-input.component.scss | 20 ++++- .../configurable-input.component.scss | 10 +++ .../form-field/form-field.component.html | 4 +- .../form-field/form-field.component.scss | 15 ++++ .../rich-text-editor.component.scss | 5 +- admin-ui/src/styles/_variables.scss | 4 +- admin-ui/src/styles/styles.scss | 52 ++---------- admin-ui/src/styles/theme/_forms.scss | 59 ++++++++++++++ admin-ui/src/styles/theme/_theme.scss | 52 ++++++++++++ 26 files changed, 428 insertions(+), 351 deletions(-) create mode 100644 admin-ui/src/styles/theme/_forms.scss create mode 100644 admin-ui/src/styles/theme/_theme.scss diff --git a/admin-ui/src/app/catalog/components/collection-detail/collection-detail.component.html b/admin-ui/src/app/catalog/components/collection-detail/collection-detail.component.html index 66b4c094da..a7f512e252 100644 --- a/admin-ui/src/app/catalog/components/collection-detail/collection-detail.component.html +++ b/admin-ui/src/app/catalog/components/collection-detail/collection-detail.component.html @@ -32,37 +32,35 @@
-
- - - - - - - - - - + + + + + + + + + + -
- - - - -
+
+ + + +
diff --git a/admin-ui/src/app/catalog/components/create-option-group-form/create-option-group-form.component.html b/admin-ui/src/app/catalog/components/create-option-group-form/create-option-group-form.component.html index 6ccf1b882e..4f81e858a1 100644 --- a/admin-ui/src/app/catalog/components/create-option-group-form/create-option-group-form.component.html +++ b/admin-ui/src/app/catalog/components/create-option-group-form/create-option-group-form.component.html @@ -1,19 +1,15 @@ -
- - - - - - - - - -
+ + + + + + + + + diff --git a/admin-ui/src/app/catalog/components/product-list/product-list.component.scss b/admin-ui/src/app/catalog/components/product-list/product-list.component.scss index a6bad9296a..9c6487b1d4 100644 --- a/admin-ui/src/app/catalog/components/product-list/product-list.component.scss +++ b/admin-ui/src/app/catalog/components/product-list/product-list.component.scss @@ -11,6 +11,10 @@ } .search-form { display: flex; + align-items: center; + .search-input { + margin-right: 6px; + } } .search-input { min-width: 300px; diff --git a/admin-ui/src/app/catalog/components/product-variants-list/product-variants-list.component.scss b/admin-ui/src/app/catalog/components/product-variants-list/product-variants-list.component.scss index c22de6faa1..b61fb3e042 100644 --- a/admin-ui/src/app/catalog/components/product-variants-list/product-variants-list.component.scss +++ b/admin-ui/src/app/catalog/components/product-variants-list/product-variants-list.component.scss @@ -30,6 +30,7 @@ .details { display: flex; + height: 36px; // margin-left: 12px; > div { margin-right: 12px; @@ -40,7 +41,7 @@ } ::ng-deep .name input { - width: 300px; + min-width: 300px; } } diff --git a/admin-ui/src/app/customer/components/customer-detail/customer-detail.component.html b/admin-ui/src/app/customer/components/customer-detail/customer-detail.component.html index dd936aea0f..fb4d2d4683 100644 --- a/admin-ui/src/app/customer/components/customer-detail/customer-detail.component.html +++ b/admin-ui/src/app/customer/components/customer-detail/customer-detail.component.html @@ -6,7 +6,7 @@