diff options
author | José Valim <jose.valim@gmail.com> | 2009-08-30 17:04:16 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-08-30 17:04:16 +0200 |
commit | 5096ba961c49e5b419c3400acd7c87373a36d6d4 (patch) | |
tree | 2af184416f088310af9bf9e89b57cf438a06987c /railties | |
parent | 5d645c271b350c2a3ed7fd835e539322cda61d8c (diff) | |
download | rails-5096ba961c49e5b419c3400acd7c87373a36d6d4.tar.gz rails-5096ba961c49e5b419c3400acd7c87373a36d6d4.tar.bz2 rails-5096ba961c49e5b419c3400acd7c87373a36d6d4.zip |
Remove inline css. [#593 status:resolved]
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/generators/erb/scaffold/templates/layout.html.erb | 2 | ||||
-rw-r--r-- | railties/lib/generators/rails/stylesheets/templates/scaffold.css | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/generators/erb/scaffold/templates/layout.html.erb b/railties/lib/generators/erb/scaffold/templates/layout.html.erb index aacfbe4a8f..6460e5b599 100644 --- a/railties/lib/generators/erb/scaffold/templates/layout.html.erb +++ b/railties/lib/generators/erb/scaffold/templates/layout.html.erb @@ -7,7 +7,7 @@ </head> <body> -<p style="color: green"><%%= flash[:notice] %></p> +<p class="notice"><%%= flash[:notice] %></p> <%%= yield %> diff --git a/railties/lib/generators/rails/stylesheets/templates/scaffold.css b/railties/lib/generators/rails/stylesheets/templates/scaffold.css index 163f11441c..a3fdd11f6d 100644 --- a/railties/lib/generators/rails/stylesheets/templates/scaffold.css +++ b/railties/lib/generators/rails/stylesheets/templates/scaffold.css @@ -20,6 +20,10 @@ div.attribute, div.action { margin-bottom: 10px; } +.notice { + color: green; +} + .fieldWithErrors { padding: 2px; background-color: red; |