chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9baea39
)
css: document that code blocks overflow with a scrollbar.
author
Vladimír Vondruš
<mosra@centrum.cz>
Wed, 1 Nov 2017 16:45:52 +0000
(17:45 +0100)
committer
Vladimí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
patch
|
blob
|
history
diff --git
a/doc/css/components.rst
b/doc/css/components.rst
index e490fbb73805e5f6cc2a63425fc61940f3f08ba3..a948367a3e7a7efd916bada560ba579be5933015 100644
(file)
--- a/
doc/css/components.rst
+++ b/
doc/css/components.rst
@@
-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::