Permalink
Browse files

ensures that no browser shows a vertical scrollbar in the code blocks…

… of guides, thanks to Marcelino Llano for a hint to fix this
  • Loading branch information...
fxn committed Oct 24, 2010
1 parent 5e0e77f commit cdce5fc8860982afa63bfa82f6a752972e7f7d19
@@ -4,6 +4,8 @@
.syntaxhighlighter {
background-color: #eee !important;
font-family: "Anonymous Pro", "Inconsolata", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace !important;
+ overflow-y: hidden !important;
+ overflow-x: auto !important;
}
.syntaxhighlighter .line.alt1 {
background-color: #eee !important;
@@ -224,7 +224,7 @@ def with_workaround_for_notextile(body)
<notextile>
<div class="code_container">
<pre class="brush: #{brush}; gutter: false; toolbar: false">
-#{ERB::Util.h($2).chomp}
+#{ERB::Util.h($2).strip}
</pre>
</div>
</notextile>

0 comments on commit cdce5fc

Please sign in to comment.