mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 06:19:45 +00:00
Добавление фокуса для прикрепления файла, убрал рамку с инпутов
This commit is contained in:
1 parent
bd0498e5bd
commit
0f9620aedc
3 files changed
+18
-6
No files matched your search
@@ -1,5 +1,9 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
|
||||
|
||||
input {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.hopeui_style-breadcrumb {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@@ -16,8 +16,10 @@ function ContactUs() {
|
||||
<textarea name="text" placeholder="Опишите в этом поле свой проект и, по возможности, прикрепите файл с ТЗ" className="field big" />
|
||||
<label className="file-input">
|
||||
<input type="file" name="file" />
|
||||
<div className="upload-file-btn">
|
||||
<img src={fileUpload} alt="" className="icon" />
|
||||
<span>Прикрепить файл</span>
|
||||
</div>
|
||||
</label>
|
||||
<input type="submit" className="submit btn" />
|
||||
</div>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
.file-input {
|
||||
position: relative;
|
||||
display: flex;
|
||||
width: fit-content;
|
||||
|
||||
input {
|
||||
position: absolute;
|
||||
@@ -54,18 +54,24 @@
|
||||
height: 0;
|
||||
}
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
.upload-file-btn {
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.file-input input:focus + .upload-file-btn {
|
||||
outline: -webkit-focus-ring-color auto 1px;
|
||||
}
|
||||
|
||||
.submit {
|
||||
width: 100%;
|
||||
|
||||
Reference in new issue
Block a user