]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.css.scss
Highlight erroneous fields by adding a class to them
[rails.git] / app / assets / stylesheets / common.css.scss
index d73d1000ac189b381dbeca288d3b8871376e1e17..d0aa003d776023588c772ea35deb7f291dc7227f 100644 (file)
@@ -1725,12 +1725,6 @@ header .search_form {
 
 /* Rules for highlighting fields with rails validation errors */
 
-.field_with_errors {
-  padding: 2px;
-  background-color: #ff7070;
-  display: inline-block;
-}
-
 .formError {
   display: inline-block;
   padding: 5px 10px;
@@ -1843,6 +1837,10 @@ textarea {
   padding: 2px 5px;
   margin: 0;
   width: 200px;
+
+  &.field_with_errors {
+    border: 2px solid #ff7070;
+  }
 }
 
 textarea {