Commit 7dea09c7f74f6d3dd877e030498a8b97370e442f
1 parent
5707ae7a
fix faq css
Showing
4 changed files
with
121 additions
and
15 deletions
Show diff stats
backend/controllers/ObjectkbController.php
| @@ -19,7 +19,7 @@ class ObjectkbController extends Controller | @@ -19,7 +19,7 @@ class ObjectkbController extends Controller | ||
| 19 | 19 | ||
| 20 | public function init() | 20 | public function init() |
| 21 | { | 21 | { |
| 22 | - parent::init(); // TODO: Change the autogenerated stub | 22 | + parent::init(); |
| 23 | 23 | ||
| 24 | $this->allSliders = Slider::find()->all(); | 24 | $this->allSliders = Slider::find()->all(); |
| 25 | 25 |
frontend/controllers/SiteController.php
| @@ -60,20 +60,20 @@ | @@ -60,20 +60,20 @@ | ||
| 60 | ->where([ 'on_home_page' => true ]) | 60 | ->where([ 'on_home_page' => true ]) |
| 61 | ->one(); | 61 | ->one(); |
| 62 | 62 | ||
| 63 | - $objects = Objectkb::find() | ||
| 64 | - ->with('lang.alias') | ||
| 65 | - ->where( | ||
| 66 | - [ | ||
| 67 | - 'id' => [ | ||
| 68 | - 7, | ||
| 69 | - 37, | ||
| 70 | - 38, | ||
| 71 | - 43, | ||
| 72 | - ], | ||
| 73 | - ] | ||
| 74 | - ) | ||
| 75 | - ->orderBy('id') | ||
| 76 | - ->all(); | 63 | +// $objects = Objectkb::find() |
| 64 | +// ->with('lang.alias') | ||
| 65 | +// ->where( | ||
| 66 | +// [ | ||
| 67 | +// 'id' => [ | ||
| 68 | +// 7, | ||
| 69 | +// 37, | ||
| 70 | +// 38, | ||
| 71 | +// 43, | ||
| 72 | +// ], | ||
| 73 | +// ] | ||
| 74 | +// ) | ||
| 75 | +// ->orderBy('id') | ||
| 76 | +// ->all(); | ||
| 77 | $forCompanies = Objectkb::find() | 77 | $forCompanies = Objectkb::find() |
| 78 | ->with('lang.alias') | 78 | ->with('lang.alias') |
| 79 | ->where( | 79 | ->where( |
| 1 | +.section-question { | ||
| 2 | + padding-top: 74px; | ||
| 3 | + padding-bottom: 64px; | ||
| 4 | +} | ||
| 5 | + | ||
| 6 | +.faq__items { | ||
| 7 | + margin-top: 39px; | ||
| 8 | +} | ||
| 9 | +.faq__item { | ||
| 10 | + cursor: pointer; | ||
| 11 | + margin-top: 6px; | ||
| 12 | + background: #f6f6f6; | ||
| 13 | + border-radius: 4px; | ||
| 14 | + padding: 21px 67px 21px 25px; | ||
| 15 | + position: relative; | ||
| 16 | +} | ||
| 17 | +.faq__item_close { | ||
| 18 | + position: absolute; | ||
| 19 | + width: 40px; | ||
| 20 | + height: 40px; | ||
| 21 | + border-radius: 100%; | ||
| 22 | + right: 12px; | ||
| 23 | + top: 12px; | ||
| 24 | + cursor: pointer; | ||
| 25 | + transition: 0.2s; | ||
| 26 | +} | ||
| 27 | +.faq__item_close:before, .faq__item_close:after { | ||
| 28 | + content: ""; | ||
| 29 | + position: absolute; | ||
| 30 | + background: #8e8f90; | ||
| 31 | + top: 50%; | ||
| 32 | + left: 50%; | ||
| 33 | +} | ||
| 34 | +.faq__item_close:before { | ||
| 35 | + width: 24px; | ||
| 36 | + height: 2px; | ||
| 37 | + margin-left: -12px; | ||
| 38 | + margin-top: -1px; | ||
| 39 | +} | ||
| 40 | +.faq__item_close:after { | ||
| 41 | + width: 2px; | ||
| 42 | + height: 24px; | ||
| 43 | + margin-left: -1px; | ||
| 44 | + margin-top: -12px; | ||
| 45 | +} | ||
| 46 | +.faq__item_title { | ||
| 47 | + font-size: 18px; | ||
| 48 | + line-height: 22px; | ||
| 49 | + font-weight: 700; | ||
| 50 | +} | ||
| 51 | +.faq__item_text { | ||
| 52 | + font-size: 15px; | ||
| 53 | + line-height: 23px; | ||
| 54 | + height: 0; | ||
| 55 | + overflow: hidden; | ||
| 56 | +} | ||
| 57 | +.faq__item_text p { | ||
| 58 | + margin-top: 10px; | ||
| 59 | +} | ||
| 60 | +.faq__item_text p:last-child { | ||
| 61 | + margin-bottom: 4px; | ||
| 62 | +} | ||
| 63 | +.faq__item.active { | ||
| 64 | + cursor: default; | ||
| 65 | +} | ||
| 66 | +.faq__item.active .faq__item_close { | ||
| 67 | + background: #ffffff; | ||
| 68 | + transform: rotate(45deg); | ||
| 69 | +} | ||
| 70 | +.faq__item.active .faq__item_text { | ||
| 71 | + height: auto; | ||
| 72 | +} | ||
| 73 | + | ||
| 74 | +@media (max-width: 991px) { | ||
| 75 | + .section-question { | ||
| 76 | + padding-top: 29px; | ||
| 77 | + padding-bottom: 32px; | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | + .faq__items { | ||
| 81 | + margin-top: 26px; | ||
| 82 | + } | ||
| 83 | +} | ||
| 84 | +@media (max-width: 767px) { | ||
| 85 | + .faq__items { | ||
| 86 | + margin-top: 12px; | ||
| 87 | + } | ||
| 88 | + .faq__item { | ||
| 89 | + padding: 21px 47px 20px 15px; | ||
| 90 | + } | ||
| 91 | + .faq__item_title { | ||
| 92 | + font-size: 15px; | ||
| 93 | + line-height: 19px; | ||
| 94 | + } | ||
| 95 | + .faq__item_close { | ||
| 96 | + right: 10px; | ||
| 97 | + } | ||
| 98 | + | ||
| 99 | + .section-question { | ||
| 100 | + padding-top: 29px; | ||
| 101 | + padding-bottom: 32px; | ||
| 102 | + } | ||
| 103 | +} | ||
| 104 | + | ||
| 105 | +/*# sourceMappingURL=faq.css.map */ |
| 1 | +{"version":3,"sourceRoot":"","sources":["faq.scss"],"names":[],"mappings":"AAAA;EACE;EACA;;;AAGA;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;;AAGJ;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AACA;EACE;;AACA;EACE;;AAIN;EACE;;AAEE;EACE;EACA;;AAGF;EACE;;;AAMV;EACE;IACE;IACA;;;EAEF;IACE;;;AAIJ;EAEI;IACE;;EAEF;IACE;;EACA;IACE;IACA;;EAGF;IACE;;;EAIN;IACE;IACA","file":"faq.css"} | ||
| 0 | \ No newline at end of file | 2 | \ No newline at end of file |