Commit graph

4376 commits

Author SHA1 Message Date
Translation updater bot 372cd72d13 Localisation updates from https://translatewiki.net.
Change-Id: Id4c466d1cc7013d708562d858d33c34f23e87fc8
2023-12-04 09:09:09 +01:00
jenkins-bot e38e01daf6 Merge "Show diff switcher on narrow screens" 2023-12-02 22:10:58 +00:00
Fomafix 698a3ea2e3 Use namespaced ResourceLoader classes
The old class names are deprecated since 1.39.

Change-Id: Ie24b28ba27c5ce3c98e57a14117f01f4ca42824f
2023-12-01 13:35:19 +00:00
Translation updater bot c50be58250 Localisation updates from https://translatewiki.net.
Change-Id: Ifcd620cadb37cfc435ba859a63529e5b5610306d
2023-12-01 09:44:26 +01:00
Ed Sanders 86289e7b26 Show diff switcher on narrow screens
The visual diff is sometimes cluttered at narrow widths, but as
we show the switcher on tablet and desktop, and it stores a preference,
users may see the visual diff on phones anyway.

The layout is sometimes cluttered but not completely useless, and
users can always switch back.

As a follow-up we should improve the layout of the visual diff sidebar
on narrow screens.

Bug: T351946
Change-Id: I5533126195331b46040e708b7b35627e74a3001d
2023-11-30 18:43:39 +00:00
gerritbot 6419c847e9 Update UserOptionsLookup's FQN
User-options related classes are being moved to the MediaWiki\User\Options namespace in MediaWiki Core; reflect that change here.

Bug: T352284
Depends-On: I9822eb1553870b876d0b8a927e4e86c27d83bd52
Change-Id: I5a540772aafd2c4686e02f748b5fc61155920397
2023-11-29 12:41:59 +00:00
Translation updater bot 859f07d30d Localisation updates from https://translatewiki.net.
Change-Id: I6d1e3150d5edfacb9cf29fad8c61b5bdfa6c6749
2023-11-29 08:33:39 +01:00
jenkins-bot 3fe16038c0 Merge "Add styles for new heading HTML" 2023-11-28 21:05:55 +00:00
jenkins-bot 6d196bb4fe Merge "Reduce CSS size & specificity for headings" 2023-11-27 20:28:09 +00:00
jenkins-bot dc3ffae59d Merge "Disable another flakey test" 2023-11-27 20:27:15 +00:00
jenkins-bot ea6cf440cf Merge "Revert "Revert "Disable flakey test""" 2023-11-27 20:07:23 +00:00
Bartosz Dziewoński 97aed1ad86 Add styles for new heading HTML
Add CSS to support new HTML markup for headings with section edit
links, which will soon be used by Parsoid page views (T269630)
and by the old parser (T13555). Keep the old rules to provide
temporary support for cached page HTML and emergency opt-outs,
as well as permanent support for plain headings on special pages
and in Parsoid edit mode HTML.

See documentation page for further explanation:
https://www.mediawiki.org/wiki/Heading_HTML_changes

Depends-On: I44587461582d648b56ef0c9c7ae0c322895c69c2
Bug: T13555
Bug: T269630
Change-Id: Ib97d034ab533124f06441e788c8608fb274dccf0
2023-11-27 20:03:16 +00:00
Bartosz Dziewoński 8c6067584b Disable another flakey test
Bug: T348539
Change-Id: Icb79bbd404b445a1c42d52b060475250d155490a
2023-11-27 20:48:05 +01:00
Bartosz Dziewoński 7c645549a6 Revert "Revert "Disable flakey test""
This reverts commit 49e2acf2f4.

Bug: T334634
Change-Id: I672e2a6ad31b02118051a21246d808ea94f0a7e4
2023-11-27 19:45:00 +00:00
jenkins-bot f38f448712 Merge "Restore section edit link styles" 2023-11-27 19:40:02 +00:00
Bartosz Dziewoński 6294ca7196 Reduce CSS size & specificity for headings
Nesting these rules inside `h1, h2, h3, h4, h5, h6 { … }` generated
some enormously long selectors (as the whole selector had to be
repeated 6 times). It's not needed, as these elements do not occur
anywhere else.

Change-Id: I1647e37ff9a0c975d9320e4c34857f210a1858c2
2023-11-27 18:31:54 +00:00
Bartosz Dziewoński d3c5b8a6b2 Restore section edit link styles
The 'edit-page' class is no longer applied to section edit links.
Follow-up to I9f768706c0a0f14f14ee4b3812288218bef36018.

Remove a rule that seems no longer needed.

Bug: T351853
Change-Id: I0891332d613d152374c37f232ed596292d89b583
2023-11-27 19:29:31 +01:00
Translation updater bot a0c0d98f0a Localisation updates from https://translatewiki.net.
Change-Id: Id73c49fcaa246a17598f62cd3dd559e0062f277b
2023-11-27 08:35:55 +01:00
Translation updater bot 9aca99ade0 Localisation updates from https://translatewiki.net.
Change-Id: I9e51d8469149bb8359b147a8f8c7c7603a959fdf
2023-11-23 12:00:58 +01:00
Translation updater bot cc48111284 Localisation updates from https://translatewiki.net.
Change-Id: I177b3f94855c3317c928bcd6517ced3e6f1cd918
2023-11-22 08:22:19 +01:00
Translation updater bot a950f8f146 Localisation updates from https://translatewiki.net.
Change-Id: Ia486fb360c2961407bca1f586856a2e739b1b222
2023-11-21 08:31:11 +01:00
jenkins-bot 093f4ee01f Merge "Revert "Disable flakey test"" 2023-11-20 23:27:02 +00:00
Bartosz Dziewoński 49e2acf2f4 Revert "Disable flakey test"
This reverts commit be398f8a29.

Reason for revert: The underlying issue should be fixed.
Let's see if this test works better now.

Bug: T334634
Change-Id: I261606edd277935a34588d9695b9024f01a0d3f0
2023-11-20 22:34:01 +00:00
Translation updater bot 984492e57f Localisation updates from https://translatewiki.net.
Change-Id: I95cf0440d86e455cadba54030de0ccca8f6cc7f2
2023-11-20 08:54:48 +01:00
Bartosz Dziewoński 5f17c89649 Remove unused CSS for cached HTML
Searched for /fixme.*remove/.

Follow-up to:
* I55a25dfb8aba3d1b589a36ba4cba3bba0fe710a1
* I98443b0dcb88911a5314092216809387b4fb80dc
* I3c9d59f49f1b939981a7b2b450448db6736d5958
* Ie24c0215d07d5e4605d8479ed9e950a3d9c9b086

Change-Id: Id52487f6f5e4802ea2700c51e87e63565f340f5d
2023-11-17 18:52:27 +01:00
jenkins-bot 35ba0447b0 Merge "eslint: Enable no-use-before-define" 2023-11-17 16:55:41 +00:00
Ed Sanders 67f955eb20 eslint: Enable no-use-before-define
Change-Id: Id26b6017e06f436e9200638766bb8073fce8f03f
2023-11-17 16:06:59 +00:00
jenkins-bot b639cb01d5 Merge "Always show search form on Special:Search" 2023-11-17 15:57:05 +00:00
Translation updater bot ba2ac9425b Localisation updates from https://translatewiki.net.
Change-Id: I29ed4c8fcd2d4b5fa682ef564ef740feae18171e
2023-11-17 08:55:46 +01:00
Ed Sanders 88595174e6 Remove unused user-button styles
This class was removed in I55c18cf72.

Change-Id: I59069d97cdcc827d279edc76560f8c33fa2f71f2
2023-11-16 10:42:26 +00:00
Translation updater bot 09eb839a6b Localisation updates from https://translatewiki.net.
Change-Id: I053ceb376519c6342d787189893a88ef48bea829
2023-11-15 15:45:38 +01:00
jenkins-bot 9151f16c72 Merge "Remove eslint disable in MobileFrontend" 2023-11-15 00:06:44 +00:00
Jon Robson f78a77c825 Remove eslint disable in MobileFrontend
This method already throws a deprecation warning in production
so there is no need to guard against it here.

Bug: T348807
Change-Id: Iab346822e80dd716c001497c0587b163a49a3265
2023-11-14 10:24:17 -08:00
Translation updater bot 9f9ca79c50 Localisation updates from https://translatewiki.net.
Change-Id: Ia1402f4b0bfdc1196e1ea2aa3c1754f0e3f8c642
2023-11-14 09:16:45 +01:00
Jdlrobson 34f3a5a61b Merge "Drop mw.mobileFrontend references" 2023-11-13 17:50:51 +00:00
Translation updater bot c346115024 Localisation updates from https://translatewiki.net.
Change-Id: Iabed11d078272e5ad1ad738c44d642ba7628e8c0
2023-11-13 08:44:57 +01:00
Jdlrobson ca28efc9c7 Drop mw.mobileFrontend references
This restores the previously reverted patchset
If5b76245bf60bfa9cf977cdbf37ee0d6bb65f9d9

Changes since original:
* Added Depends-On to MobileFrontend
* Uses OOUI classes for page issues rather than es6 classes - ES6
classes do not support modifications to class prior to running
super so MobileFrontend's View class is not compatible without
significant refactors.

Depends-On: I24ad75adf8519102ca356d64d99d765ab69180cc
Bug: T348807
Change-Id: I4ff82af0251254c846f2caee330af5af738f6029
2023-11-10 01:30:52 +00:00
Translation updater bot b31b40a500 Localisation updates from https://translatewiki.net.
Change-Id: I95c2f70b754a333e10b7f427ec9951ec5186bb2d
2023-11-09 10:43:22 +01:00
Jon Robson 3dada0a92f Restore content below diff
Mobile page doesn't traditionally show the full revision under
the diff. If we want to continue to do this it would be better
to find a solution on the server then resort to this CSS hack.

Bug: T350454
Bug: T350650
Change-Id: Ic26c577ca4bcf8793f8678e30d91b0315da4df99
2023-11-08 18:54:31 +00:00
Translation updater bot 6faee29e4e Localisation updates from https://translatewiki.net.
Change-Id: Ibfdaf84a622a2fc0dd24a8d350b78b71c0366afc
2023-11-08 13:09:28 +01:00
Jon Robson ff8af8a620 Last modified bar should not be double height
Bug: T350515
Change-Id: I5044e38a2aa1582916339a0a85baed133e9c493c
2023-11-07 21:30:52 +00:00
jenkins-bot 90bc2178d6 Merge "Omit the last modified bar in the HTML rather than hiding it via CSS" 2023-11-06 20:31:53 +00:00
Jon Robson 99b32fb309 Omit the last modified bar in the HTML rather than hiding it via CSS
The mediawiki.diff.styles can be loaded on pages other than the diff
page itself, so it is better to move this logic into SkinMinerva and
avoid outputting it for diff pages full stop.

Note this module is loaded on Special:MobileDiff and desktop
Minerva history page (without redirect) so we need to cater
for both cases.

Bug: T350515
Change-Id: If2d908b7cbe257184e0c899f78a04d4d5935ea8c
2023-11-06 19:48:25 +00:00
Translation updater bot 49249a43b6 Localisation updates from https://translatewiki.net.
Change-Id: I3d5b3fddbf88bd91fae4ef65cd871b115a541fba
2023-11-06 09:01:02 +01:00
jenkins-bot 78a21f8f3b Merge "Revert "Drop mw.mobileFrontend references"" 2023-11-03 19:45:41 +00:00
Jdlrobson 2ee3e27406 Revert "Drop mw.mobileFrontend references"
This reverts commit 19ea6328b0.

Reason for revert: Breaks page issues and image overlay. I
will break this up into smaller less risky patches.

Change-Id: If5b76245bf60bfa9cf977cdbf37ee0d6bb65f9d9
2023-11-03 19:26:16 +00:00
Jon Robson f2243e7820 Fixes: Duplicate diff navigation links on mobile
Bug: T350440
Change-Id: I21cda31e137ac28990e693b83099b3328905089e
2023-11-03 17:08:32 +00:00
jenkins-bot 6af218d9ee Merge "styles: Replace deprecated color token" 2023-11-02 15:51:17 +00:00
Translation updater bot e0cedd248c Localisation updates from https://translatewiki.net.
Change-Id: I88dd520bb04bb738c4afddd5ff8a8d852c42349d
2023-11-02 10:01:36 +01:00
Volker E 9a54250830 styles: Replace deprecated color token
All other occurrences in this stylesheet already use the new token.
Seems like this one was missed.

Bug: T331403
Change-Id: I1d385275bd2b679d130eb3180ef2fc63a0f37a6b
2023-11-01 23:52:29 -07:00