Skip to content

Commit 68a033e

Browse files
committed
Merge pull request rails#19858 from cllns/fix-scaffolding-css-formatting
Fix formatting of scaffold css
2 parents eb9e863 + f90e1bc commit 68a033e

File tree

1 file changed

+20
-7
lines changed
  • railties/lib/rails/generators/rails/scaffold/templates

1 file changed

+20
-7
lines changed

railties/lib/rails/generators/rails/scaffold/templates/scaffold.css

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
body { background-color: #fff; color: #333; }
1+
body {
2+
background-color: #fff;
3+
color: #333;
4+
}
25

36
body, p, ol, ul, td {
47
font-family: verdana, arial, helvetica, sans-serif;
5-
font-size: 13px;
8+
font-size: 13px;
69
line-height: 18px;
710
margin: 33px;
811
}
@@ -13,9 +16,18 @@ pre {
1316
font-size: 11px;
1417
}
1518

16-
a { color: #000; }
17-
a:visited { color: #666; }
18-
a:hover { color: #fff; background-color:#000; }
19+
a {
20+
color: #000;
21+
}
22+
23+
a:visited {
24+
color: #666;
25+
}
26+
27+
a:hover {
28+
color: #fff;
29+
background-color: #000;
30+
}
1931

2032
th {
2133
padding-bottom: 5px;
@@ -27,7 +39,8 @@ td {
2739
padding-right: 5px;
2840
}
2941

30-
div.field, div.actions {
42+
div.field,
43+
div.actions {
3144
margin-bottom: 10px;
3245
}
3346

@@ -56,7 +69,7 @@ div.field, div.actions {
5669
padding: 5px 5px 5px 15px;
5770
font-size: 12px;
5871
margin: -7px;
59-
margin-bottom: 0px;
72+
margin-bottom: 0;
6073
background-color: #c00;
6174
color: #fff;
6275
}

0 commit comments

Comments
 (0)