Commit bacfdfe5ebb1e9c8fa777be57887e2eacc2927b2

Authored by alex
1 parent 13ad65b4

Get block to center

frontend/assets/AppAsset.php
@@ -14,6 +14,7 @@ @@ -14,6 +14,7 @@
14 public $css = [ 14 public $css = [
15 'css/style.css', 15 'css/style.css',
16 'css/animate.css', 16 'css/animate.css',
  17 + 'css/site.css',
17 '//fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,500,700,800', 18 '//fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,500,700,800',
18 '//xkasa.com.ua/Styles/Oziris/1.css', 19 '//xkasa.com.ua/Styles/Oziris/1.css',
19 ]; 20 ];
frontend/views/site/contact.php
@@ -172,7 +172,7 @@ JS; @@ -172,7 +172,7 @@ JS;
172 <?= $form->field($contact, 'reCaptcha')->widget( 172 <?= $form->field($contact, 'reCaptcha')->widget(
173 \himiklab\yii2\recaptcha\ReCaptcha::className(), 173 \himiklab\yii2\recaptcha\ReCaptcha::className(),
174 ['siteKey' => '6LcmYmcUAAAAAASKWf3qnHXJCg9vGfJfDefY9TzW'] 174 ['siteKey' => '6LcmYmcUAAAAAASKWf3qnHXJCg9vGfJfDefY9TzW']
175 - ) ?> 175 + )->label(false) ?>
176 <div class="col-sm-12 text-center"> 176 <div class="col-sm-12 text-center">
177 <?= Html::submitButton( 177 <?= Html::submitButton(
178 '<i class="fa fa-envelope-o"></i> Отправить сообщение', 178 '<i class="fa fa-envelope-o"></i> Отправить сообщение',
frontend/web/css/site.css 0 → 100644
  1 +/*
  2 +Класс для выравнивания по центру формы инпута google ReCaptcha
  3 +*/
  4 +.f_center {
  5 + margin-left: 80%;
  6 + transform: translateX(-50%);
  7 +}
0 \ No newline at end of file 8 \ No newline at end of file
frontend/web/js/script.js
@@ -8,6 +8,9 @@ $(function() { @@ -8,6 +8,9 @@ $(function() {
8 filtersCloseMobil(); 8 filtersCloseMobil();
9 imgCardZoom(); 9 imgCardZoom();
10 10
  11 + $('.field-feedback-recaptcha').addClass('col-sm-12').addClass('f_center');
  12 +
  13 +
11 function clickMenuButton() { 14 function clickMenuButton() {
12 var menuButtonParent = $('.main-nav-item') 15 var menuButtonParent = $('.main-nav-item')
13 menuButtonParent.find('.btn-like').click(function (e) { 16 menuButtonParent.find('.btn-like').click(function (e) {