villejuif: use custom style for field on error (#75382)

This commit is contained in:
Thomas Jund 2023-04-06 17:08:03 +02:00 committed by Frédéric Péters
parent 384baffd71
commit f780708a45
2 changed files with 11 additions and 6 deletions

View File

@ -179,13 +179,17 @@ div.infonotice::before, div.warningnotice::before, div.errornotice::before {
content: url(/static/dialog-warning.png);
}
div.error{
font-size: 0.95em;
color:red;
}
@if ($field-on-error-style == custom) {
div.error{
font-size: 0.95em;
color:red;
}
div.error + textarea, div.error + input,div.error + ul input {
border: 1px solid red;
.widget-with-error {
textarea, input, ul input {
border: 1px solid red;
}
}
}
div.widget div.title {

View File

@ -27,3 +27,4 @@ $button-border-radius: 5px;
$buttons-order: previous, cancel, submit;
$widget-unique-checkbox-position: left;
$field-on-error-style: custom;