diff --git a/src/public/favicon.ico b/src/public/favicon.ico deleted file mode 100644 diff --git a/src/public/images/favicon.ico b/src/public/images/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@ { @@ -71,8 +75,10 @@ }) router.afterEach((to, from) => { - // Remove the (old) error page when changing a page - $('#error-page').remove() + // When changing a page remove old: + // - error page + // - modal backdrop + $('#error-page,.modal-backdrop.show').remove() }) /** diff --git a/src/resources/sass/app.scss b/src/resources/sass/app.scss --- a/src/resources/sass/app.scss +++ b/src/resources/sass/app.scss @@ -1,11 +1,5 @@ -// Fonts - -// Variables @import 'variables'; - -// Bootstrap -@import '~bootstrap/scss/bootstrap'; - +@import 'bootstrap'; @import 'menu'; @import 'toast'; @import 'forms'; @@ -149,6 +143,10 @@ padding-right: 0; } } + + button { + line-height: 1; + } } .btn-action { @@ -266,15 +264,66 @@ } } -// Bootstrap style fix -.btn-link { - border: 0; -} +// Various improvements for mobile +@include media-breakpoint-down(sm) { + .card { + border: 0; + } -.table thead th { - border: 0; -} + .card-body { + padding: 0.5rem 0; + } + + .form-group { + margin-bottom: 0.5rem; + } + + .tab-content { + margin-top: 0.5rem; + } + + .col-form-label { + color: #666; + font-size: 95%; + } + + .form-group.plaintext .col-form-label { + padding-bottom: 0; + } + + form.read-only.short label { + width: 35%; -small { - font-size: 0.875em; + & + * { + width: 65%; + } + } + + #app > div.container { + margin-bottom: 1rem; + margin-top: 1rem; + } + + #header-menu-navbar { + padding: 0; + } + + #dashboard-nav > a { + width: 135px; + } + + .table-sm:not(.form-list) { + tbody td { + padding: 0.75rem 0.5rem; + + svg { + vertical-align: -0.175em; + } + + & > svg { + font-size: 125%; + margin-right: 0.25rem; + } + } + } } diff --git a/src/resources/sass/bootstrap.scss b/src/resources/sass/bootstrap.scss new file mode 100644 --- /dev/null +++ b/src/resources/sass/bootstrap.scss @@ -0,0 +1,15 @@ +// Bootstrap +@import '~bootstrap/scss/bootstrap'; + +// Bootstrap style fixes +.btn-link { + border: 0; +} + +.table thead th { + border: 0; +} + +small { + font-size: 0.875em; +} diff --git a/src/resources/sass/forms.scss b/src/resources/sass/forms.scss --- a/src/resources/sass/forms.scss +++ b/src/resources/sass/forms.scss @@ -1,4 +1,3 @@ - .list-input { & > div { &:not(:last-child) { @@ -23,6 +22,10 @@ input.is-invalid { z-index: 2; } + + .btn svg { + vertical-align: middle; + } } .range-input { diff --git a/src/resources/sass/menu.scss b/src/resources/sass/menu.scss --- a/src/resources/sass/menu.scss +++ b/src/resources/sass/menu.scss @@ -116,6 +116,16 @@ @include media-breakpoint-down(sm) { #header-menu { padding: 0 1em; + + .navbar-nav { + display: block; + width: 100%; + padding: 0; + + li { + border-top: 1px solid #eee; + } + } } #footer-menu { diff --git a/src/resources/sass/toast.scss b/src/resources/sass/toast.scss --- a/src/resources/sass/toast.scss +++ b/src/resources/sass/toast.scss @@ -5,6 +5,11 @@ margin: 0.5rem; width: 320px; z-index: 1055; // above Bootstrap's modal backdrop and dialogs + + @media (max-width: 375px) { + left: 0; + width: auto; + } } .toast { @@ -13,6 +18,10 @@ &:not(:last-child) { margin-bottom: 0.3rem; } + + @media (max-width: 375px) { + max-width: 100%; + } } .toast-header { diff --git a/src/resources/views/layouts/app.blade.php b/src/resources/views/layouts/app.blade.php --- a/src/resources/views/layouts/app.blade.php +++ b/src/resources/views/layouts/app.blade.php @@ -9,6 +9,7 @@ {{ config('app.name') }} -- @yield('title') {{-- TODO: PWA disabled for now: @laravelPWA --}} + diff --git a/src/resources/vue/Admin/User.vue b/src/resources/vue/Admin/User.vue --- a/src/resources/vue/Admin/User.vue +++ b/src/resources/vue/Admin/User.vue @@ -4,8 +4,8 @@

{{ user.email }}

-
-
+ +
@@ -13,7 +13,7 @@
-
+
@@ -21,7 +21,7 @@
-
+
@@ -29,31 +29,31 @@
-
+
{{ user.first_name }}
-
+
{{ user.last_name }}
-
+
{{ user.organization }}
-
+
{{ user.phone }}
-
+
@@ -62,13 +62,13 @@
-
+
{{ user.billing_address }}
-
+
{{ user.country }} @@ -114,7 +114,7 @@

Account balance {{ $root.price(wallet.balance) }}

- +
@@ -212,7 +212,7 @@ - + {{ domain.namespace }} @@ -238,7 +238,7 @@ - + {{ item.email }} @@ -319,7 +319,7 @@