Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
1119f305
Commit
1119f305
authored
Oct 25, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化详情页自适应
parent
3c209fad
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
16 deletions
+36
-16
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
+2
-2
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/gallery.phtml
+9
-3
app/design/frontend/Joshine/breeze/Magento_Catalog/web/js/catalog-add-to-cart.js
+1
-1
app/design/frontend/Joshine/breeze/Magento_Newsletter/templates/subscribe.phtml
+6
-0
app/design/frontend/Joshine/breeze/web/css/_custom.less
+18
-10
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
View file @
1119f305
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
height
:
55px
;
height
:
55px
;
width
:
300px
;
width
:
300px
;
}
}
@media
(
max-width
:
780
px
){
@media
(
max-width
:
1024
px
){
#product-intro__freeshipping-more-3
{
#product-intro__freeshipping-more-3
{
margin-top
:
7px
;
margin-top
:
7px
;
float
:
right
;
float
:
right
;
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
font-weight
:
500
;
font-weight
:
500
;
}
}
}
}
@media
(
min-width
:
780
px
)
{
@media
(
min-width
:
1024
px
)
{
#wishlist
{
#wishlist
{
width
:
10%
;
width
:
10%
;
float
:
left
;
float
:
left
;
...
...
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/gallery.phtml
View file @
1119f305
...
@@ -27,12 +27,12 @@ $sizes = $responsiveImageHelper->getSizes('product_page_image_medium');
...
@@ -27,12 +27,12 @@ $sizes = $responsiveImageHelper->getSizes('product_page_image_medium');
$thumbSizes
=
$responsiveImageHelper
->
getSizes
(
'product_page_image_small'
);
$thumbSizes
=
$responsiveImageHelper
->
getSizes
(
'product_page_image_small'
);
?>
?>
<style>
<style>
@media
(
min-width
:
768
px
){
@media
(
min-width
:
1024
px
){
.main-image-wrapper
.mobile-pic
{
.main-image-wrapper
.mobile-pic
{
display
:
none
!important
;
display
:
none
!important
;
}
}
}
}
@media
(
max-width
:
768
px
){
@media
(
max-width
:
1024
px
){
.main-image-wrapper
>
img
{
.main-image-wrapper
>
img
{
display
:
none
;
display
:
none
;
}
}
...
@@ -60,6 +60,11 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
...
@@ -60,6 +60,11 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
--container-max-width
:
80%
;
--container-max-width
:
80%
;
}
}
}
}
@media
(
min-width
:
768px
)
{
.breadcrumbs
ul
{
width
:
80%
;
}
}
</style>
</style>
...
@@ -195,6 +200,7 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
...
@@ -195,6 +200,7 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
margin-top
:
-20px
;
margin-top
:
-20px
;
}
}
}
}
</style>
</style>
<script>
<script>
require
([
require
([
...
...
app/design/frontend/Joshine/breeze/Magento_Catalog/web/js/catalog-add-to-cart.js
View file @
1119f305
...
@@ -224,7 +224,7 @@ define([
...
@@ -224,7 +224,7 @@ define([
},
1000
);
},
1000
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$
(
'[data-block="minicart"]'
).
find
(
'[data-role="dropdownDialog"]'
).
dropdownDialog
(
'open'
);
$
(
'[data-block="minicart"]'
).
find
(
'[data-role="dropdownDialog"]'
).
dropdownDialog
(
'open'
);
},
3
000
);
},
2
000
);
}
}
...
...
app/design/frontend/Joshine/breeze/Magento_Newsletter/templates/subscribe.phtml
View file @
1119f305
...
@@ -158,6 +158,12 @@
...
@@ -158,6 +158,12 @@
border-radius
:
50%
;
border-radius
:
50%
;
}
}
}
}
@media
(
max-width
:
1280px
)
{
.actions
.subscribe
{
width
:
33%
;
}
}
</style>
</style>
<script
type=
"text/x-magento-init"
>
<script
type=
"text/x-magento-init"
>
{
{
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
1119f305
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
margin-right: auto !important;
margin-right: auto !important;
max-width: 1280px;
max-width: 1280px;
}
}
@media (max-width:
767
px){
@media (max-width:
1024
px){
.box-tocart .fieldset .actions
.box-tocart .fieldset .actions
{
{
position: fixed;
position: fixed;
...
@@ -107,9 +107,19 @@
...
@@ -107,9 +107,19 @@
padding-left: 10px;
padding-left: 10px;
}
}
.box-tocart .fieldset .actions > button{
.box-tocart .fieldset .actions > button{
width: 8
0%
;
width: 8
5% !important
;
float: right;
float: right;
margin-left: 20%;
margin-left: 15%;
}
.action.primary.tocart {
font-size: 18px;
background-color: #000;
max-width: 100%;
font-weight: 600;
height: 55px;
width: 90% !important;
margin-left: 10%;
}
}
.block .review-add .block-content{
.block .review-add .block-content{
...
@@ -241,7 +251,7 @@ footer .footer_link{
...
@@ -241,7 +251,7 @@ footer .footer_link{
font-family: 'Outfit-Regular';
font-family: 'Outfit-Regular';
}
}
@media screen and (max-width:
789
px) {
@media screen and (max-width:
1024
px) {
.footer_link > div{
.footer_link > div{
width: 100%;
width: 100%;
}
}
...
@@ -1955,25 +1965,22 @@ button.action.submit.primary {
...
@@ -1955,25 +1965,22 @@ button.action.submit.primary {
}
}
//详情页mobile修改
//详情页mobile修改
@media (max-width:
780
px){
@media (max-width:
1024
px){
.product-info-stock-sku{
.product-info-stock-sku{
display: none;
display: none;
}
}
.product-info-wrapper .page-title span.base {
.product-info-wrapper .page-title span.base {
color: #999999;
font-size: medium;
font-size: medium;
float: left;
float: left;
margin-left: -10px;
margin-left: -10px;
letter-spacing: inherit;
letter-spacing: inherit;
font-weight: 100;
}
}
.product-info-wrapper .price-final_price .price {
.product-info-wrapper .price-final_price .price {
color: #000;
color: #000;
}
}
.product-info-price .price-box{
margin-top: -15px;
}
.price-final_price .old-price .price{
.price-final_price .old-price .price{
color: #999999;
color: #999999;
...
@@ -2054,7 +2061,7 @@ border-radius: 50% !important;;
...
@@ -2054,7 +2061,7 @@ border-radius: 50% !important;;
display: none !important;
display: none !important;
}
}
@media (max-width:
768
px){
@media (max-width:
1024
px){
#product-options-wrapper .swatch-option.image{
#product-options-wrapper .swatch-option.image{
width: 30px !important;;
width: 30px !important;;
height: 30px !important;;
height: 30px !important;;
...
@@ -2282,3 +2289,4 @@ span.swatch-attribute-selected-option{
...
@@ -2282,3 +2289,4 @@ span.swatch-attribute-selected-option{
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment