Skip to content

Commit 73ca35f

Browse files
committed
Add a outline hack for scrolling issue
1 parent 18874fb commit 73ca35f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

assets/css/content.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,16 @@ pre code {
321321
border-top-right-radius: 3px;
322322
transform: rotate(-45deg);
323323
}
324+
325+
/* Hacks --------------------- */
326+
327+
/* Fixes horizontal scrolling in code blocks on OS X El Cap (10.11.3), retina screen
328+
*
329+
* By adding an invisible outline property, it will force a repaint
330+
* which enables the scrolling.
331+
*/
332+
333+
.hljs:hover,
334+
.hljs:active {
335+
outline: 1px solid transparent;
336+
}

0 commit comments

Comments
 (0)