From 7ea39d3b137ec37432e6982b1098154bc716e3a2 Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Fri, 2 Jun 2017 14:01:20 +0300 Subject: [PATCH] Сортировка --- frontend/views/category/view.php | 2 +- frontend/web/css/style.css | 24 +++++++++++++++++++++--- frontend/web/js/script.js | 4 ++-- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/frontend/views/category/view.php b/frontend/views/category/view.php index cf85ce5..e2999cc 100755 --- a/frontend/views/category/view.php +++ b/frontend/views/category/view.php @@ -162,6 +162,7 @@ _________________________________________________________ --> + - diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index 695480b..5d0040b 100755 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -4821,12 +4821,30 @@ a i.fa, button i.fa, span.fa { .sort-cat.active .sorter{ display: block; } -.sort-cat.active a#category-sort{ +.sort-cat.active>a{ color:#000; } -.sort-cat a#category-sort i.fa-angle-down{ +.sort-cat>a i.fa-angle-down{ transition: 0.2s; } -.sort-cat.active a#category-sort i.fa-angle-down{ +.sort-cat.active>a i.fa-angle-down{ transform: rotate(180deg); +} + +.price-inputs{ + position:relative; + padding:0; +} +.price-inputs .input-block{ + padding:0; +} +.price-inputs .input-sep{ + line-height: 27px; + padding: 0 9px; +} +.price-inputs input{ + width: 100%; + border: 1px solid #005bac; + border-radius: 3px; + padding: 5px 10px; } \ No newline at end of file diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js index af5c250..5d1b18f 100755 --- a/frontend/web/js/script.js +++ b/frontend/web/js/script.js @@ -248,7 +248,7 @@ $(function() { ); } ); - $(document).on('click', '#category-sort', function(e){ + $(document).on('click', '.sort-cat>a', function(e){ $(this).parent().toggleClass("active"); return false; }); @@ -262,7 +262,7 @@ $(function() { $(".sort-cat a#category-sort").attr('href', newmainlink); $(this).text(pstext); $(this).attr('href', mainlink); - $("#category-sort").click(); + $(".sort-cat>a").click(); }); }); -- libgit2 0.21.4