diff --git a/core/modules/system/css/system.theme.css b/core/modules/system/css/system.theme.css index 23ee794..7a8d8d5 100644 --- a/core/modules/system/css/system.theme.css +++ b/core/modules/system/css/system.theme.css @@ -113,21 +113,15 @@ abbr.ajax-changed { margin-right: 0; } -.form-error { - background-color: #fef5f1; - border: 1px solid #ed541d; - color: #8c2e0b; - padding: 5px; -} -.form-error-message { - margin-bottom: 10px; - min-height: 25px; -} -.form-error legend { - position: absolute; -} -.form-error .fieldset-wrapper { - margin-top: 35px; +/* Inline error messages. */ +.form-error-message:before { + content: ''; + display: inline-block; + height: 14px; + width: 14px; + vertical-align: sub; + background: url(../../../misc/icons/ea2800/error.svg) no-repeat; + background-size: contain; } /** diff --git a/core/themes/seven/css/components/form.css b/core/themes/seven/css/components/form.css index 3221df1..7deb2e6 100644 --- a/core/themes/seven/css/components/form.css +++ b/core/themes/seven/css/components/form.css @@ -83,24 +83,8 @@ label[for] { height: 7px; } -/* Inline errors. */ -div.form-error { - margin-top: 0.385em; - padding: inherit; - border: inherit; - background: inherit; -} -.form-error .fieldset-wrapper { - margin-top: 1.75em; -} -.form-error .form-error-message { - margin-bottom: 0; - padding-left: 1.231em; - min-height: inherit; - background: transparent url("../../images/misc-icons-ea2800-error.svg") no-repeat scroll 0.1em center / 0.76em 0.76em; -} -.form-error .form-error-message + .description { - margin-top: 0; +.form-error-message { + color: #ea2800; } /* Filter */ @@ -115,6 +99,7 @@ div.description, font-size: 0.9em; } .form-item .description.error { + margin-top: 0; color: #a51b00; } diff --git a/core/themes/seven/images/misc-icons-ea2800-error.svg b/core/themes/seven/images/misc-icons-ea2800-error.svg deleted file mode 100644 index a715b96..0000000 --- a/core/themes/seven/images/misc-icons-ea2800-error.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file