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
4af9968f
Commit
4af9968f
authored
Apr 12, 2023
by
liumengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化详情页面尺码标题和SKU样式
parent
3da2f945
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
22 deletions
+39
-22
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
+4
-5
app/design/frontend/Joshine/breeze/web/css/_custom.less
+35
-17
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
View file @
4af9968f
...
@@ -170,13 +170,12 @@
...
@@ -170,13 +170,12 @@
<style>
<style>
@media
(
min-width
:
1024px
){
@media
(
min-width
:
1024px
){
#product-intro__freeshipping-more-3
{
#product-intro__freeshipping-more-3
{
display
:
inline-block
;
display
:
revert
;
display
:
inline-block
;
color
:
#2d68a
;
color
:
#2d68a
;
font-size
:
12px
;
font-size
:
large
;
line-height
:
1
;
float
:
right
;
float
:
right
;
margin-top
:
10px
;
margin-top
:
0px
;
text-decoration
:
underline
;
}
}
.action.primary.tocart
{
.action.primary.tocart
{
font-size
:
18px
;
font-size
:
18px
;
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
4af9968f
...
@@ -537,8 +537,14 @@ ul {
...
@@ -537,8 +537,14 @@ ul {
font-size: 14px;
font-size: 14px;
}
}
.product-info-price .price-box {
margin-top: 20px;
margin-bottom: 20px;
}
.product-info-wrapper .price-final_price .price{
.product-info-wrapper .price-final_price .price{
font-size: 24px;
font-size: 30px;
font-weight: 700;
font-family: auto;
}
}
.product-info-wrapper{
.product-info-wrapper{
display: grid;
display: grid;
...
@@ -2247,14 +2253,17 @@ button.action.submit.primary {
...
@@ -2247,14 +2253,17 @@ button.action.submit.primary {
//选择label样式
//选择label样式
.swatch-attribute-label{
.swatch-attribute-label{
margin-right: 0.25rem;
margin-right: 1rem;
font-size: 16px;
font-weight: 500;
font-weight: 700;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
margin-bottom: revert;
font-size: larger;
}
}
.swatch-attribute {
margin-bottom: 1.5rem !important;
}
#product-intro__freeshipping-more-3{
#product-intro__freeshipping-more-3{
...
@@ -2268,10 +2277,10 @@ button.action.submit.primary {
...
@@ -2268,10 +2277,10 @@ button.action.submit.primary {
//详情页mobile修改
//详情页mobile修改
@media (max-width: 1024px){
@media (max-width: 1024px){
.product-info-wrapper .page-title span.base {
.product-info-wrapper .page-title span.base {
font-size: 2
0
px;
font-size: 2
2
px;
float: left;
float: left;
margin-left: -10px;
margin-left: -10px;
font-weight:
4
00;
font-weight:
5
00;
}
}
.product-info-wrapper .price-final_price .price {
.product-info-wrapper .price-final_price .price {
...
@@ -2327,31 +2336,30 @@ button.action.submit.primary {
...
@@ -2327,31 +2336,30 @@ button.action.submit.primary {
width: 30px !important;
width: 30px !important;
height: 30px !important;
height: 30px !important;
background-clip: content-box!important;
background-clip: content-box!important;
padding: 1px;
padding: 3px;
border: 1px solid rgba(23,23,23,0.3);
}
}
.product-info-main .swatch-option.color, .swatch-option.image{
.product-info-main .swatch-option.color, .swatch-option.image{
margin-right:
3%
!important;
margin-right:
10px
!important;
}
}
.swatch-option.color.selected{
.swatch-option.color.selected{
border:
2
px solid black!important;
border:
1
px solid black!important;
}
}
.swatch-option.image.selected{
.swatch-option.image.selected{
border:
2
px solid black!important;
border:
1
px solid black!important;
}
}
.swatch-option.text{
.swatch-option.text{
width: auto!important;
width: auto!important;
padding: calc( 8.5px) calc( 11px);
padding: calc( 8.5px) calc( 11px);
line-height:10px!important;
line-height:10px!important;
min-width:
4
0px;
min-width:
7
0px;
text-align: center;
text-align: center;
font-size: 15px;
font-size: 15px;
background: none!important;
background: none!important;
border:
2
px solid rgba(23, 23, 23, 0.3);
border:
1
px solid rgba(23, 23, 23, 0.3);
border-radius: 15px;
border-radius: 15px;
margin-right: 10px;
margin-right: 10px;
}
}
...
@@ -2542,6 +2550,10 @@ button.action.submit.primary {
...
@@ -2542,6 +2550,10 @@ button.action.submit.primary {
display: none;
display: none;
}
}
.stock.available {
display: none;
}
//product view right
//product view right
@media(min-width: 1024px) {
@media(min-width: 1024px) {
.page-main>.columns>.sidebar-main{
.page-main>.columns>.sidebar-main{
...
@@ -2553,9 +2565,7 @@ button.action.submit.primary {
...
@@ -2553,9 +2565,7 @@ button.action.submit.primary {
width: 100%;
width: 100%;
}
}
.product-info-wrapper .page-title span.base{
.product-info-wrapper .page-title span.base{
font-size: 20px;
font-size: 18px;
font-weight: 400;
color: #292929;
padding-bottom: 1px;
padding-bottom: 1px;
margin-bottom: 0;
margin-bottom: 0;
line-height: 0px;
line-height: 0px;
...
@@ -2955,6 +2965,14 @@ tr.grand.totals {
...
@@ -2955,6 +2965,14 @@ tr.grand.totals {
}
}
}
}
.product-info-stock-sku {
display: flex;
align-items: center;
gap: 0.5rem;
border-bottom: 1px solid lightgrey;
padding-bottom: 10px;
font-size: 12px;
}
.swatch-option.selected:before{
.swatch-option.selected:before{
box-shadow:none;
box-shadow:none;
...
...
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