diff --git a/resources/print-common.less b/resources/print-common.less index 75693c6..3bb1bcf 100644 --- a/resources/print-common.less +++ b/resources/print-common.less @@ -11,3 +11,37 @@ #f-list > #lastmod { display: block; } + +// Copied from mediawiki.skinning/commonPrint.less +#footer { + background: #fff; + color: #000; + margin-top: 1em; + border-top: 1pt solid #aaa; + padding-top: 5px; + direction: ltr; +} + +/** + * Hide all the elements irrelevant for printing + * Skins however can and should override. + */ +/* General hide-in-print class, please only use sparely */ +.noprint, +/* Various content classes, in alphabetical order */ +.mw-cite-backlink, +.mw-redirectedfrom, +.patrollink, +/* Various content ids, in alphabetical order */ +#column-one, +#footer-places, +#mw-navigation, +/* Deprecated, changed in core */ +#f-poweredbyico, +#f-copyrightico, +li#about, +li#disclaimer, +li#mobileview, +li#privacy { + display: none; +} diff --git a/resources/screen-common.less b/resources/screen-common.less index 52b9972..4d9a1f9 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -358,3 +358,18 @@ div.mw-lag-warn-high { .tipsy { font-size: 127%; } + +// Directionality styles previously provided by the deprecated`legacy` feature (T287410) +// for HTML elements which do not carry dir HTML attributes. +// These have been copied across to MonoBook to minimize disruption caused by T287701. +// If you are reading this comment in 2022, please consider checking usage in wikitext and +// removing them both. +.mw-content-ltr { + /* @noflip */ + direction: ltr; +} + +.mw-content-rtl { + /* @noflip */ + direction: rtl; +} diff --git a/skin.json b/skin.json index 09c9c95..5ba6704 100644 --- a/skin.json +++ b/skin.json @@ -48,11 +48,17 @@ "features": { "normalize": true, "elements": true, + "logo": true, "content": true, "content-links": true, + "content-thumbnails": true, + "content-tables": true, "interface": true, - "logo": true, - "legacy": true + "interface-message-box": true, + "interface-category": true, + "i18n-ordered-lists": true, + "i18n-all-lists-margins": true, + "i18n-headings": true }, "styles": { "resources/screen-common.less": { @@ -71,11 +77,17 @@ "features": { "normalize": true, "elements": true, + "logo": true, "content": true, "content-links": true, + "content-thumbnails": true, + "content-tables": true, "interface": true, - "legacy": true, - "logo": true + "interface-message-box": true, + "interface-category": true, + "i18n-ordered-lists": true, + "i18n-all-lists-margins": true, + "i18n-headings": true }, "targets": [ "desktop", @@ -118,15 +130,6 @@ ] }, "skins.monobook.mobile": { - "class": "ResourceLoaderSkinModule", - "features": { - "normalize": true, - "elements": true, - "content": true, - "interface": true, - "logo": true, - "legacy": true - }, "targets": [ "desktop", "mobile" ], "packageFiles": [ "resources/mobile.js",