From 0094116ef95d4b0c8ca1664e3d2fb2586798261c Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 15 Aug 2022 18:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=8D=E5=BA=94=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/build/beike/shop/default/css/app.css | 12 +++++++-- resources/beike/shop/default/css/global.scss | 3 +++ .../default/css/page-account-address.scss | 25 ++++++++++++------- themes/default/cart/cart.blade.php | 4 +-- themes/default/shared/address-form.blade.php | 6 ++--- 5 files changed, 34 insertions(+), 16 deletions(-) diff --git a/public/build/beike/shop/default/css/app.css b/public/build/beike/shop/default/css/app.css index 946e9ea6..df482316 100644 --- a/public/build/beike/shop/default/css/app.css +++ b/public/build/beike/shop/default/css/app.css @@ -1286,14 +1286,22 @@ body.page-account-address .addresses-wrap .item .address-bottom, body.page-check body.page-account-address .addresses-wrap .item .address-bottom a, body.page-checkout .addresses-wrap .item .address-bottom a { color: #2d68a8; } +body.page-account-address .mobileWidth, body.page-checkout .mobileWidth { + width: 600px; +} @media (max-width: 768px) { - body.page-account-address .dialog-margin, body.page-checkout .dialog-margin { - margin-top: 10px; + body.page-account-address .mobileWidth, body.page-checkout .mobileWidth { + width: 95%; } } body.page-account-address .dialog-address, body.page-checkout .dialog-address { display: block; } +@media (max-width: 768px) { + body.page-account-address .dialog-address > div, body.page-checkout .dialog-address > div { + width: 100%; + } +} @media (min-width: 768px) { body.page-account-address .dialog-address, body.page-checkout .dialog-address { display: flex; diff --git a/resources/beike/shop/default/css/global.scss b/resources/beike/shop/default/css/global.scss index f0f4799c..6c31f663 100644 --- a/resources/beike/shop/default/css/global.scss +++ b/resources/beike/shop/default/css/global.scss @@ -249,4 +249,7 @@ body[class^="page-account-"] { } } } + } + + diff --git a/resources/beike/shop/default/css/page-account-address.scss b/resources/beike/shop/default/css/page-account-address.scss index c54744dd..9fd9fb0a 100644 --- a/resources/beike/shop/default/css/page-account-address.scss +++ b/resources/beike/shop/default/css/page-account-address.scss @@ -70,23 +70,30 @@ body.page-account-address, body.page-checkout { } } - // .dialog-width { - // margin: 0 auto; - // width: 90%; - // } - - .dialog-margin { - @media (max-width:768px) { - margin-top: 10px; + .mobileWidth { + width: 600px; + @media (max-width: 768px) { + width: 95%; + } } - } .dialog-address { display: block; + >div { + @media (max-width:768px) { + width: 100%; + // margin-bottom: 10px; + // &:nth-last-child(){ + // margin-bottom: 0; + // } + } + } + @media (min-width:768px) { display: flex; } } + } \ No newline at end of file diff --git a/themes/default/cart/cart.blade.php b/themes/default/cart/cart.blade.php index 196ba354..da236935 100644 --- a/themes/default/cart/cart.blade.php +++ b/themes/default/cart/cart.blade.php @@ -16,7 +16,7 @@
-
+
@@ -38,7 +38,7 @@
- {{-- --}} +
diff --git a/themes/default/shared/address-form.blade.php b/themes/default/shared/address-form.blade.php index beddfe7d..4e6ab7c7 100644 --- a/themes/default/shared/address-form.blade.php +++ b/themes/default/shared/address-form.blade.php @@ -4,7 +4,7 @@ $address_form_rules = $address_form_rules ?? 'addressRules'; @endphp - + @@ -23,7 +23,7 @@ -
+
-
+