Commit fb22bd5d76e187e50ffb41809155aac12bc3741a
1 parent
595ab5d0
company send button
Showing
2 changed files
with
62 additions
and
0 deletions
Show diff stats
frontend/views/layouts/company.php
@@ -17,6 +17,15 @@ | @@ -17,6 +17,15 @@ | ||
17 | <div class="section-box-14" style="background-image: url(<?= $this->params[ 'company' ]->userInfo->poster; ?>); background-repeat: no-repeat; background-position: 50%;"> | 17 | <div class="section-box-14" style="background-image: url(<?= $this->params[ 'company' ]->userInfo->poster; ?>); background-repeat: no-repeat; background-position: 50%;"> |
18 | <div class="box-wr"> | 18 | <div class="box-wr"> |
19 | <div class="box-all"> | 19 | <div class="box-all"> |
20 | + <div class="company_send_message"> | ||
21 | + <?php | ||
22 | + echo Html::a('Написать сообщение', Url::toRoute([ | ||
23 | + 'chat/message', | ||
24 | + 'user_id' => $this->params[ 'company' ]->id, | ||
25 | + ])); | ||
26 | + ?> | ||
27 | + </div> | ||
28 | + | ||
20 | <?php | 29 | <?php |
21 | if($this->params[ 'company' ]->id != \Yii::$app->user->getId()) { | 30 | if($this->params[ 'company' ]->id != \Yii::$app->user->getId()) { |
22 | // Форма "оставить заявку" | 31 | // Форма "оставить заявку" |
frontend/web/css/style.css
@@ -12637,4 +12637,57 @@ li.active-menu-admin:hover a .ico_num { | @@ -12637,4 +12637,57 @@ li.active-menu-admin:hover a .ico_num { | ||
12637 | .share-buttons-new .share-buttons-new-link a { | 12637 | .share-buttons-new .share-buttons-new-link a { |
12638 | margin-top: 5px; | 12638 | margin-top: 5px; |
12639 | margin-right: 10px; | 12639 | margin-right: 10px; |
12640 | +} | ||
12641 | + | ||
12642 | +.company_send_message{ | ||
12643 | + position: absolute; | ||
12644 | + bottom: 0; | ||
12645 | + right: 250px; | ||
12646 | +} | ||
12647 | +.company_send_message a{ | ||
12648 | + color: #fff; | ||
12649 | + font-size: 13px; | ||
12650 | + position: relative; | ||
12651 | + width: 170px; | ||
12652 | + height: 45px; | ||
12653 | + border-radius: 4px; | ||
12654 | + display: block; | ||
12655 | + transition: 0.2s; | ||
12656 | + text-decoration: none; | ||
12657 | + margin-left: 8px; | ||
12658 | + box-sizing: border-box; | ||
12659 | + padding-left: 59px; | ||
12660 | + padding-top: 8px; | ||
12661 | + line-height: 14px; | ||
12662 | + border-bottom: 2px solid #3e9825; | ||
12663 | + background: rgb(107, 203, 80); | ||
12664 | + background: -moz-linear-gradient(top, rgba(107, 203, 80, 1) 0%, rgba(96, 187, 70, 1) 100%); | ||
12665 | + background: -webkit-linear-gradient(top, rgba(107, 203, 80, 1) 0%, rgba(96, 187, 70, 1) 100%); | ||
12666 | + background: linear-gradient(to bottom, rgba(107, 203, 80, 1) 0%, rgba(96, 187, 70, 1) 100%); | ||
12667 | + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6bcb50', endColorstr='#60bb46', GradientType=0); | ||
12668 | +} | ||
12669 | + | ||
12670 | +.company_send_message a:hover{ | ||
12671 | + font-size: 15px!important; | ||
12672 | + background: rgb(96, 187, 70); | ||
12673 | + background: -moz-linear-gradient(top, rgba(96, 187, 70, 1) 0%, rgba(107, 203, 80, 1) 100%)!important; | ||
12674 | + background: -webkit-linear-gradient(top, rgba(96, 187, 70, 1) 0%, rgba(107, 203, 80, 1) 100%); | ||
12675 | + background: linear-gradient(to bottom, rgba(96, 187, 70, 1) 0%, rgba(107, 203, 80, 1) 100%); | ||
12676 | + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#60bb46', endColorstr='#6bcb50', GradientType=0); | ||
12677 | +} | ||
12678 | + | ||
12679 | +.company_send_message a:after{ | ||
12680 | + width: 20px; | ||
12681 | + height: 24px; | ||
12682 | + display: block; | ||
12683 | + content: ''; | ||
12684 | + background: url(/images/blog/ico-buttons-2.png) no-repeat; | ||
12685 | + position: absolute; | ||
12686 | + top: 50%; | ||
12687 | + margin-top: -12px; | ||
12688 | + left: 15px; | ||
12689 | +} | ||
12690 | + | ||
12691 | +.company_send_message a::after{ | ||
12692 | + background: url(/images/blog/ico-buttons-3.png) no-repeat; | ||
12640 | } | 12693 | } |
12641 | \ No newline at end of file | 12694 | \ No newline at end of file |