diff --git a/resources/common/images/external-link-ltr-icon.svg b/resources/common/images/external-link-ltr-icon.svg deleted file mode 100644 index 526f9993..00000000 --- a/resources/common/images/external-link-ltr-icon.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/resources/common/images/external-link-rtl-icon.svg b/resources/common/images/external-link-rtl-icon.svg deleted file mode 100644 index 54fb18e8..00000000 --- a/resources/common/images/external-link-rtl-icon.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/resources/common/images/link-external-small-ltr-progressive.svg b/resources/common/images/link-external-small-ltr-progressive.svg new file mode 100644 index 00000000..12a36230 --- /dev/null +++ b/resources/common/images/link-external-small-ltr-progressive.svg @@ -0,0 +1,7 @@ + + + + external link + + + diff --git a/resources/common/images/link-external-small-rtl-progressive.svg b/resources/common/images/link-external-small-rtl-progressive.svg new file mode 100644 index 00000000..b889866e --- /dev/null +++ b/resources/common/images/link-external-small-rtl-progressive.svg @@ -0,0 +1,7 @@ + + + + external link + + + diff --git a/resources/common/typography.less b/resources/common/typography.less index 73bf3002..906bc89b 100644 --- a/resources/common/typography.less +++ b/resources/common/typography.less @@ -140,10 +140,15 @@ pre, } // External links -// Use of `a` element selector due to its widespread usage and for limiting generic class scope. +// Use of `a` element selector for limiting generic class scope due to `.external` widespread usage. .mw-parser-output a.external { - background-image: url( images/external-link-ltr-icon.svg ); + // 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; - padding-right: 13px; + // Equivalent of `12px` at calculation base of `14px` is `0.857em`. + background-size: 0.857em; + padding-right: 1em; } diff --git a/resources/common/variables.less b/resources/common/variables.less index bc4f5fb1..0e298121 100644 --- a/resources/common/variables.less +++ b/resources/common/variables.less @@ -63,6 +63,7 @@ @size-sidebar-button: unit( 44 / @font-size-browser, em ); // Equals `2.75em`. @size-icon: unit( 20 / @font-size-browser, em ); +@size-indicator: unit( 12 / @font-size-browser, em ); // Copied from mediawiki.ui.icons @icon-padding-md: unit( 12 / @font-size-browser, em );