Commit graph

753 commits

Author SHA1 Message Date
Translation updater bot 00d9bb59da Localisation updates from https://translatewiki.net.
Change-Id: I9f67a64aa902b2503d2b4416cc27be1c22ed0be1
2017-08-23 08:41:22 +02:00
jenkins-bot d3a3832e83 Merge "Change print wordmark margin bottom to 20px from 10px" 2017-08-22 22:16:08 +00:00
jdlrobson 9101bd6327 Adjust TOC print styles
* Font size shrunk and declared in `pt`
* `margin` adjustment
* `page-break-before` now uses `avoid`

Bug: T173767
Change-Id: Ieeabc22079978cdf1f8484f3ac9961d990901336
2017-08-22 22:09:41 +00:00
Baha 932990c2fe Change print wordmark margin bottom to 20px from 10px
Per T169826#3542839.

Bug: T169826
Change-Id: I8658814988c15e48ca90875d33327a48ee8b7ca1
2017-08-22 16:23:48 -04:00
Translation updater bot d389464865 Localisation updates from https://translatewiki.net.
Change-Id: I2571c2bf1bcccfdc24dfc7376b78df7beaccf9d8
2017-08-22 08:15:37 +02:00
jenkins-bot a45e81c993 Merge "Replace grey with WikimediaUI palette color one" 2017-08-21 18:58:07 +00:00
jenkins-bot 135042bf7c Merge "Replace colors on Special:Preferences view with WikimediaUI ones" 2017-08-21 15:33:08 +00:00
Umherirrender 2fafe4dfc2 Use json extension for .stylelintrc
Bug: T173516
Change-Id: If6b194d51a8c61e71178f745598bd5eb13605be7
2017-08-19 06:46:03 +00:00
Translation updater bot 25984762ce Localisation updates from https://translatewiki.net.
Change-Id: I951fdf2d365ad5d6baf71a563ea5754d5e44b633
2017-08-19 08:41:25 +02:00
Volker E a51f69ca8d Replace colors on Special:Preferences view with WikimediaUI ones
Replacing outdated colors on Vector's Special:Preferences.

Bug: T173607
Change-Id: I4d23fb4bfcd3789e3f18fa7ed8247921a3557727
2017-08-18 15:42:33 -07:00
Volker E 3e8342630d Replace grey with WikimediaUI palette color one
Replacing `#4d4d4d` with `#444`, which is `color-base` var modifier.
We're going for a very similar
color for now, instead of `#54595d` as with current background
we want to still ensure WCAG 2.0 level AAA conformance as it's
right now in order to not be disruptive.

Bug: T153043
Change-Id: I4c8caac9d829d8a3a351fc78181279ed35ed15a9
2017-08-18 15:18:12 -07:00
Kunal Mehta 706f6f2a87 build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I7b00201b7f81d88115be496c6bbb9cb317d07324
2017-08-14 22:56:39 -07:00
Translation updater bot 46b35673fb Localisation updates from https://translatewiki.net.
Change-Id: Ibb6ea5f4296802c2dc9233e4d90ad3d7fdae2be3
2017-08-14 08:23:58 +02:00
Translation updater bot 1b60519188 Localisation updates from https://translatewiki.net.
Change-Id: I7d9ea56ad4eb3ef9a366045c91f4e814752e2dec
2017-08-11 22:08:02 +02:00
Bartosz Dziewoński ba885035bf Add skin screenshot for the installer
Bug: T68295
Change-Id: I9d3bb2805ed143b5609edb15c336979f4aeabe99
2017-08-11 15:37:34 -04:00
Volker E ce9d900cb3 Replace @colorGray9 with static color value #999
Replacing `@colorGray9` variable with static color value `#999`
as it's among those color values which are not part of the new
WikimediaUI color palette any more. Will be deprecated in
Iaef72470c596656

Bug: T172850
Change-Id: I94c40badb4a8e4703b5e3400d78641edd98f0300
2017-08-10 13:26:02 -04:00
jenkins-bot c34e08ddb8 Merge "Padding tweak for all lists" 2017-08-09 17:02:29 +00:00
Baha bb7579d3e5 Embed print wordmark and pre-render it
Make sure the print wordmark is readily available for printing. In
addition to embedding, pre-render the wordmark outside the viewport so
that the print dialog doesn't block image rendering in the print view.

Bug: T169826
Change-Id: I788bcecadf26e4e5558b5b37e6fb1b2e9378277e
2017-08-04 11:42:18 -04:00
jenkins-bot bbb1d9e78d Merge "Make dropdown menus appear above VisualEditor toolbar" 2017-08-04 00:50:55 +00:00
jdlrobson 595bf2cece Padding tweak for all lists
This is particularly important in references where this small
change saves a large number of pages from being printed.

Bug: T172144
Change-Id: I7ceb244dc7be847cbe0fdc58c6a1cac6b0de3e0a
2017-08-03 15:18:40 -07:00
Umherirrender b1dff6dc3f build: Exclude composer vendor folder
Change-Id: I7156ba5eb000bdcd29aba009d8ce8c030f8d2f11
2017-08-03 15:03:07 +02:00
Bartosz Dziewoński 206efa4c96 Make dropdown menus appear above VisualEditor toolbar
Bug: T171840
Change-Id: I36dc747ec2c41816df371aa5e1d4b81dff24a7dd
2017-08-03 01:27:05 +02:00
Translation updater bot af8abcd1ce Localisation updates from https://translatewiki.net.
Change-Id: I3d7466504d2c8fc2025b16bbcb4e6877550d7588
2017-08-02 23:06:51 +02:00
jenkins-bot cf999f4e17 Merge "Add print logo" 2017-08-02 00:59:51 +00:00
Translation updater bot 3e05f2b91e Localisation updates from https://translatewiki.net.
Change-Id: Id7c27fad5464e6a31777f1f39dc10548dac72e7c
2017-08-01 22:11:33 +02:00
Baha 413870d350 Add print logo
Logo cannot be displayed as a background image because it won't be
visible in print unless the user prints backgrounds too.

A sample configuration looks like this:

$wgVectorPrintLogo = [
	'url' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
	'width' => 174,
	'height' => 27
];

The solution presented in the patch has a downside of not being able
to scale images down if their dimensions are bigger than the
dimensions specified in the config variable. For example, if we want
to go with an SVG image, then IE8 won't be able to render it.
Alternatively, if we want to go with a PNG image, its dimensions need
to match the exact dimensoins in the config variable, otherwise the
image will show up larger or smaller depending on its dimensions.

A more complicated approach of scaling images using `transform: scale`
hasn't been used because we wanted to keep the configuration simple
while supporting the majority of our users. With the current change,
we can reuse the existing configuration options from Minerva, for
exmaple. It would look something like this:

$wgVectorPrintLogo = [
	'url' => $wgMFCustomLogos['copyright'],
	'width' => $wgMFCustomLogos['copyright-width'],
	'height' => $wgMFCustomLogos['copyright-height']
];

Bug: T169826
Change-Id: If8f9f8d95fd3c955ece37d6c8ab6995596189667
2017-08-01 10:55:53 -04:00
Translation updater bot 80171ff47f Localisation updates from https://translatewiki.net.
Change-Id: I90221888af4401289eb9dc327ac865019553b358
2017-07-31 22:12:37 +02:00
Antoine Musso 60d6ecbaad Define npm peer dependency explicitly
npm 3 requires dependencies to be explicitly defined.

Bug: T172094
Change-Id: Ic640ccf0f577e47036d473892522ea758014fab4
2017-07-31 12:04:32 +02:00
Bartosz Dziewoński 8c9c30781e Use makeListItem() for menu items rather than building HTML by hand
This affects the four tabs menus (namespaces, variants, views, actions).
Other menus (personal menu and sidebar) have already been using it.

We need some minor overrides to get the same results as the hand-built
HTML, but I think this still makes the code a lot nicer.

The output is the same as before, except for unimportant whitespace
differences and the order of some tag attributes.

I tested this with several extensions and configuration options that
mess with the tabs:
* $wgUsePigLatinVariant = true
* VisualEditor extension
* FileAnnotations extension
* FileExporter extension
* Viewing the page as administrator

Change-Id: I2d1255442abf5fa4bac2de1b084d0bcacbba7d0f
2017-07-29 04:02:36 +00:00
Piotr Miazga 678e39fb91 Hygiene: Do not use ConfigFactory::getDefaultInstance()
ConfigFactory::getDefaultInstance() is deprecated and code should use
MediaWikiServices instead

Change-Id: I085c6cfd724e6005bf8ea6933bf13de98dadb018
2017-07-28 17:59:03 +02:00
jdlrobson d1d639a3ab Print styles: Border bottom of headings should not overlap infoboxes
Specifically this avoids the issue highlighted here:
https://phabricator.wikimedia.org/T169823#3461814

Bug: T169823
Change-Id: Ie73b727e26876b027e5c4276f82a9ae98caff2bb
2017-07-28 11:58:04 +00:00
jenkins-bot 3717c3e590 Merge "Print styles: footer" 2017-07-28 09:34:08 +00:00
jdlrobson d897c8d1d3 Print styles: footer
Tones down license information
and makes last updated primary information in
printed view

Additional changes:
* variables now inherits from mediawiki.ui

Bug: T169823
Change-Id: Ie678967a27baec8715cf86b6a0f7e7651f867be1
2017-07-28 11:22:07 +02:00
Translation updater bot 699ffb8604 Localisation updates from https://translatewiki.net.
Change-Id: Iab1b2191878a4782e8b415d1f36ce7bc7585ae94
2017-07-27 22:32:56 +02:00
jenkins-bot 79647bb41e Merge "Add target support for view_urls" 2017-07-26 17:15:01 +00:00
jenkins-bot f7ec0489cb Merge "Print mode: Define when to use serif and when to use sans-serif" 2017-07-26 16:01:56 +00:00
jdlrobson 728e9a13a2 Print mode: Define when to use serif and when to use sans-serif
Additional changes:
* Define variables for fonts and use them
* Group and make clearer where fonts apply

Bug: T169823
Change-Id: I0b7d557048859936f2eb2f646202bc8071bb84ba
2017-07-26 15:54:52 +00:00
jdlrobson f5124a0dec Print styles: Apply padding and margins to ol as well as ul
Bug: T169823
Change-Id: I60638f18ea5ca4362699e7ea930b426be4e8eee1
2017-07-26 15:54:43 +00:00
Translation updater bot 204781957d Localisation updates from https://translatewiki.net.
Change-Id: I9b102e5fee483f7fc6499704356a5615cb42c443
2017-07-25 22:02:19 +02:00
jenkins-bot 9668f880f5 Merge "Fix CSS selector output in print stylesheet" 2017-07-25 11:55:15 +00:00
jdlrobson 1cbfd714d1 Fix CSS selector output in print stylesheet
Less doesn't allow to nest like this. It creates the invalid selector
`.vector-experimental-print-stylesbody`

This is a follow up to I453ae43099796a74c39d965b796f2fa13942106c

Bug: T169823
Change-Id: I9cc2f474fdcafdcc68378185391607b72b0f667a
2017-07-25 11:29:43 +00:00
Translation updater bot 1ebb116692 Localisation updates from https://translatewiki.net.
Change-Id: I6e72ee22f64273e169e5e4bce974f9004e68ee74
2017-07-24 22:29:33 +02:00
Umherirrender 59ddbcecff build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
Change-Id: I1e4fc4fc234b4108c42473e53be608f5f9ba9021
2017-07-24 19:08:55 +02:00
jenkins-bot 1c54b94bc8 Merge "Experimental table of content print styles" 2017-07-21 20:42:28 +00:00
jenkins-bot 5dec71ecd4 Merge "Feature flagged print styles" 2017-07-21 20:41:05 +00:00
Translation updater bot a3b223d001 Localisation updates from https://translatewiki.net.
Change-Id: I89275f2a8b0c05a63a7d9fe7610a1d1f0e0eaa61
2017-07-21 22:06:26 +02:00
jdlrobson 8b9c485580 Experimental table of content print styles
* Provide sense of hierarchy
* Make full width
* Break pages before and after

Bug: T169823
Change-Id: I8a20c70b550de5bfda638873d180ea97880dfd13
2017-07-21 10:45:01 -07:00
jenkins-bot c59d00982e Merge "Remove irritating transition on menu tabs" 2017-07-20 21:50:30 +00:00
Volker E 7a42af066b Remove irritating transition on menu tabs
Removing irritating dropdown arrow position transition
on menu tabs. It is the only place we're using this and it seems obscure
and not helpful to the users from UI Standardization point of view.

Bug: T68698
Change-Id: I8d30108b86b47358349de2ea424c0ba7f67ee7e2
2017-07-20 21:20:59 +00:00
Translation updater bot f5214fa397 Localisation updates from https://translatewiki.net.
Change-Id: I51d3e822edb6a1fc5734a2f3ecf13afb31280200
2017-07-20 22:11:55 +02:00