]> cat aescling's git repositories - mastodon.git/commitdiff
Improve style of notice/alert messages (#8973)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 12 Oct 2018 23:51:30 +0000 (01:51 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Oct 2018 23:51:30 +0000 (01:51 +0200)
app/javascript/styles/mastodon-light/diff.scss
app/javascript/styles/mastodon/forms.scss

index ac161a00425b2425041b7a36d93d9c2fc401e3e1..78bc2dbb6d50e0ab8371f7d28676492feb95c48e 100644 (file)
   }
 }
 
-.flash-message {
-  box-shadow: none;
-
-  &.notice {
-    background: rgba($success-green, 0.5);
-    color: lighten($success-green, 12%);
-  }
-
-  &.alert {
-    background: rgba($error-red, 0.5);
-    color: lighten($error-red, 12%);
-  }
-}
-
 .simple_form,
 .table-form {
   .warning {
index be2bf7cead09f43c9d240c89d5d127a31ed8e37e..eb94f2273bdd2ca6d0f60278a3a46f238c49d8f0 100644 (file)
@@ -460,9 +460,20 @@ code {
   border-radius: 4px;
   padding: 15px 10px;
   margin-bottom: 30px;
-  box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
   text-align: center;
 
+  &.notice {
+    border: 1px solid rgba($valid-value-color, 0.5);
+    background: rgba($valid-value-color, 0.25);
+    color: $valid-value-color;
+  }
+
+  &.alert {
+    border: 1px solid rgba($error-value-color, 0.5);
+    background: rgba($error-value-color, 0.25);
+    color: $error-value-color;
+  }
+
   p {
     margin-bottom: 15px;
   }