Commit dc098da32a9e95444a7ccbdb2596cf53e6181af7
1 parent
ac43600b
Веталь
Showing
2 changed files
with
15 additions
and
2 deletions
Show diff stats
frontend/views/catalog/product.php
| ... | ... | @@ -19,7 +19,8 @@ $this->registerJs (' |
| 19 | 19 | var checkData = function($index) |
| 20 | 20 | { |
| 21 | 21 | var sourceNew = $(".productLeftBar .product_mod > li").eq($index); |
| 22 | - sourceNew.addClass("active") | |
| 22 | + $(".productLeftBar .product_mod > li").removeClass("active"); | |
| 23 | + sourceNew.addClass("active"); | |
| 23 | 24 | var $source = sourceNew.find("a"); |
| 24 | 25 | var $target = $(".productLeftBar .cost_box"); |
| 25 | 26 | ... | ... |
frontend/web/css/style.css
| ... | ... | @@ -220,8 +220,20 @@ ul.product_mod li{ |
| 220 | 220 | height: 46px; |
| 221 | 221 | background: #fff; |
| 222 | 222 | border: 1px solid #d2d2d2; |
| 223 | - margin: 7px 7px 0 0; | |
| 223 | + margin: 5px 5px 0 0; | |
| 224 | 224 | text-align: center; |
| 225 | + position: relative; | |
| 226 | +} | |
| 227 | +ul.product_mod li.active:before { | |
| 228 | + width: 48px; | |
| 229 | + height: 48px; | |
| 230 | + position: absolute; | |
| 231 | + content: ''; | |
| 232 | + background: none; | |
| 233 | + border: 2px solid #95ba2f; | |
| 234 | + top: -1px; | |
| 235 | + left: -1px; | |
| 236 | + box-sizing: border-box; | |
| 225 | 237 | } |
| 226 | 238 | ul.product_mod li a{ |
| 227 | 239 | width: 46px; | ... | ... |