From c270583677c5d0bd032adc2f958d759955246031 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Tue, 7 Jul 2015 22:46:23 +0200 Subject: [PATCH] Allow detected external links to linebreak at any place These so called 'bare urls', which are not wrapped in [] can be very long at times and because they are not normal text usually don't wrap to a new line when needed, causing annoying overflows, especially on smaller screens and often on talk pages where they are a bit more common. This is CSS3. Change-Id: Ied3f5fb52d79318c40d541f2c47ae36ea2dfe504 --- resources/src/mediawiki.skinning/elements.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/src/mediawiki.skinning/elements.css b/resources/src/mediawiki.skinning/elements.css index cbc97abc91..d706d26143 100644 --- a/resources/src/mediawiki.skinning/elements.css +++ b/resources/src/mediawiki.skinning/elements.css @@ -64,6 +64,10 @@ a.new:visited, #p-personal a.new:visited { color: #b63; } +.mw-body a.external.free { + word-wrap: break-word; +} + /* Inline Elements */ img { border: none; -- 2.20.1