Skip to content

Commit

Permalink
use <pre><code> blocks consistently for highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 31, 2015
1 parent 0d61a23 commit 4d21ed1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/Mojolicious/templates/development.html.ep
Expand Up @@ -18,7 +18,7 @@
line-height: 1.5em;
margin: 0;
}
code {
:not(pre) > code {
background-color: #eef9ff;
border: solid #cce4ff 1px;
border-radius: 5px;
Expand All @@ -36,6 +36,12 @@
margin: 0;
white-space: pre-wrap;
}
pre > code {
display: block;
font: 1.0em Consolas, Menlo, Monaco, Courier, monospace;
margin-bottom: 0.7em;
margin-top: 0.7em;
}
table {
border-collapse: collapse;
width: 100%;
Expand Down Expand Up @@ -145,7 +151,7 @@
%= tag 'tr', $i ? (class => 'important') : (), begin
<td class="key"><%= $key %></td>
<td class="value wide">
<pre class="prettyprint"><%= $value %></pre>
<pre><code class="prettyprint"><%= $value %></code></pre>
</td>
% end
% end
Expand Down

0 comments on commit 4d21ed1

Please sign in to comment.