aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-22 13:44:20 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-04-22 13:44:20 -0300
commit68a033ea5fac99f96a63de583552764a93c7d88c (patch)
treec053aab57259857f59ca3500116bd3767897ac9e /railties
parenteb9e863648b3a3d255c13fefe9abd11a79401703 (diff)
parentf90e1bc215b76ca460b5dc2057801fb4c5af2d2b (diff)
downloadrails-68a033ea5fac99f96a63de583552764a93c7d88c.tar.gz
rails-68a033ea5fac99f96a63de583552764a93c7d88c.tar.bz2
rails-68a033ea5fac99f96a63de583552764a93c7d88c.zip
Merge pull request #19858 from cllns/fix-scaffolding-css-formatting
Fix formatting of scaffold css
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/scaffold/templates/scaffold.css27
1 files changed, 20 insertions, 7 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold/templates/scaffold.css b/railties/lib/rails/generators/rails/scaffold/templates/scaffold.css
index 69af1e8307..b7818883d1 100644
--- a/railties/lib/rails/generators/rails/scaffold/templates/scaffold.css
+++ b/railties/lib/rails/generators/rails/scaffold/templates/scaffold.css
@@ -1,8 +1,11 @@
-body { background-color: #fff; color: #333; }
+body {
+ background-color: #fff;
+ color: #333;
+}
body, p, ol, ul, td {
font-family: verdana, arial, helvetica, sans-serif;
- font-size: 13px;
+ font-size: 13px;
line-height: 18px;
margin: 33px;
}
@@ -13,9 +16,18 @@ pre {
font-size: 11px;
}
-a { color: #000; }
-a:visited { color: #666; }
-a:hover { color: #fff; background-color:#000; }
+a {
+ color: #000;
+}
+
+a:visited {
+ color: #666;
+}
+
+a:hover {
+ color: #fff;
+ background-color: #000;
+}
th {
padding-bottom: 5px;
@@ -27,7 +39,8 @@ td {
padding-right: 5px;
}
-div.field, div.actions {
+div.field,
+div.actions {
margin-bottom: 10px;
}
@@ -56,7 +69,7 @@ div.field, div.actions {
padding: 5px 5px 5px 15px;
font-size: 12px;
margin: -7px;
- margin-bottom: 0px;
+ margin-bottom: 0;
background-color: #c00;
color: #fff;
}