chiark / gitweb /
css: document that code blocks overflow with a scrollbar.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 1 Nov 2017 16:45:52 +0000 (17:45 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 1 Nov 2017 23:02:12 +0000 (00:02 +0100)
Instead of the lines being wrapped.

doc/css/components.rst

index e490fbb73805e5f6cc2a63425fc61940f3f08ba3..a948367a3e7a7efd916bada560ba579be5933015 100644 (file)
@@ -669,7 +669,9 @@ For example, code highlighted using:
 
 Will spit out a bunch of :html:`<span>` elements like below. To create a code
 block, wrap the output in :html:`<pre class="m-code">` (note that whitespace
-matters inside this tag):
+matters inside this tag). The block doesn't wrap lines on narrow screens to not
+hurt readability, a horizontal scrollbar is shown instead if the content is
+too wide.
 
 .. code-figure::