diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2017-06-17 10:17:21 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2017-07-17 13:48:45 -0600 |
commit | 4c0477899f2e4a865db070b0526987ca31e525b1 (patch) | |
tree | a8ecdbfd2cab506c5e57d862d55fd32e456a0248 /Documentation/sphinx-static | |
parent | 916f677adab9b0d4b0a5028ba5113a16ddf11192 (diff) | |
download | linux-rt-4c0477899f2e4a865db070b0526987ca31e525b1.tar.gz |
docs RTD theme: code-block with line nos - lines and line numbers don't line up.
In a code-block with line numbers (option :lineno:) there is a
misalignment of the rendered source code lines on the right side and the
line numbers on the left side.
https://github.com/rtfd/sphinx_rtd_theme/issues/419
Since this issue is reported to the RTD theme project, it might be fixed
in the future (take this as a interim solution).
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sphinx-static')
-rw-r--r-- | Documentation/sphinx-static/theme_overrides.css | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/sphinx-static/theme_overrides.css b/Documentation/sphinx-static/theme_overrides.css index 1c9a9ab0f48c..522b6d4c49d4 100644 --- a/Documentation/sphinx-static/theme_overrides.css +++ b/Documentation/sphinx-static/theme_overrides.css @@ -4,6 +4,17 @@ * */ +/* Interim: Code-blocks with line nos - lines and line numbers don't line up. + * see: https://github.com/rtfd/sphinx_rtd_theme/issues/419 + */ + +div[class^="highlight"] pre { + line-height: normal; +} +.rst-content .highlight > pre { + line-height: normal; +} + @media screen { /* content column |