issues/27: generic content CRUD with field error widgets
This commit is contained in:
committed by
Valeriy Petrov
parent
90779fdc08
commit
67388d9628
@@ -147,3 +147,31 @@ input[type="number"]:focus {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
// Ошибки валидации в формах контента (SB Admin перебивает .text-danger на label)
|
||||
.content-field--has-error {
|
||||
margin-bottom: 1rem;
|
||||
padding: 0.75rem;
|
||||
border: 1px solid #e74a3b;
|
||||
border-radius: 0.35rem;
|
||||
background-color: #fff5f5;
|
||||
}
|
||||
|
||||
.content-field--has-error > label,
|
||||
.content-field--has-error .content-field-error-label {
|
||||
color: #e74a3b !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.content-field--has-error .form-control,
|
||||
.content-field--has-error .form-check-input {
|
||||
border-color: #e74a3b !important;
|
||||
}
|
||||
|
||||
.content-field-error-msg {
|
||||
display: block;
|
||||
margin-top: 0.35rem;
|
||||
color: #e74a3b !important;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user