diff --git a/backend/controllers/ObjectkbController.php b/backend/controllers/ObjectkbController.php index 2a0a225..ee2febd 100755 --- a/backend/controllers/ObjectkbController.php +++ b/backend/controllers/ObjectkbController.php @@ -19,7 +19,7 @@ class ObjectkbController extends Controller public function init() { - parent::init(); // TODO: Change the autogenerated stub + parent::init(); $this->allSliders = Slider::find()->all(); diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 149d649..2268d76 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -60,20 +60,20 @@ ->where([ 'on_home_page' => true ]) ->one(); - $objects = Objectkb::find() - ->with('lang.alias') - ->where( - [ - 'id' => [ - 7, - 37, - 38, - 43, - ], - ] - ) - ->orderBy('id') - ->all(); +// $objects = Objectkb::find() +// ->with('lang.alias') +// ->where( +// [ +// 'id' => [ +// 7, +// 37, +// 38, +// 43, +// ], +// ] +// ) +// ->orderBy('id') +// ->all(); $forCompanies = Objectkb::find() ->with('lang.alias') ->where( diff --git a/frontend/web/css/new-style/faq.css b/frontend/web/css/new-style/faq.css new file mode 100644 index 0000000..b075e44 --- /dev/null +++ b/frontend/web/css/new-style/faq.css @@ -0,0 +1,105 @@ +.section-question { + padding-top: 74px; + padding-bottom: 64px; +} + +.faq__items { + margin-top: 39px; +} +.faq__item { + cursor: pointer; + margin-top: 6px; + background: #f6f6f6; + border-radius: 4px; + padding: 21px 67px 21px 25px; + position: relative; +} +.faq__item_close { + position: absolute; + width: 40px; + height: 40px; + border-radius: 100%; + right: 12px; + top: 12px; + cursor: pointer; + transition: 0.2s; +} +.faq__item_close:before, .faq__item_close:after { + content: ""; + position: absolute; + background: #8e8f90; + top: 50%; + left: 50%; +} +.faq__item_close:before { + width: 24px; + height: 2px; + margin-left: -12px; + margin-top: -1px; +} +.faq__item_close:after { + width: 2px; + height: 24px; + margin-left: -1px; + margin-top: -12px; +} +.faq__item_title { + font-size: 18px; + line-height: 22px; + font-weight: 700; +} +.faq__item_text { + font-size: 15px; + line-height: 23px; + height: 0; + overflow: hidden; +} +.faq__item_text p { + margin-top: 10px; +} +.faq__item_text p:last-child { + margin-bottom: 4px; +} +.faq__item.active { + cursor: default; +} +.faq__item.active .faq__item_close { + background: #ffffff; + transform: rotate(45deg); +} +.faq__item.active .faq__item_text { + height: auto; +} + +@media (max-width: 991px) { + .section-question { + padding-top: 29px; + padding-bottom: 32px; + } + + .faq__items { + margin-top: 26px; + } +} +@media (max-width: 767px) { + .faq__items { + margin-top: 12px; + } + .faq__item { + padding: 21px 47px 20px 15px; + } + .faq__item_title { + font-size: 15px; + line-height: 19px; + } + .faq__item_close { + right: 10px; + } + + .section-question { + padding-top: 29px; + padding-bottom: 32px; + } +} + +/*# sourceMappingURL=faq.css.map */ diff --git a/frontend/web/css/new-style/faq.css.map b/frontend/web/css/new-style/faq.css.map new file mode 100644 index 0000000..b1451a1 --- /dev/null +++ b/frontend/web/css/new-style/faq.css.map @@ -0,0 +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"} \ No newline at end of file -- libgit2 0.21.4