Merge "Remove 'legacy' feature, simplify skins.monobook.mobile module"
This commit is contained in:
commit
2c01b1fa8c
3 changed files with 65 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
29
skin.json
29
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",
|
||||
|
|
Loading…
Reference in a new issue