logo

blog

My little blog can’t be this cute! git clone https://hacktivis.me/git/blog.git
commit: 8dc808da8c627e2bc7e65cb221847ffdc08a29b7
parent e0e024351df0508768f65454a5889d8a28379c99
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 11 Jun 2019 17:30:28 +0200

css/index.css: Use the new break-spaces value in pre

As seen in https://blogs.igalia.com/jfernandez/2019/06/10/a-new-terminal-style-line-breaking-with-css-text/

Diffstat:

Mcss/index.css7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/css/index.css b/css/index.css @@ -21,7 +21,12 @@ code { font-family: monospace; } h1, h2, h3, h4, h5, h6 { font-family: serif; } -pre { white-space: pre-wrap; } +pre { + /* pre-wrap is there for legacy reasons as break-spaces is recent */ + white-space: pre-wrap; + white-space: break-spaces; + word-break: break-all; +} section h1, section h2 { text-align: center; } article, section { display: inline-table;