aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-05-23 15:12:08 -0300
committerRafael França <rafaelmfranca@gmail.com>2016-05-23 15:12:08 -0300
commitac259f7a8bd1bd13dfc608fb1c62fda3bd93c056 (patch)
treee178dcd6a718a99e52be7da731085d77b5c6a362 /railties/lib/rails
parent683b9627b3ad51f14457b580d0d988715b202f96 (diff)
parente47d00a22c25b1b2a89efc8e45f87b889b3d55dc (diff)
downloadrails-ac259f7a8bd1bd13dfc608fb1c62fda3bd93c056.tar.gz
rails-ac259f7a8bd1bd13dfc608fb1c62fda3bd93c056.tar.bz2
rails-ac259f7a8bd1bd13dfc608fb1c62fda3bd93c056.zip
Merge pull request #25110 from andrii/fix_scaffold_css
Fix and optimize scaffold CSS
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/generators/rails/scaffold/templates/scaffold.css12
1 files changed, 4 insertions, 8 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold/templates/scaffold.css b/railties/lib/rails/generators/rails/scaffold/templates/scaffold.css
index 79f8b7f96f..cd4f3de38d 100644
--- a/railties/lib/rails/generators/rails/scaffold/templates/scaffold.css
+++ b/railties/lib/rails/generators/rails/scaffold/templates/scaffold.css
@@ -1,13 +1,13 @@
body {
background-color: #fff;
color: #333;
+ margin: 33px;
}
body, p, ol, ul, td {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 13px;
line-height: 18px;
- margin: 33px;
}
pre {
@@ -34,9 +34,7 @@ th {
}
td {
- padding-bottom: 7px;
- padding-left: 5px;
- padding-right: 5px;
+ padding: 0 5px 7px;
}
div.field,
@@ -57,8 +55,7 @@ div.actions {
#error_explanation {
width: 450px;
border: 2px solid red;
- padding: 7px;
- padding-bottom: 0;
+ padding: 7px 7px 0;
margin-bottom: 20px;
background-color: #f0f0f0;
}
@@ -68,8 +65,7 @@ div.actions {
font-weight: bold;
padding: 5px 5px 5px 15px;
font-size: 12px;
- margin: -7px;
- margin-bottom: 0;
+ margin: -7px -7px 0;
background-color: #c00;
color: #fff;
}