Commit 24e8280ad710fbd623aba09c3b4f9eeb6e40f544
1 parent
939c12c6
tokar commit
Showing
2 changed files
with
51 additions
and
11 deletions
Show diff stats
frontend/views/site/forms-modal-contacts.php
| @@ -26,20 +26,28 @@ | @@ -26,20 +26,28 @@ | ||
| 26 | <div class="input-blocks-wrapper"> | 26 | <div class="input-blocks-wrapper"> |
| 27 | <div class="contacts-form-wrapper style"> | 27 | <div class="contacts-form-wrapper style"> |
| 28 | <div class="contacts-form style"><span>Прикрепить файл</span></div> | 28 | <div class="contacts-form style"><span>Прикрепить файл</span></div> |
| 29 | - <div class="contacts-form-help style">Максимальный размер файла 5 МБ</div> | 29 | + <div class="contacts-form-help style"> |
| 30 | + <span>Максимальный размер файла 5 МБ</span> | ||
| 31 | + </div> | ||
| 30 | </div> | 32 | </div> |
| 31 | - <div class="hiden-input-file-contscts-wr"> | ||
| 32 | - <input type="file" value="Прикрепить файл"/> | 33 | + |
| 34 | + <div class="tst-input-hidden-cont"> | ||
| 35 | + <input class="" type="file" value=""/> | ||
| 33 | </div> | 36 | </div> |
| 37 | + | ||
| 34 | </div> | 38 | </div> |
| 35 | 39 | ||
| 36 | <div class="form-actions style"> | 40 | <div class="form-actions style"> |
| 37 | <button type="submit" class="login-button">Отправить</button> | 41 | <button type="submit" class="login-button">Отправить</button> |
| 38 | </div> | 42 | </div> |
| 39 | - | ||
| 40 | - | ||
| 41 | - | ||
| 42 | </form> | 43 | </form> |
| 43 | <div class="res_form_line"></div> | 44 | <div class="res_form_line"></div> |
| 44 | </div> | 45 | </div> |
| 45 | -</div> | ||
| 46 | \ No newline at end of file | 46 | \ No newline at end of file |
| 47 | +</div> | ||
| 48 | +<script> | ||
| 49 | + $('.tst-input-hidden-cont input').change(function(){ | ||
| 50 | + var fileValContacts = $(this).val() | ||
| 51 | + var filenameContacts = fileValContacts.replace(/^.*\\/, "") | ||
| 52 | + $('.contacts-form-help span').html(filenameContacts) | ||
| 53 | + }) | ||
| 54 | +</script> | ||
| 47 | \ No newline at end of file | 55 | \ No newline at end of file |
frontend/web/css/style.css
| @@ -1073,7 +1073,7 @@ input[type=file]::-webkit-file-upload-button { | @@ -1073,7 +1073,7 @@ input[type=file]::-webkit-file-upload-button { | ||
| 1073 | z-index: 1; | 1073 | z-index: 1; |
| 1074 | } | 1074 | } |
| 1075 | #modal_form_contacts .res_form_line { | 1075 | #modal_form_contacts .res_form_line { |
| 1076 | - top: 420px; | 1076 | + top: 411px; |
| 1077 | } | 1077 | } |
| 1078 | /***rating***/ | 1078 | /***rating***/ |
| 1079 | .section-box-15 .rating {padding-left: 0;margin-left: -4px} | 1079 | .section-box-15 .rating {padding-left: 0;margin-left: -4px} |
| @@ -5411,11 +5411,22 @@ top: 272px; | @@ -5411,11 +5411,22 @@ top: 272px; | ||
| 5411 | } | 5411 | } |
| 5412 | .site-request-password-reset {} | 5412 | .site-request-password-reset {} |
| 5413 | .contacts-form-help { | 5413 | .contacts-form-help { |
| 5414 | + height: 41px; | ||
| 5415 | + box-sizing: border-box; | ||
| 5416 | + padding-left: 70px; | ||
| 5417 | + overflow: hidden; | ||
| 5418 | +} | ||
| 5419 | +.contacts-form-help span { | ||
| 5414 | font-size: 11px; | 5420 | font-size: 11px; |
| 5415 | color: #c2c2c2; | 5421 | color: #c2c2c2; |
| 5422 | + height: 35px; | ||
| 5423 | + width: 135px; | ||
| 5424 | + display: table-cell; | ||
| 5425 | + vertical-align: middle; | ||
| 5426 | + line-height: 16px; | ||
| 5416 | } | 5427 | } |
| 5417 | -.contacts-form-wrapper {margin-top: 16px} | ||
| 5418 | -.contacts-form {text-align: center} | 5428 | +.contacts-form-wrapper {margin-top: 8px} |
| 5429 | +.contacts-form { box-sizing: border-box; padding-left: 69px;} | ||
| 5419 | .contacts-form span{ | 5430 | .contacts-form span{ |
| 5420 | font-size: 13px; | 5431 | font-size: 13px; |
| 5421 | text-transform: uppercase; | 5432 | text-transform: uppercase; |
| @@ -5433,9 +5444,30 @@ top: 272px; | @@ -5433,9 +5444,30 @@ top: 272px; | ||
| 5433 | background: url("/images/skrpk.png") no-repeat; | 5444 | background: url("/images/skrpk.png") no-repeat; |
| 5434 | } | 5445 | } |
| 5435 | .hiden-input-file-contscts-wr { | 5446 | .hiden-input-file-contscts-wr { |
| 5436 | - background:red;cursor:pointer;position: absolute; top: 16px; height:18px;left: 0; opacity: 0.5; z-index: 2;-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=0) | 5447 | + overflow:hidden;background:red;cursor:pointer;position: absolute; top: 16px; height:31px;width:240px;left: 0; opacity: 0.5; z-index: 2;-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)'; |
| 5437 | } | 5448 | } |
| 5449 | +.tst-input-hidden-cont{ | ||
| 5450 | + width: 240px !important; | ||
| 5451 | + height: 29px; | ||
| 5452 | + position: absolute; | ||
| 5453 | + top: 0; | ||
| 5454 | + left: 0; | ||
| 5455 | + opacity: 0; | ||
| 5456 | + z-index: 99999; | ||
| 5457 | + -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=0); | ||
| 5438 | 5458 | ||
| 5459 | +} | ||
| 5460 | +.tst-input-hidden-cont input { | ||
| 5461 | + width: 240px !important; | ||
| 5462 | + height: 29px !important; | ||
| 5463 | + position: absolute; | ||
| 5464 | + top: 0; | ||
| 5465 | + left: 0; | ||
| 5466 | + opacity: 0; | ||
| 5467 | + z-index: 99999; | ||
| 5468 | + cursor: pointer; | ||
| 5469 | + -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)'; | ||
| 5470 | +} | ||
| 5439 | 5471 | ||
| 5440 | 5472 | ||
| 5441 | 5473 |