Commit graph

4453 commits

Author SHA1 Message Date
Steph Toyofuku de3f85bac7 Fix inverted text in (recently) last modified bar
Currently we are using the --color-inverted token, which is double
inverted in night mode, yielding insufficient color contrast with the
blue (progressive) background when the page has been recently modified.
Instead, use the @color-inverted-fixed token, which stays white in night
mode for backgrounds which are darker regardless of mode (additionally,
switch back to using LESS variables as this is the new recommendation)

Visual change due to bugfix

Bug: T364123
Change-Id: Ib284abffd6907272e580986fb08c2b8dee5a1a47
2024-05-17 14:15:39 -07:00
jenkins-bot eb5eac4c5e Merge "Temporarily define color-link-new in Minerva like in Vector" 2024-05-17 17:43:24 +00:00
Jon Robson 2adf0b3ed7 Temporarily define color-link-new in Minerva like in Vector
Since there is an open bug on Codex let's temporary set this
color as we do in Vector.

Bug: T363778
Change-Id: I1234825164e5cdcfd4e9c01de6971c64268af236
2024-05-17 16:54:28 +00:00
Jon Robson 5643b8c2b8 Drop responsive behaviour
This is not working as expected - when I view the watchlist
it looks misaligned.

At this stage it is not vital to keep this view identical
with the existing version.

Bug: T109277
Change-Id: I2768a83cdd015867c9d66ded63acfe369629cf52
2024-05-17 16:06:32 +00:00
jenkins-bot 4b37bf7016 Merge "Minerva should no longer support non-Codex message boxes" 2024-05-17 15:45:32 +00:00
Translation updater bot beb24ac473 Localisation updates from https://translatewiki.net.
Change-Id: I0d3caec0a611606c00239ded013ddbbfbe0e41ae
2024-05-17 09:52:50 +02:00
Umherirrender 90356bae05 i18n: Replace mw: interwiki with url to mediawiki.org
The interwiki table must not contains an interwiki link with prefix mw:

Change-Id: Ib5e9a80ae746dec281466dc6ed5552578a5ec2b9
2024-05-15 23:22:10 +02:00
Jon Robson 23e5dfbb84 Minerva should no longer support non-Codex message boxes
Bug: T360668
Depends-On: I79cb792cf74ac4c722a94d98948e46f0d2a9ea03
Change-Id: I1cefc5437e17a98221e04ed87d55db62f0e69e38
2024-05-15 20:52:53 +00:00
Func 1bac80cd59 styles: Stop using SkinModule in skins.minerva.mainPage.styles
Follow-up to commit 95c4454 and dd424cb.

This has become a plain style module since 95c4454 and doesn't need to
use SkinModule anymore.

Also, cleaned up the unused import of the less variables.
 * mainPage: apparently never used, dated back to 2cc9516
 * userpage: unused since 196fb20

Bug: T360988
Change-Id: I49304c64cd2bbc5f791164127a5169e60a43058a
2024-05-15 14:49:37 +00:00
Translation updater bot 51efcfcedc Localisation updates from https://translatewiki.net.
Change-Id: I9419da85bbe1be023abd49e4bca6579994fd05b6
2024-05-15 09:23:37 +02:00
jenkins-bot 8ce4672206 Merge "Add eslint-disable-next-line security/detect-non-literal-regexp" 2024-05-15 00:20:45 +00:00
jenkins-bot 837ca8b506 Merge "Use PHP types (2)" 2024-05-14 22:16:20 +00:00
Fomafix 7f4c7d2db2 Add eslint-disable-next-line security/detect-non-literal-regexp
Change-Id: Ie85cdab8d2407fd432ae420ae46970490c2f693d
2024-05-14 12:41:50 +00:00
Translation updater bot d1536d967c Localisation updates from https://translatewiki.net.
Change-Id: I2df9e128cf16a082e461ebd15a451830c3ffdcbc
2024-05-14 09:29:25 +02:00
Steph Toyofuku b7e54644b7 Make language selector disabled state accessible contrast
Remove the opacity filter and indicate a disabled state using the
disabled color for both text and the icon.  Add a new disabled icon
variant to accomplish this

Also fixes a small issue where the toast notification was unreadable in
night mode due to using --color-inverted.  Switch this to
--color-inverted-fixed, which was added for this purpose

Visual change for the language selector button, when there are no other
languages available

Bug: T361693
Change-Id: Id2f80028d967bf644673f651bb89718fa8723d22
2024-05-13 22:13:33 +00:00
Translation updater bot 7296692ab4 Localisation updates from https://translatewiki.net.
Change-Id: I061a5211af8ee17f7ebe516dc2a22c2e79264d67
2024-05-13 09:30:16 +02:00
Jon Robson 84408db01c skins.minerva.mainPage.styles should not load feature styles
This is pulling down unnecessary styles that apply to the page unexpectedly.
The only reason this needs to be a Minerva/SkinModule is to support the
@wgMinervaApplyKnownTemplateHacks config variable

Follow up to I32f3968b74bded987bb60e85a902e551727db545

Bug: T360988
Change-Id: I285d0d35f46e1519d33752300262e652003011a2
2024-05-12 14:41:17 +00:00
Jon Robson 8239b8bd9c Style Special:NewPage consistently with Special:RecentChanges
Bug: T360843
Change-Id: Id75c7036cdff7f0a597fd58857fb367b16fffc79
2024-05-10 14:51:17 +00:00
jenkins-bot 88d092021d Merge "Selenium: Drop dead code" 2024-05-10 13:57:31 +00:00
Translation updater bot 2ee94c4078 Localisation updates from https://translatewiki.net.
Change-Id: Iad6bb8c007e4d2a9b40029e494d5098f1af2a92c
2024-05-10 09:33:44 +02:00
jenkins-bot 534e482f02 Merge "Replace root extend solution for codex with .cdx-mode-reset()" 2024-05-08 20:33:59 +00:00
Fomafix ff00805c5f Use PHP types (2)
* Add type hints where possible.
* Add initialization values to properties where needed.
* Remove @var block if redundant to type declaration.
* Use single line /** @var type $var */ instead of multi line.

Change-Id: I35236c5c1a2abb49e8ea2da090df3d655206195f
2024-05-08 19:08:30 +00:00
bwang d0c5ac0674 Replace root extend solution for codex with .cdx-mode-reset()
Change-Id: I7a41d46398c27b97f74d0606bf1b3c9610dda80f
2024-05-08 13:31:20 -05:00
jenkins-bot 3408613347 Merge "Use PHP types" 2024-05-08 18:14:48 +00:00
Fomafix f1b2416fbf Use PHP types
* Add type hints where possible.
* Add initialization values to properties where needed.
* Remove @var block if redundant to type declaration.
* Use single line /** @var type $var */ instead of multi line.
* Add improvements to avoid Phan warnings.

Change-Id: I8e391700dcbfbbcc88cceb589dc3a36fb8e3b357
2024-05-08 07:38:21 +00:00
Translation updater bot b395880db4 Localisation updates from https://translatewiki.net.
Change-Id: I6986d4e8b0a38115d877cf2d42942c3b547abe57
2024-05-08 09:25:48 +02:00
Fomafix e85265ada5 Improve PHP class references
* Declare class names from other namespaces in the `use` block.
* Use Foo::class instead of 'Foo' to reference a class name.

Change-Id: I5a1aba6b0cc8842d71b6b6df0a0b67e16e5b6453
2024-05-07 18:30:43 +00:00
jenkins-bot bb87e3d2de Merge "Remove ResourceLoaderSkinModule" 2024-05-07 17:35:36 +00:00
Translation updater bot ce4c537df6 Localisation updates from https://translatewiki.net.
Change-Id: Id6ac5fb7629bf20dc4ceb22e5618c2bfa80c7fbe
2024-05-07 09:25:17 +02:00
Translation updater bot ea28831725 Localisation updates from https://translatewiki.net.
Change-Id: I260af90d4be8766ce4b99482fd2d8a1bd9179198
2024-05-06 09:28:43 +02:00
libraryupgrader b8d951564c build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.1 → 1.1.3

npm:
* ejs: 3.1.8 → 3.1.10
  * https://github.com/advisories/GHSA-ghr5-ch3p-vcr6

Change-Id: Iacb67db4533e2cbdbf300bb53902bcb71eee9222
2024-05-06 04:45:08 +00:00
Fomafix dd424cb9cc Remove ResourceLoaderSkinModule
Since 95c4454cf9 the class
ResourceLoaderSkinModule doesn't do anything.

Change-Id: I2d870278485d40c1b47c910d4fc34bafc58fc66c
2024-05-04 20:43:25 +00:00
jenkins-bot 520fa3a671 Merge "Remove old styles for CAPTCHA on Special:CreateAccount" 2024-05-04 16:08:46 +00:00
Sjoerd de Bruin 40c819c0c3 Apply white-space:normal to buttons in preferences
Bug: T356467
Change-Id: Iffc24107c45fdf078129cbd74eb03b1841bdb953
2024-05-04 12:49:55 +00:00
Bartosz Dziewoński 690c6aafe8 Remove old styles for CAPTCHA on Special:CreateAccount
I think they custom design is no longer needed now that the form uses
Codex, and some of the rules are applying incorrectly now and causing
bad rendering.

Depends-On: I3dd4509e8fbe43c8c3fee405d81e1e6efe5ee296
Bug: T364214
Change-Id: I994c1dc6492c39964b21f0ab2e8a0e0ca848cc7a
2024-05-04 13:05:03 +02:00
Amir E. Aharoni dd7ae1aa8d Delete an unused message
Bug: T364205
Change-Id: Id09f5d0537861230084783fb5958401b35aae38a
2024-05-04 11:51:17 +03:00
Jon Robson 1f83fd0d68 History rows should be clickable
Bug: T362683
Change-Id: I8a3b3554991eb8229b0d734fd577c48868480fdc
2024-05-02 12:08:39 +00:00
Translation updater bot f18ea974de Localisation updates from https://translatewiki.net.
Change-Id: Idf7304a9ddf5d19360f2571e6a3e850b3d4edefb
2024-05-02 09:21:28 +02:00
Jon Robson 120a0c7c3d Show history link on diff page for anonymous users
Note: This will not show on main page for now, that will be
handled in a follow up as it is a little more complicated.

Bug: T361526
Change-Id: Ib2eb38f93f5f03304a6164e313b2298b425af01e
2024-05-01 12:16:31 +00:00
Eric Gardner 3e32517f45 Update Minerva to get Codex CSS vars from default files
As of Codex 1.5.0, all files relating to the "experimental"
build have been removed. Instead, the default Codex design tokens
refer to CSS variables for color-related values, and new files
like theme-wikimedia-ui-root.css have been provided as part of the
new distribution.

Bug: T363006
Change-Id: I1a3c5194013f8f4523098458db45ce867fdfd8c9
Depends-On: I1f54bf4f144eaec6ed317c04bd0c851c2f01b42c
2024-05-01 00:00:42 +00:00
jenkins-bot 3a98957d5a Merge "Complete transition to Codex color palettes" 2024-04-30 17:35:19 +00:00
jenkins-bot daad8bc177 Merge "Use light theme colors for focus colors" 2024-04-30 17:34:16 +00:00
Translation updater bot 43881954e1 Localisation updates from https://translatewiki.net.
Change-Id: Idcad338f7ce668e5b946c92f1b6f97d24c1ae9d5
2024-04-30 09:22:36 +02:00
jenkins-bot f1d455893b Merge "Wrap sitenotices in core" 2024-04-30 07:03:26 +00:00
jenkins-bot 9bcffb739e Merge "Remove tokens with same values in light theme" 2024-04-29 21:21:14 +00:00
Jon Robson ba64c4168d Complete transition to Codex color palettes
* Update mediawiki.skin.variables to point non-Codex tokens to
Codex token equivalents
* Replace box-shadow-color-drawer with @box-shadow-color-base
* Leave FIXME comments for migrating the last two CSS variables
* Replace direct access to CSS variable with @color-link-new
design token instead since the former may no longer exist.

Bug: T360845
Change-Id: Ie531044d320cde50689064f10ff00db5adcaf859
2024-04-29 14:16:36 -07:00
Jon Robson f0a72a6837 Wrap sitenotices in core
Depends-On: Ib48b1f54c326a0363841b2f592d8fd4cf7312b9b
Bug: T361966
Change-Id: I28255d9630d2d69ace28fde1954f2a5811feae2a
2024-04-29 18:04:39 +00:00
Translation updater bot 39ab8682c2 Localisation updates from https://translatewiki.net.
Change-Id: I09e1fa21bb426eaad3fd16dc39a8cff60fbe3295
2024-04-29 09:26:12 +02:00
Jon Robson 6359571312 Use light theme colors for focus colors
According to Derek
"We actually just recently updated all focus tokens
to use the same value (#36c).
This is true for both light and dark modes.

Bug: T360845
Change-Id: I277b685b85c187ff2f25d1b9280bd77e0c0e5057
2024-04-26 17:33:14 +00:00
Jon Robson 8174fe629f Remove tokens with same values in light theme
Certain tokens have the same value in night and light theme so
do not need to be specified in the night mode palette

Bug: T360845
Change-Id: Ibaf6bb1f45997bfee4fa8334948def64265917b0
2024-04-26 17:33:06 +00:00