diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-11 11:03:45 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-11 11:03:45 +0200 |
commit | eda92ed4c0d2735144df8fa2136584de69634bdb (patch) | |
tree | ab1f817904ed365e657380d784107ef4e14f18ce /skins/larry/editor_content.css | |
parent | 638ebf69c4bdc3717d8ae535ec3b1f4b753f5856 (diff) |
Improved display of plain text messages and text to HTML conversion (#1488937)
Now instead of <pre> we use <div class="pre"> styled with monospace
font. We replace whitespace characters with non-breaking spaces where
needed. I.e. plain text is always unwrappable, until it uses format=flowed,
in such a case only flowed paragraphs are wrappable.
Also conversion of text to HTML in compose editor was modified in the same way.
Diffstat (limited to 'skins/larry/editor_content.css')
-rw-r--r-- | skins/larry/editor_content.css | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/skins/larry/editor_content.css b/skins/larry/editor_content.css index aabed07b5..67480ab77 100644 --- a/skins/larry/editor_content.css +++ b/skins/larry/editor_content.css @@ -12,20 +12,15 @@ body { margin-top: 2px; } -pre -{ +div.pre { margin: 0; padding: 0; - white-space: -moz-pre-wrap !important; - white-space: pre-wrap !important; - white-space: pre; - word-wrap: break-word; /* IE (and Safari) */ + font-family: monospace; } blockquote { - padding-left: 5px; border-left: #1010ff 2px solid; - margin-left: 5px; - width: 100%; + margin: 0; + padding: 0 0.4em; } |