Remove 'legacy' feature

Bug: T287410
Change-Id: Ibf8c20cfb1c3adb262224a28488c03c64323f509
This commit is contained in:
bwang 2021-07-29 15:51:44 -05:00 committed by jdlrobson
parent 5ef8aa9853
commit 58c87018b2
5 changed files with 67 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[
{
"resourceModule": "skins.vector.styles.legacy",
"maxSize": "9 kB"
"maxSize": "7.7 kB"
},
{
"resourceModule": "skins.vector.styles",

View File

@ -0,0 +1,37 @@
/**
* Print styles previously provided by the deprecated `legacy` feature (T287410)
* Copied from mediawiki.skinning/commonPrint.less in Mediawiki 1.36 core
*/
/**
* 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;
}
#footer {
background: #fff;
color: #000;
margin-top: 1em;
border-top: 1pt solid #aaa;
padding-top: 5px;
direction: ltr;
}

View File

@ -183,3 +183,18 @@ body {
right: 1em;
}
}
// 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 legacy Vector 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;
}

View File

@ -12,3 +12,7 @@
@import './components/Sidebar.less';
@import './components/UserLinks.less';
}
@media print {
@import './layouts/print.less';
}

View File

@ -107,10 +107,17 @@
"features": {
"normalize": true,
"elements": true,
"content": true,
"interface": true,
"logo": true,
"legacy": true
"content": true,
"content-links": true,
"content-thumbnails": true,
"interface": true,
"interface-message-box": true,
"interface-category": true,
"content-tables": true,
"i18n-ordered-lists": true,
"i18n-all-lists-margins": true,
"i18n-headings": true
},
"targets": [
"desktop",