Skip to content

Commit

Permalink
Fix problem caused by two .highlight elements (#1421)
Browse files Browse the repository at this point in the history
For some reason the highlighter output:

<div class="highlight">
  <pre class="highlight">
    <!-- ... -->
  </pre>
</div>

which causes all styles with the selector `.highlight` to be applied on
both. Most of them don't have a visible impact, except the one which
adds a pseudo-element. This is now fixed by specifying the element.
  • Loading branch information
silvenon authored Feb 17, 2020
1 parent 6b5a30a commit 779e721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/css/playground.css
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ small code,li code,p code {
text-align: right;
}

.highlight:after {
div.highlight:after {
position: absolute;
top: 0;
right: 0;
Expand Down

0 comments on commit 779e721

Please sign in to comment.