Skip to content

Commit 52aac91

Browse files
committed
Fix styles so there's no horizontal scroll bar except in code blocks
1 parent 8da6159 commit 52aac91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stylesheets/styles.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ pre.highlight {
110110
line-height: 1em;
111111
}
112112

113-
.highlighter-rouge .highlight {
113+
/*
114+
Only target elements that are direct descendants of article, otherwise
115+
inline code will be affected by the style and wrap over normal text.
116+
*/
117+
article > .highlighter-rouge {
114118
margin: 0 -15px;
115119
}
116120

0 commit comments

Comments
 (0)