Permalink
Browse files

Add CSS fix for WebKit/Mac rendering issue.

  • Loading branch information...
1 parent 8b5dc9c commit 742f5f4a5d0deec132d2bfed53706e05d51871cb @htp htp committed Feb 5, 2011
Showing with 18 additions and 0 deletions.
  1. +16 −0 railties/guides/assets/stylesheets/fixes.css
  2. +2 −0 railties/guides/source/layout.html.erb
@@ -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;
+}
@@ -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 %>

0 comments on commit 742f5f4

Please sign in to comment.