From e4665f9576e07b2da2602344ac90b3460e3362a1 Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Tue, 1 Aug 2017 11:29:57 +0300 Subject: [PATCH] Стрелочки на аккордеоне --- frontend/views/site/index.php | 4 ++-- frontend/web/css/style.css | 16 ++++++++++++++++ frontend/web/js/script.js | 4 ++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index 08f8bc9..737df2e 100644 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -534,8 +534,8 @@ $this->registerJs($js, View::POS_END); -
+
-
\ No newline at end of file + \ No newline at end of file diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index d6338d6..172bd92 100644 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -173,4 +173,20 @@ a.sqre_btn { background: #0080ca; padding: 50px 0; color: #ffffff; +} +.panel-heading{ + position:relative; +} +.panel-heading:before{ + content: "\f106"; + font-family: 'FontAwesome'; + display: block; + font-size: 20px; + position: absolute; + top: 0; + line-height: 44px; + right: 15px; +} +.panel-heading.active:before{ + content: "\f107"; } \ No newline at end of file diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js index 0633303..38cc6aa 100644 --- a/frontend/web/js/script.js +++ b/frontend/web/js/script.js @@ -256,5 +256,9 @@ $( $(".modal-title#Login").text($(this).data('title')); $(".field-feedback-title #feedback-title").val($(this).data('title')); }); + $(".panel-collapse.collapse.in").parent().find(".panel-heading").addClass("active"); + $(".panel-heading a").on('click', function(){ + $(this).parent().parent().toggleClass("active"); + }); } ); \ No newline at end of file -- libgit2 0.21.4