Commit a56fe95a12e9073d81c12961216e300212d91a5c
1 parent
4d97ffdd
style fix
Showing
4 changed files
with
40 additions
and
2 deletions
Show diff stats
common/messages/ru/app.php
| @@ -318,4 +318,5 @@ return [ | @@ -318,4 +318,5 @@ return [ | ||
| 318 | 'NewsFollow' => 'Следите за новостями', | 318 | 'NewsFollow' => 'Следите за новостями', |
| 319 | 'city_short' => 'г', | 319 | 'city_short' => 'г', |
| 320 | 'copylink' => 'Создание сайтов', | 320 | 'copylink' => 'Создание сайтов', |
| 321 | + 'get_consult' => 'Получить консультацию специалиста', | ||
| 321 | ]; | 322 | ]; |
| 322 | \ No newline at end of file | 323 | \ No newline at end of file |
common/messages/ua/app.php
| @@ -320,4 +320,5 @@ return [ | @@ -320,4 +320,5 @@ return [ | ||
| 320 | 'NewsFollow' => 'Слідкуйте за новинами', | 320 | 'NewsFollow' => 'Слідкуйте за новинами', |
| 321 | 'city_short' => 'м', | 321 | 'city_short' => 'м', |
| 322 | 'copylink' => 'Створення сайтів', | 322 | 'copylink' => 'Створення сайтів', |
| 323 | + 'get_consult' => 'Отримати консультацію спеціаліста', | ||
| 323 | ]; | 324 | ]; |
| 324 | \ No newline at end of file | 325 | \ No newline at end of file |
frontend/views/site/index.php
| @@ -288,7 +288,9 @@ JS; | @@ -288,7 +288,9 @@ JS; | ||
| 288 | 'alias' => $object->lang->alias, | 288 | 'alias' => $object->lang->alias, |
| 289 | ] | 289 | ] |
| 290 | ) ?>" class="sqre_btn blue_arrow" alt="<?=$object->lang->object_name?>"></a> | 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 | </td> | 294 | </td> |
| 293 | <td class="i-title" valign="center"> | 295 | <td class="i-title" valign="center"> |
| 294 | <p class="pr_title2"> | 296 | <p class="pr_title2"> |
frontend/web/css/main.css
| @@ -119,7 +119,7 @@ a.sqre_btn { | @@ -119,7 +119,7 @@ a.sqre_btn { | ||
| 119 | background-color: rgba(255, 0, 0, 0.23); | 119 | background-color: rgba(255, 0, 0, 0.23); |
| 120 | border-radius: 0; | 120 | border-radius: 0; |
| 121 | text-align: center; | 121 | text-align: center; |
| 122 | - overflow: hidden; | 122 | + position: relative; |
| 123 | margin-left: 5px; | 123 | margin-left: 5px; |
| 124 | margin-top: 5px; | 124 | margin-top: 5px; |
| 125 | background-position: center; | 125 | background-position: center; |
| @@ -774,6 +774,40 @@ ul.list-wr span{color: #555;} | @@ -774,6 +774,40 @@ ul.list-wr span{color: #555;} | ||
| 774 | border-radius: 10px; | 774 | border-radius: 10px; |
| 775 | } | 775 | } |
| 776 | .contacts_photo img{width:100%;} | 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 | @media(min-width:1201px){ | 812 | @media(min-width:1201px){ |
| 779 | .links-ses-for-wr .container .row p {margin: 7px 20px;} | 813 | .links-ses-for-wr .container .row p {margin: 7px 20px;} |