diff options
author | Henry Phan <henry@henryphan.com> | 2011-02-05 13:09:35 -0800 |
---|---|---|
committer | Henry Phan <henry@henryphan.com> | 2011-02-05 13:09:35 -0800 |
commit | 742f5f4a5d0deec132d2bfed53706e05d51871cb (patch) | |
tree | 5b1b8d209f866d97d3dc340bd5dce04f82d6c643 | |
parent | 8b5dc9caa52a2877e3ecc207515fd156abad45e0 (diff) | |
download | rails-742f5f4a5d0deec132d2bfed53706e05d51871cb.tar.gz rails-742f5f4a5d0deec132d2bfed53706e05d51871cb.tar.bz2 rails-742f5f4a5d0deec132d2bfed53706e05d51871cb.zip |
Add CSS fix for WebKit/Mac rendering issue.
-rw-r--r-- | railties/guides/assets/stylesheets/fixes.css | 16 | ||||
-rw-r--r-- | railties/guides/source/layout.html.erb | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/railties/guides/assets/stylesheets/fixes.css b/railties/guides/assets/stylesheets/fixes.css new file mode 100644 index 0000000000..54efa5b9b7 --- /dev/null +++ b/railties/guides/assets/stylesheets/fixes.css @@ -0,0 +1,16 @@ +/* + Fix a rendering issue affecting WebKits on Mac. + See https://github.com/lifo/docrails/issues#issue/16 for more information. +*/ +.syntaxhighlighter a, +.syntaxhighlighter div, +.syntaxhighlighter code, +.syntaxhighlighter table, +.syntaxhighlighter table td, +.syntaxhighlighter table tr, +.syntaxhighlighter table tbody, +.syntaxhighlighter table thead, +.syntaxhighlighter table caption, +.syntaxhighlighter textarea { + line-height: 1.2em !important; +} diff --git a/railties/guides/source/layout.html.erb b/railties/guides/source/layout.html.erb index 91dab18b21..e924f2f6c0 100644 --- a/railties/guides/source/layout.html.erb +++ b/railties/guides/source/layout.html.erb @@ -12,6 +12,8 @@ <link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shCore.css" /> <link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shThemeRailsGuides.css" /> + +<link rel="stylesheet" type="text/css" href="stylesheets/fixes.css" /> </head> <body class="guide"> <% if @edge %> |