Commit 4379be2d authored by Sven Franck's avatar Sven Franck

fixed CSS positioning of validation error messages

parent 969534cc
...@@ -9,18 +9,34 @@ html body label.required_label:after { ...@@ -9,18 +9,34 @@ html body label.required_label:after {
position: absolute; position: absolute;
width: 100%; width: 100%;
} }
html body input ~ .ui-invalid-label { html body input ~ .ui-invalid-label,
html body textarea ~ .ui-invalid-label,
html body select ~ .ui-invalid-label {
display: none; display: none;
} }
html body input.invalid ~ .ui-invalid-label { html body input.invalid ~ .ui-invalid-label,
left: 0; html body textarea.invalid ~ .ui-invalid-label,
html body select.invalid ~ .ui-invalid-label {
bottom: 0; bottom: 0;
margin-bottom: -1.35em; right: 0;
margin-bottom: -1.25em;
color: red; color: red;
font-size: 0.75em; font-size: 0.75em;
display: inline-block; display: inline-block;
position: absolute; position: absolute;
} }
@media (max-width: 40em) {
html body input.invalid ~ .ui-invalid-label,
html body textarea.invalid ~ .ui-invalid-label,
html body select.invalid ~ .ui-invalid-label {
top: 0;
right: 0;
left: auto;
bottom: auto;
margin-bottom: auto;
margin-top: -1.75em;
}
}
/* ======================== disabled form fields ========================= */ /* ======================== disabled form fields ========================= */
span.static { span.static {
padding: 0 .5em; padding: 0 .5em;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment