From dc098da32a9e95444a7ccbdb2596cf53e6181af7 Mon Sep 17 00:00:00 2001 From: Веталь Date: Tue, 24 May 2016 12:59:40 +0300 Subject: [PATCH] Веталь --- frontend/views/catalog/product.php | 3 ++- frontend/web/css/style.css | 14 +++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 054fd1d..3c961b1 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -19,7 +19,8 @@ $this->registerJs (' var checkData = function($index) { var sourceNew = $(".productLeftBar .product_mod > li").eq($index); - sourceNew.addClass("active") + $(".productLeftBar .product_mod > li").removeClass("active"); + sourceNew.addClass("active"); var $source = sourceNew.find("a"); var $target = $(".productLeftBar .cost_box"); diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index db66e6e..483cff9 100755 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -220,8 +220,20 @@ ul.product_mod li{ height: 46px; background: #fff; border: 1px solid #d2d2d2; - margin: 7px 7px 0 0; + margin: 5px 5px 0 0; text-align: center; + position: relative; +} +ul.product_mod li.active:before { + width: 48px; + height: 48px; + position: absolute; + content: ''; + background: none; + border: 2px solid #95ba2f; + top: -1px; + left: -1px; + box-sizing: border-box; } ul.product_mod li a{ width: 46px; -- libgit2 0.21.4