Break words for long links

Follow the solution we have on Minerva (mobile site)
and break long links in page.

Additional change:
Mostly whitespace updates. Use git diff -w to see.

Bug: T327334
Change-Id: I8d7e6a31b3a76375245da312e99f637766ffff8c
This commit is contained in:
Jon Robson 2023-03-07 15:20:51 -08:00 committed by Jdlrobson
parent c0aa8c2a87
commit abb2cc5a48

View file

@ -145,7 +145,13 @@ pre,
// External links // External links
// Use of `a` element selector for limiting generic class scope due to `.external` widespread usage. // Use of `a` element selector for limiting generic class scope due to `.external` widespread usage.
.mw-parser-output a.external { .mw-parser-output {
a {
// Deal with long links (T327334, inspired by Minerva solution T62387)
word-wrap: break-word;
}
a.external {
// Use copy of Codex/OOUI WikimediaUI theme's 'linkExternal' icon in progressive color. // Use copy of Codex/OOUI WikimediaUI theme's 'linkExternal' icon in progressive color.
// Note that CSSJanus is flipping the `ltr` in the URL to `rtl`. // Note that CSSJanus is flipping the `ltr` in the URL to `rtl`.
// Therefore make sure that both icons are available and up-to-date. // Therefore make sure that both icons are available and up-to-date.
@ -161,3 +167,4 @@ pre,
word-break: break-all; word-break: break-all;
} }
} }
}