From 1fbdc5e94eb88d2feb662fbff0a06cf3dc2fbfc7 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Thu, 20 Nov 2014 08:58:55 +0000 Subject: [PATCH] Fix wrapping in code tags Closes #233 --- mkdocs/themes/readthedocs/css/theme_extra.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mkdocs/themes/readthedocs/css/theme_extra.css b/mkdocs/themes/readthedocs/css/theme_extra.css index 12ad1202..65b57894 100644 --- a/mkdocs/themes/readthedocs/css/theme_extra.css +++ b/mkdocs/themes/readthedocs/css/theme_extra.css @@ -1,6 +1,8 @@ /* * Sphinx doesn't have support for section dividers like we do in * MkDocs, this styles the section titles in the nav + * + * https://github.com/tomchristie/mkdocs/issues/175 */ .wy-menu-vertical span { line-height: 18px; @@ -14,8 +16,19 @@ /* * Long navigations run off the bottom of the screen as the nav * area doesn't scroll. + * + * https://github.com/tomchristie/mkdocs/pull/202 */ .wy-nav-side { height: 100%; overflow-y: auto; } + +/* + * Fix wrapping in the code highlighting + * + * https://github.com/tomchristie/mkdocs/issues/233 + */ +code { + white-space: pre; +}