css: improve styles of form field on error (#75382) #202
|
@ -521,22 +521,23 @@ div#rub_service {
|
|||
h4 {
|
||||
@extend .h3;
|
||||
}
|
||||
div.error {
|
||||
font-weight: normal;
|
||||
font-size: $fz-small;
|
||||
color: $error-color;
|
||||
background: none;
|
||||
padding-left: 0;
|
||||
&::before {
|
||||
pointer-events: none;
|
||||
content: "\f071"; // triangle-exclamation
|
||||
font-family: FontAwesome;
|
||||
font-size: 20px;
|
||||
color: $salmon-dark;
|
||||
}
|
||||
p {
|
||||
display: inline;
|
||||
padding-left: 0.5rem;
|
||||
@if ($field-on-error-style == custom) {
|
||||
div.error {
|
||||
font-weight: normal;
|
||||
font-size: $fz-small;
|
||||
color: $error-color;
|
||||
background: none;
|
||||
padding-left: 0;
|
||||
&::before {
|
||||
pointer-events: none;
|
||||
content: "\f071"; // triangle-exclamation
|
||||
font-family: FontAwesome;
|
||||
font-size: 20px;
|
||||
color: $salmon-dark;
|
||||
}
|
||||
p {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
.submit-button button::after {
|
||||
|
|
|
@ -93,6 +93,7 @@ $button-hover-background: $salmon;
|
|||
$title-background: transparent;
|
||||
|
||||
$error-color: #D00000;
|
||||
$field-on-error-style: custom;
|
||||
$form-sidebar-position: top;
|
||||
$wcs-step-color: $font-color;
|
||||
$wcs-step-current-color: $wcs-step-color;
|
||||
|
|
Loading…
Reference in New Issue