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
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
c536f39462601d1350f16ab5fa5dc5e34bf9a2ce
2 parents
29c64767
a485a38a
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
29 deletions
static/sass/home/_goods-category.scss
static/sass/home/_hot-category.scss
template/m.yohobuy.com/partials/home/goods_category.phtml
static/sass/home/_goods-category.scss
View file @
c536f39
...
...
@@ -44,21 +44,20 @@
float
:
left
;
width
:
191rem
/
$pxConvertRem
;
height
:
181rem
/
$pxConvertRem
;
padding
:
(
10rem
/
$pxConvertRem
)
0
0
;
border-left
:
1px
solid
#e0e0e0
;
border-bottom
:
1px
solid
#e0e0e0
;
.first-show
{
display
:
none
;
}
.img-box
{
display
:
flex
;
display
:
-
webkit-flex
;
height
:
140rem
/
$pxConvertRem
;
align-items
:
center
;
justify-content
:
center
;
height
:
100%
;
line-height
:
100%
;
text-align
:
center
;
img
{
max-width
:
100%
;
max-height
:
100%
;
width
:
100%
;
height
:
100%
;
vertical-align
:
middle
;
}
}
.category-name
{
...
...
@@ -70,22 +69,7 @@
}
li
:first-child
{
width
:
253rem
/
$pxConvertRem
;
height
:
335rem
/
$pxConvertRem
;
border-left
:
none
;
padding
:
(
48rem
/
$pxConvertRem
)
0
0
0
;
.first-show
{
display
:
block
;
line-height
:
44rem
/
$pxConvertRem
;
font-size
:
30rem
/
$pxConvertRem
;
color
:
#444
;
text-align
:
center
;
}
.img-box
{
height
:
220rem
/
$pxConvertRem
;
}
.category-name
{
line-height
:
40rem
/
$pxConvertRem
;
font-size
:
22rem
/
$pxConvertRem
;
}
height
:
382rem
/
$pxConvertRem
;
border-left
:
none
;
}
}
\ No newline at end of file
...
...
static/sass/home/_hot-category.scss
View file @
c536f39
...
...
@@ -20,7 +20,8 @@
border-left
:
1px
solid
#e0e0e0
;
.img-box
{
width
:
100%
;
height
:
138rem
/
$pxConvertRem
;
height
:
100%
;
line-height
:
138rem
/
$pxConvertRem
;
text-align
:
center
;
vertical-align
:
middle
;
img
{
...
...
template/m.yohobuy.com/partials/home/goods_category.phtml
View file @
c536f39
...
...
@@ -21,9 +21,8 @@
{
{#
list
}
}
<li>
<a
href=
"{{url}}"
>
<p
class=
"first-show"
>推荐品类</p>
<div
class=
"img-box"
>
<img
src
=
"{{img}}"
alt=
""
>
<img
class=
"lazy"
data-original
=
"{{img}}"
alt=
""
>
</div>
<p
class=
"category-name"
>
{
{textCn
}
}</p>
</a>
...
...
Please
register
or
login
to post a comment