Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
e9832fe55b66f23180ca75865438bcf5634ff135
1 parent
ab219d5e
fix classic brand img size issue
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
apps/channel/views/partial/ad-banner.hbs
apps/channel/views/partial/brand-img-box.hbs
public/scss/channel/_brand-img-box.css
apps/channel/views/partial/ad-banner.hbs
View file @
e9832fe
<div
class=
"ad-banner"
>
{{#
adBanner
}}
<a
href=
"
{{
url
}}
"
>
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
<img
class=
"lazy-img"
data-original=
"
{{
image
src
1150
160
}}
"
title=
"
{{
title
}}
"
alt=
"
{{
alt
}}
"
>
</a>
{{/
adBanner
}}
...
...
apps/channel/views/partial/brand-img-box.hbs
View file @
e9832fe
...
...
@@ -2,10 +2,10 @@
<div
class=
"brand-img-box
{{#if
right
}}
right
{{/if}}
{{#if
bottomSpace
}}
mb10
{{/if}}
"
>
<a
href=
"
{{
url
}}
"
>
{{#
big
}}
<img
class=
"big-img lazy-img"
data-original=
"
{{
image
src
5
56
333
}}
"
alt=
"big-img"
>
<img
class=
"big-img lazy-img"
data-original=
"
{{
image
src
5
65
340
}}
"
alt=
"big-img"
>
{{/
big
}}
{{#
small
}}
<img
class=
"small-img lazy-img
{{#if
@first
}}
first
{{/if}}
"
data-original=
"
{{
image
src
28
3
283
}}
"
alt=
"big-img"
>
<img
class=
"small-img lazy-img
{{#if
@first
}}
first
{{/if}}
"
data-original=
"
{{
image
src
28
1
285
}}
"
alt=
"big-img"
>
{{/
small
}}
</a>
</div>
...
...
public/scss/channel/_brand-img-box.css
View file @
e9832fe
...
...
@@ -21,10 +21,10 @@
}
.small-img
{
width
:
50%
;
width
:
281px
;
height
:
285px
;
display
:
inline-block
;
box-sizing
:
border
-box
;
box-sizing
:
content
-box
;
border
:
1px
solid
$
grayBorder
;
border-top
:
none
;
...
...
Please
register
or
login
to post a comment