Commit a56fe95a12e9073d81c12961216e300212d91a5c

Authored by Eugeny Galkovskiy
1 parent 4d97ffdd

style fix

common/messages/ru/app.php
... ... @@ -318,4 +318,5 @@ return [
318 318 'NewsFollow' => 'Следите за новостями',
319 319 'city_short' => 'г',
320 320 'copylink' => 'Создание сайтов',
  321 + 'get_consult' => 'Получить консультацию специалиста',
321 322 ];
322 323 \ No newline at end of file
... ...
common/messages/ua/app.php
... ... @@ -320,4 +320,5 @@ return [
320 320 'NewsFollow' => 'Слідкуйте за новинами',
321 321 'city_short' => 'м',
322 322 'copylink' => 'Створення сайтів',
  323 + 'get_consult' => 'Отримати консультацію спеціаліста',
323 324 ];
324 325 \ No newline at end of file
... ...
frontend/views/site/index.php
... ... @@ -288,7 +288,9 @@ JS;
288 288 'alias' => $object->lang->alias,
289 289 ]
290 290 ) ?>" class="sqre_btn blue_arrow" alt="<?=$object->lang->object_name?>"></a>
291   - <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate" data-title="<?= \Yii::t('app', 'modal1') ?>" data-toggle="modal" data-target="#feedback-modal"></a>
  291 + <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate" data-title="<?= \Yii::t('app', 'modal1') ?>" data-toggle="modal" data-target="#feedback-modal">
  292 + <div class="phone_hint"><?= \Yii::t('app', 'get_consult') ?></div>
  293 + </a>
292 294 </td>
293 295 <td class="i-title" valign="center">
294 296 <p class="pr_title2">
... ...
frontend/web/css/main.css
... ... @@ -119,7 +119,7 @@ a.sqre_btn {
119 119 background-color: rgba(255, 0, 0, 0.23);
120 120 border-radius: 0;
121 121 text-align: center;
122   - overflow: hidden;
  122 + position: relative;
123 123 margin-left: 5px;
124 124 margin-top: 5px;
125 125 background-position: center;
... ... @@ -774,6 +774,40 @@ ul.list-wr span{color: #555;}
774 774 border-radius: 10px;
775 775 }
776 776 .contacts_photo img{width:100%;}
  777 +.phone_hint{
  778 + opacity: 0;
  779 + position: absolute;
  780 + white-space: normal;
  781 + min-width: 182px;
  782 + text-align: left;
  783 + font-weight: bold;
  784 + text-transform: none;
  785 + background-color: #fff;
  786 + border: 1px solid #0095d7;
  787 + padding: 3px 7px;
  788 + border-radius: 5px;
  789 + bottom: -50px;
  790 + left: -10px;
  791 + transition: 0.3s;
  792 + box-shadow: 0px 5px 12px -6px black;
  793 +}
  794 +.phone_hint:after {
  795 + content: '';
  796 + display: block;
  797 + position: absolute;
  798 + width: 10px;
  799 + height: 10px;
  800 + background: #ffffff;
  801 + bottom: -6px;
  802 + left: 20px;
  803 + transform: rotate(45deg);
  804 + border-bottom: 1px solid #0095d7;
  805 + border-right: 1px solid #0095d7;
  806 +}
  807 +a.btn.sqre_btn.yellow_calc.modaled.init-button-сalculate:hover > .phone_hint {
  808 + bottom: 40px!important;
  809 + opacity: 0.9!important;
  810 +}
777 811  
778 812 @media(min-width:1201px){
779 813 .links-ses-for-wr .container .row p {margin: 7px 20px;}
... ...