Skip to content

Instantly share code, notes, and snippets.

@nutti
Created March 16, 2015 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nutti/09803c1259053c084ec8 to your computer and use it in GitHub Desktop.
Save nutti/09803c1259053c084ec8 to your computer and use it in GitHub Desktop.
[Javascript] Fix bug: output source code from highlight.js is overflowed
@@ -6,11 +6,13 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
.hljs {
display: block;
+ word-wrap: break-word;
overflow-x: auto;
padding: 0.5em;
color: #333;
background: #f8f8f8;
-webkit-text-size-adjust: none;
+ font-size: 80%;
}
.hljs-comment,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment