mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
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:
parent
c0aa8c2a87
commit
abb2cc5a48
|
@ -145,19 +145,26 @@ pre,
|
|||
|
||||
// External links
|
||||
// Use of `a` element selector for limiting generic class scope due to `.external` widespread usage.
|
||||
.mw-parser-output a.external {
|
||||
// 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`.
|
||||
// Therefore make sure that both icons are available and up-to-date.
|
||||
background-image: url( images/link-external-small-ltr-progressive.svg );
|
||||
background-position: center right;
|
||||
background-repeat: no-repeat;
|
||||
// Equivalent of `12px` at calculation base of `14px` is `0.857em`.
|
||||
background-size: 0.857em;
|
||||
padding-right: 1em;
|
||||
.mw-parser-output {
|
||||
a {
|
||||
// Deal with long links (T327334, inspired by Minerva solution T62387)
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
// See T330712 for better understanding of this class and any future changes.
|
||||
&.free {
|
||||
word-break: break-all;
|
||||
a.external {
|
||||
// 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`.
|
||||
// Therefore make sure that both icons are available and up-to-date.
|
||||
background-image: url( images/link-external-small-ltr-progressive.svg );
|
||||
background-position: center right;
|
||||
background-repeat: no-repeat;
|
||||
// Equivalent of `12px` at calculation base of `14px` is `0.857em`.
|
||||
background-size: 0.857em;
|
||||
padding-right: 1em;
|
||||
|
||||
// See T330712 for better understanding of this class and any future changes.
|
||||
&.free {
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue