Showing
3 changed files
with
7 additions
and
5 deletions
@@ -2,9 +2,8 @@ | @@ -2,9 +2,8 @@ | ||
2 | <div class="slide-wrapper"> | 2 | <div class="slide-wrapper"> |
3 | <ul> | 3 | <ul> |
4 | {{# slider}} | 4 | {{# slider}} |
5 | - <li style="{{#if bgColor}}background:{{bgColor}}{{/if}}"> | ||
6 | <a href="{{url}}" target= "_blank"> | 5 | <a href="{{url}}" target= "_blank"> |
7 | - <img class="lazy" data-original="{{image src 1150 570}}" alt=""> | 6 | + <li class="banner-item" style="{{#if bgColor}}background-color:{{bgColor}}{{/if}}; background-image:url('{{image src 1150 570}}')"> |
8 | </a> | 7 | </a> |
9 | {{# tips}} | 8 | {{# tips}} |
10 | <div class="slide-tips"> | 9 | <div class="slide-tips"> |
1 | .home-page { | 1 | .home-page { |
2 | $sliderHeight: 600px; | 2 | $sliderHeight: 600px; |
3 | 3 | ||
4 | - margin: 10px auto 0; | ||
5 | - | ||
6 | .top-slider-container { | 4 | .top-slider-container { |
7 | height: $sliderHeight; | 5 | height: $sliderHeight; |
8 | } | 6 | } |
@@ -12,6 +10,11 @@ | @@ -12,6 +10,11 @@ | ||
12 | left: 0; | 10 | left: 0; |
13 | right: 0; | 11 | right: 0; |
14 | height: $sliderHeight; | 12 | height: $sliderHeight; |
13 | + | ||
14 | + .banner-item { | ||
15 | + background-position: center; | ||
16 | + background-repeat: no-repeat; | ||
17 | + } | ||
15 | } | 18 | } |
16 | 19 | ||
17 | .slide-pagination { | 20 | .slide-pagination { |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | 5 | ||
6 | @extend .resource-container; | 6 | @extend .resource-container; |
7 | 7 | ||
8 | - height: calc($textHeight+$imgHeight+60px);/* 60px is the height of the floor header */ | 8 | + height: calc($textHeight+$imgHeight+90px);/* 60px is the height of the floor header */ |
9 | 9 | ||
10 | .arrival-item-box { | 10 | .arrival-item-box { |
11 | box-sizing: border-box; | 11 | box-sizing: border-box; |
-
Please register or login to post a comment