Commit ffab6f9a6886c3dbcf5fe9fee47b5cc99b948e63
Merge remote-tracking branch 'origin/similar' into similar
Showing
3 changed files
with
15 additions
and
3 deletions
Show diff stats
common/modules/product/widgets/views/product_smart_similar.php
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | <div class="catalog_item"> | 11 | <div class="catalog_item"> |
| 12 | <div class="wrapper"> | 12 | <div class="wrapper"> |
| 13 | <?php if (!empty($product->events)) { ?> | 13 | <?php if (!empty($product->events)) { ?> |
| 14 | - <div class="banners_sale"> | 14 | + <div class="events events_not_link"> |
| 15 | 15 | ||
| 16 | <?php | 16 | <?php |
| 17 | foreach($product->events as $event){ | 17 | foreach($product->events as $event){ |
frontend/views/catalog/product.php
| @@ -178,7 +178,7 @@ | @@ -178,7 +178,7 @@ | ||
| 178 | <tr> | 178 | <tr> |
| 179 | <?php foreach($product->events as $event):?> | 179 | <?php foreach($product->events as $event):?> |
| 180 | <?php if(!empty($event->end_at) && $event->isActive()):?> | 180 | <?php if(!empty($event->end_at) && $event->isActive()):?> |
| 181 | - <div class="event_block"> | 181 | + <div class="event_block new_ev_bl"> |
| 182 | 182 | ||
| 183 | <div class="event_title"> <?= Html::a('Акция!!! '.$event->name,Url::to(['event/show','alias'=>$event->alias]))?></div> | 183 | <div class="event_title"> <?= Html::a('Акция!!! '.$event->name,Url::to(['event/show','alias'=>$event->alias]))?></div> |
| 184 | <div class="event_time">До конца осталось:</div> | 184 | <div class="event_time">До конца осталось:</div> |
frontend/web/css/css_header.css
| @@ -27028,6 +27028,8 @@ ul.product-special li.promo div { | @@ -27028,6 +27028,8 @@ ul.product-special li.promo div { | ||
| 27028 | 27028 | ||
| 27029 | .new_collection { | 27029 | .new_collection { |
| 27030 | margin:0 -15px 0 -15px; | 27030 | margin:0 -15px 0 -15px; |
| 27031 | + height: 450px !important; | ||
| 27032 | + overflow: hidden; | ||
| 27031 | } | 27033 | } |
| 27032 | .collection .catalog_product_list.view_table.new_collection .catalog_item { | 27034 | .collection .catalog_product_list.view_table.new_collection .catalog_item { |
| 27033 | width: 33.33333333%; | 27035 | width: 33.33333333%; |
| @@ -27169,10 +27171,20 @@ ul.product-special li.promo div { | @@ -27169,10 +27171,20 @@ ul.product-special li.promo div { | ||
| 27169 | .new_collection .events { | 27171 | .new_collection .events { |
| 27170 | position: absolute; | 27172 | position: absolute; |
| 27171 | z-index: 99; | 27173 | z-index: 99; |
| 27172 | - background: #fff; | ||
| 27173 | top: 0; | 27174 | top: 0; |
| 27174 | left: 0; | 27175 | left: 0; |
| 27175 | } | 27176 | } |
| 27177 | +.new_collection .events_not_link img { | ||
| 27178 | + background:#fff; | ||
| 27179 | +} | ||
| 27180 | +.new_collection .events_not_link img:first-child { | ||
| 27181 | + padding-bottom: 5px; | ||
| 27182 | + background:none; | ||
| 27183 | +} | ||
| 27184 | +.new_collection .owl-theme .owl-controls { | ||
| 27185 | + margin-top: 0; | ||
| 27186 | +} | ||
| 27187 | +.event_block.new_ev_bl {min-height:180px;} | ||
| 27176 | @media(max-width: 1200px){ | 27188 | @media(max-width: 1200px){ |
| 27177 | .collection .catalog_product_list.view_table.new_collection .catalog_item { | 27189 | .collection .catalog_product_list.view_table.new_collection .catalog_item { |
| 27178 | width: 50%; | 27190 | width: 50%; |