aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/routes
diff options
context:
space:
mode:
authorWinston <winston.yongwei@gmail.com>2014-04-06 18:03:55 +0800
committerWinston <winston.yongwei@gmail.com>2014-04-11 17:09:00 +0800
commit2ad5dad203ce96061dfe8aabb707d03aa86ab5bf (patch)
tree17e67799fadebfd412d3bbc23c200ffa319bc3b5 /actionpack/lib/action_dispatch/middleware/templates/routes
parent976495c787232fabcd860c1e1786f1e213f2f998 (diff)
downloadrails-2ad5dad203ce96061dfe8aabb707d03aa86ab5bf.tar.gz
rails-2ad5dad203ce96061dfe8aabb707d03aa86ab5bf.tar.bz2
rails-2ad5dad203ce96061dfe8aabb707d03aa86ab5bf.zip
Improve CSS styling for routing error html page.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates/routes')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb32
1 files changed, 25 insertions, 7 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb b/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb
index 6ee48f95ea..3d9e520eba 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb
@@ -4,21 +4,39 @@
border-collapse: collapse;
}
- #route_table td {
- padding: 0 30px;
+ #route_table thead tr {
+ border-bottom: 2px solid #ddd;
+ }
+
+ #route_table thead tr.bottom {
+ border-bottom: none;
}
- #route_table tr.bottom th {
- padding-bottom: 10px;
+ #route_table thead tr.bottom th {
+ padding: 10px 0;
line-height: 15px;
}
- #route_table .matched_paths {
+ #route_table tbody tr {
+ border-bottom: 1px solid #ddd;
+ }
+
+ #route_table tbody tr:nth-child(odd) {
+ background: #f2f2f2;
+ }
+
+ #route_table tbody.matched_paths {
background-color: LightGoldenRodYellow;
+ border-bottom: solid 2px SlateGrey;
}
- #route_table .matched_paths {
- border-bottom: solid 3px SlateGrey;
+ #route_table tbody.matched_paths tr {
+ background: none;
+ border-bottom: none;
+ }
+
+ #route_table td {
+ padding: 4px 30px;
}
#path_search {