From: Timo Tijhof Date: Thu, 25 Jun 2015 04:38:10 +0000 (+0100) Subject: Wrap lines in
 and .mw-code by default
X-Git-Tag: 1.31.0-rc.0~10985^2
X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=054b1c9e3cd82ee96bb6ee2be3026497e5f9f099;p=lhc%2Fweb%2Fwiklou.git

Wrap lines in 
 and .mw-code by default

No longer create inline scrollbars and/or page-level scrollbarts
with the content escaping the skin container.

This used to be an option in SyntaxHighlighter Geshi (using enclose="div")
but it makes more sense to do by default.

Also move the 'direction' and 'unicode-bidi' rules that currently
live in SyntaxHighlighter extension. Make them the default instead.

Pre-wrap is supported by IE 8+, Firefox 3.5+, Chrome 1+, Opera 8+,
and Safari 3+.

Bug: T103780
Change-Id: Icd8b9bd56d6abc7b64c93e89541cf32c55cf7686
---

diff --git a/resources/src/mediawiki.skinning/elements.css b/resources/src/mediawiki.skinning/elements.css
index 9c59fc1f9c..698603467c 100644
--- a/resources/src/mediawiki.skinning/elements.css
+++ b/resources/src/mediawiki.skinning/elements.css
@@ -199,6 +199,11 @@ pre, .mw-code {
 	background-color: #f9f9f9;
 	border: 1px solid #ddd;
 	padding: 1em;
+	/* @noflip */
+	direction: ltr;
+	unicode-bidi: embed;
+	/* Wrap lines in overflow. T103780 */
+	white-space: pre-wrap;
 }
 
 /* Tables */