Created
March 24, 2010 10:16
-
-
Save mariovisic/342156 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From efc0891173d385bd4f62d7d531b3f9667a072c5e Mon Sep 17 00:00:00 2001 | |
From: Mario Visic <mario@mariovisic.com> | |
Date: Wed, 24 Mar 2010 18:11:19 +0800 | |
Subject: [PATCH] Alterd the styling of error messages displayed on admin forms | |
--- | |
public/stylesheets/admin/main.css | 10 ++++++---- | |
public/stylesheets/sass/admin/partials/_forms.sass | 15 ++++++++++----- | |
2 files changed, 16 insertions(+), 9 deletions(-) | |
diff --git a/public/stylesheets/admin/main.css b/public/stylesheets/admin/main.css | |
index df193ce..d78ee07 100644 | |
--- a/public/stylesheets/admin/main.css | |
+++ b/public/stylesheets/admin/main.css | |
@@ -440,11 +440,13 @@ img.avatar { | |
float: right; | |
margin: 10px 0px; } | |
-.error_with_field .error { | |
- color: #f00; | |
+.error-with-field input { | |
+ background-color: #ffe2e2; } | |
+.error-with-field .error { | |
+ color: #b11; | |
display: block; | |
- padding: 2px; | |
- padding-top: 0; } | |
+ padding-top: 1px; | |
+ padding-bottom: 5px; } | |
textarea { | |
border: 1px solid #cdc295; | |
diff --git a/public/stylesheets/sass/admin/partials/_forms.sass b/public/stylesheets/sass/admin/partials/_forms.sass | |
index ecd6937..c260d06 100644 | |
--- a/public/stylesheets/sass/admin/partials/_forms.sass | |
+++ b/public/stylesheets/sass/admin/partials/_forms.sass | |
@@ -182,11 +182,16 @@ | |
float: right | |
margin: 10px 0px | |
-.error_with_field .error | |
- color: #f00 | |
- display: block | |
- padding: 2px | |
- padding-top: 0 | |
+.error-with-field | |
+ input | |
+ background: | |
+ color: #ffe2e2 | |
+ .error | |
+ color: #b11 | |
+ display: block | |
+ padding: | |
+ top: 1px | |
+ bottom: 5px | |
textarea | |
border: 1px solid #cdc295 | |
-- | |
1.7.0.2+GitX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment