From a2b61301500fab91d34d9c73a6ee0969a3e2730f Mon Sep 17 00:00:00 2001 From: Jay_Makwana Date: Fri, 15 Nov 2019 20:55:25 +0530 Subject: [PATCH] refactor reponsive invoice and estimate crater styles --- .../assets/js/views/estimates/Create.vue | 13 +++++----- resources/assets/js/views/invoices/Create.vue | 14 +++++------ .../assets/sass/pages/estimates/create.scss | 22 +++++++++++++++++ .../assets/sass/pages/invoices/create.scss | 24 +++++++++++++++++++ 4 files changed, 60 insertions(+), 13 deletions(-) diff --git a/resources/assets/js/views/estimates/Create.vue b/resources/assets/js/views/estimates/Create.vue index 5f5a83ad..39ab8557 100644 --- a/resources/assets/js/views/estimates/Create.vue +++ b/resources/assets/js/views/estimates/Create.vue @@ -11,13 +11,14 @@
- + {{ $t('general.view_pdf') }} {{ $t('estimates.save_estimate') }} @@ -25,7 +26,7 @@
-
+
-
+
{{ $t('validation.required') }}
-
+
-
+
{{ $tc('estimates.errors.required') }}
-
+
{{ $t('invoices.new_invoice') }}
- + {{ $t('general.view_pdf') }} {{ $t('invoices.save_invoice') }}
-
+
@@ -101,7 +102,7 @@
-
+
{{ $t('validation.required') }}
-
+
-
+
{{ $tc('validation.required') }}
-
+
- diff --git a/resources/assets/sass/pages/estimates/create.scss b/resources/assets/sass/pages/estimates/create.scss index cf767f0f..9a419e04 100644 --- a/resources/assets/sass/pages/estimates/create.scss +++ b/resources/assets/sass/pages/estimates/create.scss @@ -545,6 +545,27 @@ } @media (max-width: $x-small-breakpoint) { + .page-header { + margin-bottom: 13px; + + .invoice-action-btn { + width: 100%; + display: flex; + justify-content: center; + margin-top: 15px; + margin-right: 0px !important; + } + + } + + .estimate-customer-container { + padding-right: 0px; + } + + .collapse-input { + padding-right: 0px; + } + .page-actions { position: relative; -webkit-transform: none; @@ -582,6 +603,7 @@ } .estimate-total { + min-width: 346px; margin-top: 25px; } diff --git a/resources/assets/sass/pages/invoices/create.scss b/resources/assets/sass/pages/invoices/create.scss index d7d1fffc..87564083 100644 --- a/resources/assets/sass/pages/invoices/create.scss +++ b/resources/assets/sass/pages/invoices/create.scss @@ -25,6 +25,7 @@ margin: 0 0 0 14px; } } + } .invoice-input { @@ -549,6 +550,28 @@ } @media (max-width: $x-small-breakpoint) { + + .page-header { + margin-bottom: 13px; + + .invoice-action-btn { + width: 100%; + display: flex; + justify-content: center; + margin-top: 15px; + margin-right: 0px !important; + } + + } + + .invoice-customer-container { + padding-right: 0px; + } + + .collapse-input { + padding-right: 0px; + } + .page-actions { position: relative; -webkit-transform: none; @@ -586,6 +609,7 @@ } .invoice-total { + min-width: 346px; margin-top: 25px; }