Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
5f003c62329a4507cd1e7c83424d2ec369e2c989
1 parent
aa1323eb
update for change the cart style. code review by LZF
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
22 deletions
static/sass/shopping-cart/_good.scss
template/m.yohobuy.com/partials/shopping-cart/good.phtml
static/sass/shopping-cart/_good.scss
View file @
5f003c6
.shopping-cart-good
{
$cartRed
:
#d0253b
;
position
:
relative
;
padding-left
:
16rem
/
$pxConvertRem
;
...
...
@@ -16,26 +17,30 @@
.info
{
float
:
left
;
margin-left
:
5
0rem
/
$pxConvertRem
;
margin-left
:
3
0rem
/
$pxConvertRem
;
padding
:
16rem
/
$pxConvertRem
0
;
border-bottom
:
1px
solid
#e0e0e0
;
padding-right
:
20rem
/
$pxConvertRem
;
}
.thumb
{
float
:
left
;
width
:
120rem
/
$pxConvertRem
;
height
:
160rem
/
$pxConvertRem
;
width
:
180rem
/
$pxConvertRem
;
height
:
200rem
/
$pxConvertRem
;
background-size
:
100%
;
background-repeat
:
no-repeat
;
}
.deps
{
margin-left
:
135rem
/
$pxConvertRem
;
padding-right
:
20rem
/
$pxConvertRem
;
margin-left
:
173rem
/
$pxConvertRem
;
padding-bottom
:
60rem
/
$pxConvertRem
;
border-bottom
:
1px
solid
#e0e0e0
;
}
.name
{
font-size
:
28rem
/
$pxConvertRem
;
color
:
#5a5a5a
;
}
.row
:nth-child
(
2
)
{
font-size
:
22rem
/
$pxConvertRem
;
height
:
45rem
/
$pxConvertRem
;
...
...
@@ -55,12 +60,14 @@
}
.appear-date
{
color
:
#e01
;
color
:
$cartRed
;
display
:
block
;
margin-top
:
4rem
/
$pxConvertRem
;
}
.price
{
font-size
:
24rem
/
$pxConvertRem
;
color
:
#000
;
color
:
$cartRed
;
}
.count
{
...
...
@@ -78,7 +85,11 @@
border
:
none
;
color
:
#fff
;
text-align
:
center
;
margin-left
:
16rem
/
$pxConvertRem
;
float
:
right
;
margin-top
:
20rem
/
$pxConvertRem
;
margin-right
:
16rem
/
$pxConvertRem
;
border-radius
:
20rem
/
$pxConvertRem
;
padding
:
4rem
/
$pxConvertRem
;
}
.sold-out
{
...
...
@@ -86,7 +97,7 @@
}
.low-stocks
{
background
:
#
e01
;
background
:
#
7f7f7f
;
}
.icon-del
,
...
...
@@ -140,4 +151,10 @@
}
}
}
}
\ No newline at end of file
}
.shopping-cart-good
:last-child
{
.deps
{
border
:
none
;
}
}
...
...
template/m.yohobuy.com/partials/shopping-cart/good.phtml
View file @
5f003c6
...
...
@@ -17,11 +17,6 @@
</span>
{{/if}}
{{#if appearDate}}
<span class="appear-date">
上市期:{{appearDate}}
</span>
{{/if}}
</p>
<p class="row">
<span class="price">
...
...
@@ -36,14 +31,23 @@
</span>
{{/if}}
<span class="iconfont icon-edit"></span>
<span class="iconfont icon-del"></span>
</p>
<p class="row">
{{#if lowStocks}}
<span class="low-stocks">
库存不足
</span>
{{/if}}
<span class="iconfont icon-edit"></span>
<span class="iconfont icon-del"></span>
</p>
<p class="row">
{{#if appearDate}}
<span class="appear-date">
上市期:{{appearDate}}
</span>
{{/if}}
</p>
</div>
</div>
...
...
@@ -58,4 +62,4 @@
删除
</div>
</div>
</div>
\ No newline at end of file
</div>
...
...
Please
register
or
login
to post a comment