Skip to content

Commit 047169a

Browse files
committed
Restore highlighted code lines span full width
1 parent 8d93cde commit 047169a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

sphinx_rtd_theme/static/css/theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sass/_theme_rst.sass

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
padding: ($base-line-height / 2) ($base-line-height / 2)
8686
display: block
8787
overflow: auto
88+
& .hll
89+
// Line emphasis spans full width
90+
display: block
91+
margin: 0 (-1 * $base-line-height / 2)
92+
padding: 0 ($base-line-height / 2)
8893
pre.literal-block, div[class^='highlight'] pre, .linenodiv pre
8994
font-family: $code-font-family
9095
font-size: 12px

0 commit comments

Comments
 (0)