Commit dc098da32a9e95444a7ccbdb2596cf53e6181af7

Authored by Виталий
1 parent ac43600b

Веталь

frontend/views/catalog/product.php
@@ -19,7 +19,8 @@ $this->registerJs (' @@ -19,7 +19,8 @@ $this->registerJs ('
19 var checkData = function($index) 19 var checkData = function($index)
20 { 20 {
21 var sourceNew = $(".productLeftBar .product_mod > li").eq($index); 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 var $source = sourceNew.find("a"); 24 var $source = sourceNew.find("a");
24 var $target = $(".productLeftBar .cost_box"); 25 var $target = $(".productLeftBar .cost_box");
25 26
frontend/web/css/style.css
@@ -220,8 +220,20 @@ ul.product_mod li{ @@ -220,8 +220,20 @@ ul.product_mod li{
220 height: 46px; 220 height: 46px;
221 background: #fff; 221 background: #fff;
222 border: 1px solid #d2d2d2; 222 border: 1px solid #d2d2d2;
223 - margin: 7px 7px 0 0; 223 + margin: 5px 5px 0 0;
224 text-align: center; 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 ul.product_mod li a{ 238 ul.product_mod li a{
227 width: 46px; 239 width: 46px;