mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add CSS fix for WebKit/Mac rendering issue.
This commit is contained in:
parent
8b5dc9caa5
commit
742f5f4a5d
2 changed files with 18 additions and 0 deletions
16
railties/guides/assets/stylesheets/fixes.css
Normal file
16
railties/guides/assets/stylesheets/fixes.css
Normal file
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue