From f2f669dec67ce3d614689f8fc8e8d08925d37f6a Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Thu, 22 Oct 2020 10:36:38 -0400 Subject: [PATCH] Deprecate mediawiki.skinning.content.externallinks --- resources/skins.citizen.styles/common/typography.less | 10 ++++++++++ .../images/external-link-ltr-icon.svg | 6 ++++++ .../images/external-link-rtl-icon.svg | 6 ++++++ resources/skins.citizen.styles/skin.less | 4 ++-- skin.json | 3 +-- 5 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 resources/skins.citizen.styles/images/external-link-ltr-icon.svg create mode 100644 resources/skins.citizen.styles/images/external-link-rtl-icon.svg diff --git a/resources/skins.citizen.styles/common/typography.less b/resources/skins.citizen.styles/common/typography.less index 1555ee24..afb9843e 100644 --- a/resources/skins.citizen.styles/common/typography.less +++ b/resources/skins.citizen.styles/common/typography.less @@ -142,6 +142,16 @@ figcaption, } } +// External links +.mw-parser-output { + .external { + background-image: url( images/external-link-ltr-icon.svg ); + background-position: center right; + background-repeat: no-repeat; + padding-right: 13px; + } +} + @media ( max-width: @screen0 ) { #mw-content-text { figcaption, diff --git a/resources/skins.citizen.styles/images/external-link-ltr-icon.svg b/resources/skins.citizen.styles/images/external-link-ltr-icon.svg new file mode 100644 index 00000000..137638e8 --- /dev/null +++ b/resources/skins.citizen.styles/images/external-link-ltr-icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/resources/skins.citizen.styles/images/external-link-rtl-icon.svg b/resources/skins.citizen.styles/images/external-link-rtl-icon.svg new file mode 100644 index 00000000..50ba28aa --- /dev/null +++ b/resources/skins.citizen.styles/images/external-link-rtl-icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/resources/skins.citizen.styles/skin.less b/resources/skins.citizen.styles/skin.less index a6c19222..b299d27d 100644 --- a/resources/skins.citizen.styles/skin.less +++ b/resources/skins.citizen.styles/skin.less @@ -3,7 +3,7 @@ @import '../variables.less'; @import '../mixins.less'; -@media only screen { +@media screen { @import 'common/common.less'; @import 'common/content.less'; @import 'common/typography.less'; @@ -24,6 +24,6 @@ @import 'Footer.less'; } -@media only print { +@media print { @import 'common/print.less'; } diff --git a/skin.json b/skin.json index f2861498..6ba2b9d3 100644 --- a/skin.json +++ b/skin.json @@ -1,6 +1,6 @@ { "name": "Citizen", - "version": "1.0.0", + "version": "1.1.0", "author": [ "[https://www.mediawiki.org/wiki/User:Alistair3149 Alistair3149]", "[https://www.mediawiki.org/wiki/User:Octfx Octfx]" @@ -24,7 +24,6 @@ "skins.citizen.scripts" ], "styles": [ - "mediawiki.skinning.content.externallinks", "skins.citizen.styles", "skins.citizen.styles.fonts", "skins.citizen.styles.toc",