Skip to content
This repository
Browse code

Remove inline css. [#593 status:resolved]

  • Loading branch information...
commit 5096ba961c49e5b419c3400acd7c87373a36d6d4 1 parent 5d645c2
José Valim authored August 30, 2009
2  railties/lib/generators/erb/scaffold/templates/layout.html.erb
@@ -7,7 +7,7 @@
7 7
 </head>
8 8
 <body>
9 9
 
10  
-<p style="color: green"><%%= flash[:notice] %></p>
  10
+<p class="notice"><%%= flash[:notice] %></p>
11 11
 
12 12
 <%%= yield %>
13 13
 
4  railties/lib/generators/rails/stylesheets/templates/scaffold.css
@@ -20,6 +20,10 @@ div.attribute, div.action {
20 20
   margin-bottom: 10px;
21 21
 }
22 22
 
  23
+.notice {
  24
+  color: green;
  25
+}
  26
+
23 27
 .fieldWithErrors {
24 28
   padding: 2px;
25 29
   background-color: red;

2 notes on commit 5096ba9

Clemens Kofler

Finally ...

Andrew Chalkley

Yes!

Please sign in to comment.
Something went wrong with that request. Please try again.