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
+19
-7
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');
|
@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 {
|
.hopeui_style-breadcrumb {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,8 +16,10 @@ function ContactUs() {
|
|||||||
<textarea name="text" placeholder="Опишите в этом поле свой проект и, по возможности, прикрепите файл с ТЗ" className="field big" />
|
<textarea name="text" placeholder="Опишите в этом поле свой проект и, по возможности, прикрепите файл с ТЗ" className="field big" />
|
||||||
<label className="file-input">
|
<label className="file-input">
|
||||||
<input type="file" name="file" />
|
<input type="file" name="file" />
|
||||||
<img src={ fileUpload } alt="" className="icon" />
|
<div className="upload-file-btn">
|
||||||
|
<img src={fileUpload} alt="" className="icon" />
|
||||||
<span>Прикрепить файл</span>
|
<span>Прикрепить файл</span>
|
||||||
|
</div>
|
||||||
</label>
|
</label>
|
||||||
<input type="submit" className="submit btn" />
|
<input type="submit" className="submit btn" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
.file-input {
|
.file-input {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
width: fit-content;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -54,18 +54,24 @@
|
|||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
.upload-file-btn {
|
||||||
display: inline-block;
|
display: flex;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
margin-right: 8px;
|
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 {
|
.submit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Reference in new issue
Block a user