mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:49:45 +00:00
Добавил капчу, проверку файлов, отправку формы на сервер, возможность открепить файл, отредачил стили
This commit is contained in:
1 parent
963ad3b544
commit
c58507ac4e
9 files changed
+381
-102
No files matched your search
@@ -26,30 +26,108 @@ $color-file-button: rgb(7, 42, 200);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
*:disabled {
|
||||
background: dimgrey;
|
||||
}
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
gap: $gap;
|
||||
}
|
||||
|
||||
.file-input * {
|
||||
width: fit-content;
|
||||
color: $color-file-button;
|
||||
font-weight: 500;
|
||||
.field {
|
||||
padding: 12px 16px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.field.big {
|
||||
height: 200px;
|
||||
line-height: 30px;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.file-input-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
.file-input {
|
||||
position: relative;
|
||||
width: fit-content;
|
||||
color: $color-file-button;
|
||||
font-weight: 500;
|
||||
|
||||
input {
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
opacity: 0;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.upload-file-btn {
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
|
||||
.icon {
|
||||
filter: invert(15%) sepia(100%) saturate(2861%) hue-rotate(229deg) brightness(93%) contrast(120%);
|
||||
}
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
margin-right: 6px;
|
||||
height: $icon-size;
|
||||
width: $icon-size;
|
||||
filter: invert(15%) sepia(100%) saturate(2861%) hue-rotate(229deg) brightness(93%) contrast(120%);;
|
||||
}
|
||||
|
||||
.remove-btn {
|
||||
display: flex;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
|
||||
.icon.remove {
|
||||
margin-left: 6px;
|
||||
filter: hue-rotate(0) !important;
|
||||
height: calc($icon-size * 0.75);
|
||||
width: calc($icon-size * 0.75);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.submit {
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
.file-input input:focus+.upload-file-btn {
|
||||
outline: -webkit-focus-ring-color auto 1px;
|
||||
}
|
||||
|
||||
padding: 12px;
|
||||
font-size: 18px;
|
||||
line-height: normal;
|
||||
.submit-container {
|
||||
|
||||
.submit {
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
|
||||
padding: 12px;
|
||||
font-size: 18px;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
>div>div>div {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user