Commit ac43600bbffa1b6db6263eba632318a923e2a45c
1 parent
ce4bee08
Веталь
Showing
2 changed files
with
19 additions
and
2 deletions
Show diff stats
frontend/views/catalog/product.php
@@ -18,7 +18,9 @@ $this->registerJs (' | @@ -18,7 +18,9 @@ $this->registerJs (' | ||
18 | 18 | ||
19 | var checkData = function($index) | 19 | var checkData = function($index) |
20 | { | 20 | { |
21 | - var $source = $(".productLeftBar .product_mod > li").eq($index).find("a"); | 21 | + var sourceNew = $(".productLeftBar .product_mod > li").eq($index); |
22 | + sourceNew.addClass("active") | ||
23 | + var $source = sourceNew.find("a"); | ||
22 | var $target = $(".productLeftBar .cost_box"); | 24 | var $target = $(".productLeftBar .cost_box"); |
23 | 25 | ||
24 | $("#cost").text($source.data("cost")); | 26 | $("#cost").text($source.data("cost")); |
frontend/web/css/style.css
@@ -229,6 +229,9 @@ ul.product_mod li a{ | @@ -229,6 +229,9 @@ ul.product_mod li a{ | ||
229 | display: table-cell; | 229 | display: table-cell; |
230 | vertical-align: middle; | 230 | vertical-align: middle; |
231 | } | 231 | } |
232 | +ul.product_mod li a:focus { | ||
233 | + outline: none; | ||
234 | +} | ||
232 | ul.product_mod li img{ | 235 | ul.product_mod li img{ |
233 | vertical-align: middle; | 236 | vertical-align: middle; |
234 | max-width: 46px; | 237 | max-width: 46px; |
@@ -384,7 +387,19 @@ ul.brends_list li{float:left;text-align:center;margin:0px 15px 20px 15px;} | @@ -384,7 +387,19 @@ ul.brends_list li{float:left;text-align:center;margin:0px 15px 20px 15px;} | ||
384 | .news_item a{font-size:16px;} | 387 | .news_item a{font-size:16px;} |
385 | 388 | ||
386 | .pic{ | 389 | .pic{ |
387 | - | 390 | + width: 392px; |
391 | + height: 365px; | ||
392 | +} | ||
393 | +.pic a { | ||
394 | + width: 392px; | ||
395 | + height: 365px; | ||
396 | + display: table-cell; | ||
397 | + vertical-align: middle; | ||
398 | +} | ||
399 | +.pic a img { | ||
400 | + max-width: 392px; | ||
401 | + max-height: 365px; | ||
402 | + vertical-align: middle; | ||
388 | } | 403 | } |
389 | 404 | ||
390 | #subscribe-sale{width:100px;float:left;margin-right:20px;} | 405 | #subscribe-sale{width:100px;float:left;margin-right:20px;} |