Commit graph

732 commits

Author SHA1 Message Date
Translation updater bot
64830a850f Localisation updates from https://translatewiki.net.
Change-Id: I701684d0575e5cd3074c6c691a03fffb5b101540
2021-11-09 07:31:38 +01:00
libraryupgrader
fe10e74dc2 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: I1bf6d9397749efeed62163912a0ee61b25e06877
2021-10-23 18:50:42 +00:00
Translation updater bot
f8978ddcb8 Localisation updates from https://translatewiki.net.
Change-Id: I797f54a6df891dfb7b876b3edae53c6fbf5d0752
2021-10-18 15:24:56 +02:00
libraryupgrader
61913b92b7 build: Updating npm dependencies
* ansi-regex: 5.0.0 → 5.0.1
  * https://npmjs.com/advisories/1002401 (CVE-2021-3807)
* nth-check: 2.0.0 → 2.0.1
  * https://npmjs.com/advisories/1002423 (CVE-2021-3803)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: Ic980369a9182e3c209817d69311cc417c6727c3e
2021-10-09 10:44:04 +00:00
Translation updater bot
d414e30093 Localisation updates from https://translatewiki.net.
Change-Id: I94e8802cd74d155d724451896421cfebc5a36bfc
2021-10-07 09:05:25 +02:00
Translation updater bot
b9fe9aa904 Localisation updates from https://translatewiki.net.
Change-Id: I54ca34acdb3e385b456037b520e1e455de9804ad
2021-10-04 08:58:33 +02:00
Translation updater bot
ef3de5c475 Localisation updates from https://translatewiki.net.
Change-Id: I7e91cc361d023bb00efb1bc242e91cc7235a5f03
2021-10-01 09:31:33 +02:00
Translation updater bot
55d5c9ca00 Localisation updates from https://translatewiki.net.
Change-Id: I9f2bcb11177ea42cb600018a96dfb2267862230e
2021-09-30 08:59:23 +02:00
Translation updater bot
1c94fe435a Localisation updates from https://translatewiki.net.
Change-Id: I9f44c34fea273d6b4ee1f30d5eb448fbd5801658
2021-09-27 08:38:12 +02:00
Translation updater bot
cc81b4934b Localisation updates from https://translatewiki.net.
Change-Id: I65ef1480f6b0bf4f8e771dc886a1940ca7f5b981
2021-09-22 08:12:22 +02:00
Translation updater bot
77ba8ea1f6 Localisation updates from https://translatewiki.net.
Change-Id: I51be64b33452c11f7a91657aa3827c8fac3a7147
2021-09-20 08:21:43 +02:00
AntiCompositeNumber
4487cda6fa
mobile.js.less: fix padding for a.feedlink
Core mediawiki.feedlink sets `a.feedlink {padding-left: 16px;}` to
establish proper spacing around the feed icon background-image. That
rule was overridden by a much more specific rule for the mobile menu,
causing the text to overlap the icon.
This change duplicates the padding-left rule at a higher specificity,
fixing the overlap problem.

This could also be fixed by significantly increasing specificity for the
rule in mediawiki.feedlink, but that would break the existing skins and
extensions that intentionally override it.

This patch has a soft-ish dependency on I897b85d3e77233b858ee85be263a14e401fe5fd2
to work correctly when the page is loaded in mobile format. Without that
patch, an empty space would be visible where the icon should be unless
the page was loaded in desktop format.

Depends-On: I897b85d3e77233b858ee85be263a14e401fe5fd2
Bug: T291274
Change-Id: Id427653eb21194085853de903624b9a537eeece6
2021-09-17 15:01:01 -04:00
Translation updater bot
992ee7d4c4 Localisation updates from https://translatewiki.net.
Change-Id: I9b76c5b1b72196b971ad6fd2f257811075d9da96
2021-09-16 08:13:12 +02:00
Translation updater bot
eaa108b514 Localisation updates from https://translatewiki.net.
Change-Id: Ib1e92f783b3449140e7175f548527a28485327e3
2021-09-15 08:16:44 +02:00
Translation updater bot
2114921b6b Localisation updates from https://translatewiki.net.
Change-Id: I500dbe21f42153a0f13ea885a7900b1c35319586
2021-09-14 08:34:44 +02:00
jenkins-bot
6322506db6 Merge "Monobook Mustache" 2021-09-13 05:51:51 +00:00
Translation updater bot
f2dcd83417 Localisation updates from https://translatewiki.net.
Change-Id: I167eb41d347051efe8ac3347db45871c840fb9e4
2021-09-09 08:19:41 +02:00
jdlrobson
abe94aa408 Monobook Mustache
Changes in HTML markup that fix various bugs and lead to consistencies
with other skins:
* firstHeading now has `dir` attribute
* `tagline` message no longer parsed - plain text only - this is consistent with
other skins
* printfooter now child of #bodyContent
* #ca-view is outputted (but hidden with CSS)
* Order of attributes on  #p-search-label changed
* Search input form elements are no longer self closing
* The #mw-searchButton element gains class mw-fallbackSearchButton
* The generated-sidebar class is no longer present on sidebar portlets,
consistent with other skins
* The print link disappears when ElectronPdf is installed so there
are not two print links.

Changes in functionality:
* Previously (in getCactions) a nomobile class would be added if
less than 2 tabs.
If not 1 tab, more would be appended. This is dropped.

Bug: T285989
Change-Id: I03d0dc1dad23894e7e64ceeb8956692316265144
2021-09-07 09:02:55 -07:00
libraryupgrader
1810f569a9
build: Updating mediawiki/mediawiki-phan-config to 0.11.0
Change-Id: I1d2975da877b82c9ac2f2437fff2055a883a4247
2021-09-04 22:30:00 +03:00
libraryupgrader
ac4db0c422 build: Updating dependencies
composer:
* php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1

npm:
* stylelint-config-wikimedia: 0.10.3 → 0.11.1

Change-Id: I2f43a0128086fbc1a9c81993b3828ae14f888971
2021-09-02 07:30:39 +00:00
jdlrobson
ca0b4bed6a Simplify MonoBook link styles
* Link color comes from the elements ResourceLoaderSkinModule feature
* MonoBook link colors are overriden in skin variables

Depends-On:  I799b46664f01c5631fb9d1ae4f5c43caeeaac818
Bug: T288739
Change-Id: Ifbe2394f2f5beb417a4aa5b288a0e906ed10a691
2021-08-31 08:27:10 +00:00
Translation updater bot
71024c4bf9 Localisation updates from https://translatewiki.net.
Change-Id: Iec6151867c0acda5a9fa14ba113a92711f500038
2021-08-26 08:39:17 +02:00
libraryupgrader
8aaa1525b5 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I4b154a65b7971e7f7121a2c32e10b0bbbc27aeb7
2021-08-25 14:31:08 +00:00
Translation updater bot
311cfa1493 Localisation updates from https://translatewiki.net.
Change-Id: I4ca1152a62eecb9182cc348c140ceb5d406025c9
2021-08-23 09:06:00 +02:00
bwang
bf86a37f1d Replace deprecated 'content' and 'content-thumbnail' features with 'content-media'
Bug: T287410
Change-Id: I349227cbe6b0577e122b47278c3c838b31b07eda
2021-08-18 19:08:29 +00:00
jdlrobson
bf64fa1aec Restore red links color to the responsive mode
Follow up to c1ca90ce4b

the #p-personal li a is trumped by
the skin--responsive selector. Store the rule next
to the existing link rule to avoid this.

This stylesheet loaded by both modes so works in both.
One with the skin--responsive prefix and one without.

Bug: T288788
Change-Id: Ief4fa9dbbd48f2c6f73a58a73d64255438cd938e
2021-08-18 08:02:14 -07:00
jenkins-bot
ba278242d4 Merge "Restore capitalization styling in MonoBook portlets" 2021-08-16 22:51:18 +00:00
jdlrobson
ba2c0ec06e Restore capitalization styling in MonoBook portlets
Cleaning up the `text-transform` mess and making this specific
rule simpler for the different languages and skin variants like
responsive skin.
Follow up to c1ca90ce4b.

Bug: T97892
Change-Id: Id4b3a3c23396728fa5910b7acfcf618b281390ca
2021-08-13 15:18:11 -07:00
jdlrobson
65cbf78781 Drop double skin-responsive class
This is already added in `skin-responsive.less` so adding it
a second time means the selector no longer matches.

Bug: T288681
Change-Id: I4b08561f8848dc5f8545f5dc42add8b5ec286ca8
2021-08-11 15:12:17 -07:00
Translation updater bot
ba0e44ef0a Localisation updates from https://translatewiki.net.
Change-Id: Icbe46d97183eb5b28f041242be995ea3f3994878
2021-08-09 08:27:46 +02:00
jdlrobson
38c49703f1 Add visualClear style to MonoBook
Follow up to ff1d2fcf0f
following guideline on
https://mediawiki.org/wiki/Manual:ResourceLoaderSkinModule#visualClear

Bug: T288288
Change-Id: I3066ac2171a1faa82244152f141208ca8643e00d
2021-08-05 21:16:04 +00:00
Translation updater bot
7798a2f657 Localisation updates from https://translatewiki.net.
Change-Id: I162d7504b8cb0b2a2f7ca09f1d381882e256b6cd
2021-08-05 08:24:07 +02:00
jdlrobson
c1ca90ce4b Reduce ResourceLoader modules used by Monobook
MonoBook supports two modes - one that is responsive and one that
is not. To do this it adds 3 modules. These can be reduced to 1
module by loading all the code and adding client side checks to
determine whether to use it.

The skin--responsive class is added by core for responsive skins so
can be used to make that check.

This does lead to additional download for all users (particularly
the addition of oojs-ui.styles.icons-alerts) but given the default
behaviour is to load these, and non-responsive skin requires an opt
in I don't see this as a problem.

Thanks to gzip the increase in render blocking styles is minimal:

Before:
skins.monobook.styles: 15.21KB
skins.monobook.responsive: 16.14KB

After:
skins.monobook.styles: 16.63KB

See bug for QA plan.

Bug: T285492
Change-Id: I76bb644145539c8ec0220704c8fe9a78a4819c03
2021-08-03 12:45:59 -07:00
Translation updater bot
821c4b3abe Localisation updates from https://translatewiki.net.
Change-Id: I14d52ff8bcef0deca946331d7e177910d96b973f
2021-08-02 08:39:12 +02:00
jdlrobson
9b4186d863 Drop MonoBook responsive preference
This was moved to a core preference as part of T285402
The migration was handled by a #user-notice

Bug: T285402
Change-Id: I25fe3d32ad929924034db06b5a95bab6a3a3a727
2021-07-29 23:50:31 +00:00
jenkins-bot
2c01b1fa8c Merge "Remove 'legacy' feature, simplify skins.monobook.mobile module" 2021-07-29 23:24:51 +00:00
bwang
ff1d2fcf0f Remove 'legacy' feature, simplify skins.monobook.mobile module
skins.monobook.mobile which was incorrectly identified as
a ResourceLoaderSkinModule is removed. This module was always
loaded in JavaScript alongside one of the modified modules

Bug: T287410
Change-Id: Ia1e15b606b3eee1ae442bd71765778269d11fd38
2021-07-29 23:18:54 +00:00
Translation updater bot
f7911a4395 Localisation updates from https://translatewiki.net.
Change-Id: I7e469cf7f9de3849984acc2e90047a54a14507e0
2021-07-29 08:46:29 +02:00
Translation updater bot
8290a36930 Localisation updates from https://translatewiki.net.
Change-Id: I3e662b124cf70ce5f094aea03bba02e4646e97f2
2021-07-27 08:14:32 +02:00
Translation updater bot
aa41215bd9 Localisation updates from https://translatewiki.net.
Change-Id: I2a76c3180392233034cafc8729d2b6d03af16808
2021-07-23 08:09:53 +02:00
libraryupgrader
fbd8ce906c build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* svgo: 2.3.0 → 2.3.1
  * https://npmjs.com/advisories/1754 (CVE-2021-33587)
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* glob-parent: 5.1.1 → 5.1.2
  * https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Change-Id: I64fb6856ae29ad2a4268f88ee95749ad1a626942
2021-07-21 19:56:43 +00:00
Translation updater bot
5dc9f4494d Localisation updates from https://translatewiki.net.
Change-Id: I8618cf88cf5a5b35a9792fea0afb4a6be232f325
2021-07-19 08:18:20 +02:00
Translation updater bot
a4ef44da26 Localisation updates from https://translatewiki.net.
Change-Id: I0e9d6458fd6148f85eb0b776ccad2ef5ac3fa998
2021-07-13 08:13:02 +02:00
Ammarpad
2f82aabd68 monobook-responsive pref: Follow core preference if set
If the general skin-responsive setting is set, let it overide
monobook-responsive preferences

Eventually remove monobook-responsive when the affected users
have migrated to the general pref (or they're migrated, if necessary)

Bug: T285402
Depends-On: I4e567199a92c0492dac0561a5c7844f6c5c239e6
Change-Id: If6e405eaf1e4c3ac396fdcf2da31501ea3f65b53
2021-06-28 22:03:39 +01:00
jdlrobson
ee59005150 Separate hooks from SkinMonoBook, use namespace
For consistency with other skins, its easier to see how hooks are
invoked when they are separated from the skin.

The skin is also updated to use namespaces and modern skin registration
which has been available since MediaWiki v1.36.

Change-Id: I1c93d4e817b53c93eba47ee9086c86c5d75443e5
2021-06-27 22:06:39 +00:00
Jack Phoenix
57e963507c Move capitalize-all-nouns CSS class support from core to MonoBook
Bug: T97892
Change-Id: I598c4469c46d284562ea3aec79330f9a1f40d2ce
2021-06-17 20:20:55 +00:00
Translation updater bot
bc80783b1e Localisation updates from https://translatewiki.net.
Change-Id: I47810a71831073d28d41e3e9cbddfc27d89a21e8
2021-06-17 08:21:30 +02:00
Translation updater bot
ea0e225043 Localisation updates from https://translatewiki.net.
Change-Id: I8c3088c79dc44b07c3597b0d6a64ae0c0ad10c19
2021-06-14 08:41:16 +02:00
bwang
6ce3ce1acb Use Skin::getAfterPortlet instead of deprecated BaseTemplate:getAfterPortlet
Change-Id: Ie00e8c5efe9a1e736251382344a7ae8cd779bb6b
2021-06-11 15:08:45 -05:00
Translation updater bot
531749b3d0 Localisation updates from https://translatewiki.net.
Change-Id: Ib1bb69bdc0f48cb85bcaed1fc922ded8f28c8f38
2021-05-31 08:38:03 +02:00