about summary refs log tree commit diff
path: root/app/assets
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-16 11:46:25 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-16 11:46:25 +0100
commit8767a98fbb013bed01443721c17eadeba70c3421 (patch)
tree9f4fe9eb054ada8d9bbea5cb108fee58a792c6f3 /app/assets
parenta9db42a956fb045131b06ba434a74189c96ad651 (diff)
Adding CSS for form errors, adding missing indices
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/stylesheets/dashboard.scss26
1 files changed, 25 insertions, 1 deletions
diff --git a/app/assets/stylesheets/dashboard.scss b/app/assets/stylesheets/dashboard.scss
index 08a9415d1..ad05f5b7b 100644
--- a/app/assets/stylesheets/dashboard.scss
+++ b/app/assets/stylesheets/dashboard.scss
@@ -214,6 +214,12 @@
     text-align: center;
   }
 
+  .error_notification {
+    color: #df405a;
+    font-weight: 500;
+    margin-bottom: 15px;
+  }
+
   .input {
     margin-bottom: 15px;
 
@@ -238,7 +244,7 @@
       font-size: 14px;
       font-family: 'Roboto', sans-serif;
 
-      &:focus {
+      &:focus, &:active {
         border-bottom: 2px solid #2b90d9;
         padding-bottom: 5px;
       }
@@ -253,6 +259,24 @@
       margin-top: 5px;
       color: lighten(#282c37, 25%);
     }
+
+    &.field_with_errors {
+      input[type=text], input[type=email], input[type=password], textarea {
+        border-bottom: 2px solid #df405a;
+        padding-bottom: 5px;
+
+        &:focus, &:active {
+          border-bottom: 2px solid #2b90d9;
+          padding-bottom: 5px;
+        }
+      }
+
+      .error {
+        display: block;
+        margin-top: 5px;
+        color: #df405a;
+      }
+    }
   }
 }