From 045fc6807820ba1a1976799a237cc01cfc8403c8 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 27 Jun 2020 17:23:55 +0200 Subject: [PATCH] basic CSS: remove overflow-x from admonition/topic, allow more "floating" --- sphinx/themes/basic/static/basic.css_t | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t index e0f24c8a1..53e685061 100644 --- a/sphinx/themes/basic/static/basic.css_t +++ b/sphinx/themes/basic/static/basic.css_t @@ -328,8 +328,8 @@ p.sidebar-title { font-weight: bold; } -div.admonition, div.topic, pre, div[class|="highlight"] { - clear: both; +div.admonition, div.topic, blockquote { + clear: left; } /* -- topics ---------------------------------------------------------------- */ @@ -338,7 +338,6 @@ div.topic { border: 1px solid #ccc; padding: 7px; margin: 10px 0 10px 0; - overflow-x: auto; } p.topic-title { @@ -353,7 +352,6 @@ div.admonition { margin-top: 10px; margin-bottom: 10px; padding: 7px; - overflow-x: auto; } div.admonition dt { @@ -680,6 +678,10 @@ pre { overflow-y: hidden; /* fixes display issues on Chrome browsers */ } +pre, div[class|="highlight"] { + clear: both; +} + span.pre { -moz-hyphens: none; -ms-hyphens: none;