Commit graph

1075 commits

Author SHA1 Message Date
Stephen Niedzielski 4a969cadf6 Hygiene: improve Math formula print styling comment
Add an example from the Math extension showing how the print styling
rule for font family is relevant.

Bug: T181138
Change-Id: Ib5a35b7a555c898d354c16077f44acf1e50f5ebb
2018-01-16 10:05:53 -06:00
Stephen Niedzielski 08e68d600a Fix: style printed math formulas with serif font
When printed, math formulas appear best rendered in the same font as the
body, serif. Override dl and other sans-serif styling rules for all
printed images. e.g.: https://en.wikipedia.org/wiki/Frame-dragging.

Bug: T181138
Change-Id: I9755a23cbec8388964c27d938a7aea8e25fe2f7f
2018-01-11 16:32:42 -06:00
Translation updater bot 4885722aaf Localisation updates from https://translatewiki.net.
Change-Id: I58b630b0ccceacf009f72f1498d550a7575757a3
2018-01-10 22:07:58 +01:00
Translation updater bot 11c690d94a Localisation updates from https://translatewiki.net.
Change-Id: I870d6c21c41e47fe10f9fbb925dddf5f7f524910
2018-01-09 22:03:40 +01:00
Translation updater bot c6ce92bf50 Localisation updates from https://translatewiki.net.
Change-Id: I1c4270b2c35ecabafa2c7b199260675efe5d038d
2018-01-08 22:11:02 +01:00
Bartosz Dziewoński d82e4db35e Make dropdown menus keyboard-accessible without JavaScript
Instead of implementing keyboard (and mouse click) handling in
JavaScript, put an invisible <input type="checkbox"> into the
dropdown handle. It can be focused and toggled using keyboard
actions like a normal checkbox. This checkbox also takes over
the duties of handling mouse hovering and clicking.

Old JavaScript and CSS are left in place for compatibility with
cached page HTML, to be removed later in a follow-up.

Bug: T168080
Change-Id: I27532140b06c97921f1cfb64e44bff814d99a358
2018-01-03 21:58:51 +00:00
jenkins-bot b906b83f32 Merge "OOjs UI: Fix z-index and font size for default overlay" 2018-01-02 21:58:16 +00:00
Translation updater bot facd049fba Localisation updates from https://translatewiki.net.
Change-Id: I4aa651e1acef5288f10c946ac3de99b400b28d01
2018-01-01 08:47:10 +01:00
libraryupgrader 8ae2c0c2d6 build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
The following sniffs are failing and were disabled:
* Squiz.Scope.MethodScope.Missing

Change-Id: I95d20a660bc1f4f101f72ce17b49e9b640bb6f45
2017-12-30 04:04:36 +00:00
jenkins-bot 322fed3a88 Merge "Do not fail when we can't get the config" 2017-12-29 23:02:36 +00:00
jenkins-bot dc26277df4 Merge "Revert "Revert "Print styles in Vector are no longer feature flagged""" 2017-12-29 23:02:29 +00:00
Bartosz Dziewoński ead80732b9 Do not fail when we can't get the config
Config is not available when running in the context of the MediaWiki
installer.

Bug: T183640
Change-Id: Iaf3fa508fb71e93570120134f7c44001f5833f1c
2017-12-29 22:55:33 +00:00
Translation updater bot 7dda75ee09 Localisation updates from https://translatewiki.net.
Change-Id: I4d5439788fff22a1d6b441a7e37a9eaa460a1229
2017-12-28 09:08:42 +01:00
Bartosz Dziewoński 7abf395766 Revert "Revert "Print styles in Vector are no longer feature flagged""
The revert looks like it has been performed incorrectly,
and I found a much better solution to the task anyway.

This reverts commit 7d2fc6df27.

Bug: T178028
Bug: T183640
Change-Id: Ib46c69b061b522fc6365459297ad3f3d4f4d0d0d
2017-12-27 11:26:29 +00:00
Bartosz Dziewoński c573554c23 OOjs UI: Fix z-index and font size for default overlay
Override default font size for .oo-ui-defaultOverlay (0.8em) to the
same as content in Vector (0.875em).

Make it appear on top of the personal menu too.

Bug: T183069
Depends-On: I53888581f9e1da3b036166613c46cbc1085aa55e
Change-Id: I459aad271c0c15248e54e312b8bdc44ed244733b
2017-12-27 06:32:51 +01:00
Paladox 7d2fc6df27 Revert "Print styles in Vector are no longer feature flagged"
This reverts commit c863b94302.

This breaks the MediaWiki Installer ui.

Bug: T183640
Change-Id: I9f249db503c4df6ab9d87b97d9f2d1dca80744ba
2017-12-23 19:17:49 +00:00
Moriel Schottlender bf698128f2 Move the 'rcfilters overlay' rule to the RCFilters stylesheet
Depends-On: I8357ef2ff0fe4f46b9ee665ef068624de0afd2e5
Change-Id: Ie36eeddc46c8ea3d154a006fed2fe578be1cd05c
2017-12-22 10:04:15 -08:00
petarpetkovic b0f65a08df Fix detached RCFilters menu
In attempts to fix RCFilters menu overlap with other UI elements when
opening upwards, I1fe6b8b2c9 adds `z-index` rule to overlay element.
But as part of the same rule, `position: relative` is added which
cascades the absolute positioned overlay, causing it to appear in
natural flow of document, which causes menu positioning parameters
to render the menu detached from RCFilters.

Bug: T183442
Change-Id: I3f7db005730d045b2278753cfd655169a96c60a9
2017-12-22 14:07:22 +01:00
jenkins-bot 7c1caddf8f Merge "Inline lists in new print styles should not have a smaller font size than surrounding content" 2017-12-21 02:20:47 +00:00
Rafid Aslam 43b1ed9e18 Add minus-x to "composer test"
Add minus-x to "composer test" and "composer fix"

Bug: T175794
Change-Id: I0a8b67e15f691aa1dad78d28e220cf9d5bcd8b0f
2017-12-20 21:46:11 +07:00
Yifei He 5847c798dd Inline lists in new print styles should not have a smaller font size than surrounding content
Bug: T178667
Change-Id: I2a9bc621db5a09cb5a5653488e0f9dd6c236a773
2017-12-20 02:43:18 +00:00
Translation updater bot e13d71bef3 Localisation updates from https://translatewiki.net.
Change-Id: I205d931db4acc253df813112d7cd0c4367f93e0b
2017-12-18 22:23:18 +01:00
Bartosz Dziewoński d4eabd9d10 Fix z-index for RCFilters' overlay
Currently the personal bar displays on top of it. This wasn't
visible until some popups started opening upwards rather than
downwards. We should fix this better some time...

Bug: T182711
Change-Id: I1fe6b8b2c9c1e4d12a9a4d2d1edd1ead269780cf
2017-12-12 23:53:09 +01:00
Translation updater bot bfdd168413 Localisation updates from https://translatewiki.net.
Change-Id: I1a5cd5feb9421a0f87ee9794c06e226a51f3a60b
2017-12-12 22:25:25 +01:00
jenkins-bot 5268f8edb9 Merge "Fix incorrect indentation of TOC on print preview" 2017-12-12 13:41:23 +00:00
Albert221 4ee212adc4 Fix incorrect indentation of TOC on print preview
Also add the white space that was taken by hiding
.tocnubmer to .toctext

Bug: T179363
Change-Id: I06c502f3d4bee687ed7f300246687aff978ed1d6
2017-12-11 22:26:24 +01:00
Translation updater bot a9bcea2971 Localisation updates from https://translatewiki.net.
Change-Id: I51bb0f8f98c6e4099e08fd009e3e06c8c91bd813
2017-12-10 22:07:12 +01:00
Umherirrender 1c0725da94 Rename file Hooks.php to match class
Change-Id: I59058d580d6b4ced5b7744c46baf074042467df7
2017-12-09 21:32:56 +01:00
Translation updater bot c08bd1fb7a Localisation updates from https://translatewiki.net.
Change-Id: I6226d2ded99db569aa9a9e27ee310966460c54c1
2017-12-05 08:51:48 +01:00
Translation updater bot 6d5f9c0cb1 Localisation updates from https://translatewiki.net.
Change-Id: I94d5d8c0ac604c94afd266961163d344188e908f
2017-11-30 22:47:06 +01:00
Thiemo Mättig d46cb97aeb Fix dysfunctional collapseCondition when right-most tab is the star
The issue I'm fixing here is described at
https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#Hard_to_read_titles

The code I'm touching here is from 2014. I believe the issue is not new, but
pops up extremely rarely. Multiple conditions must met:
1. The user must use an extreme zoom (or an extreme font size), or a
   super-narrow browser window. This is also how you should reproduce
   this: make your browser window very narrow, and then start zooming in
   extremely.
2. The issue only appears in namespaces where you can not move pages! This
   is the case for the vast majority of pages on Wikidata and the reason why
   it appears to be a Wikidata-only issue (which it is not). If you can move
   a page, the right-most button is "Move", which is wide enough to be worth
   collapsing, or is already collapsed.

If the right-most (":last") button is the watch star, the code believes it is
not worth collapsing it because the "More" button would consume more space.
This is true, but does not consider the other buttons that can also be
collapsed.

My code considers all collapsible buttons.

Change-Id: I6e94750b3b80940005f4d655e5e9b426d44b2ffb
2017-11-30 18:53:02 +00:00
Translation updater bot 2c29439b30 Localisation updates from https://translatewiki.net.
Change-Id: Ib0720214c9f0104be4ecc5ddb3d107b6b5432424
2017-11-29 22:10:47 +01:00
Ed Sanders e3effd4201 mw.notify: Remove rules duplicated from core
Change-Id: Ibaebea290b2a912fdc9914cfc12d7916a0fe1d18
Depends-On: I157e41631c4a09842b869215b0d6dbb99c1a4d36
2017-11-29 16:01:50 +00:00
Translation updater bot 0db35388d0 Localisation updates from https://translatewiki.net.
Change-Id: I8f737c6a9b2481abb580ed30cbee9480d125c4a0
2017-11-28 22:01:44 +01:00
Translation updater bot e0b37470bb Localisation updates from https://translatewiki.net.
Change-Id: I46cc4784e66cc32bb5bd6b806633433741626e2c
2017-11-27 22:11:40 +01:00
Translation updater bot 4ff9644a70 Localisation updates from https://translatewiki.net.
Change-Id: Ia50ea41772522fcd9111119816a11e177a2b2d79
2017-11-25 22:08:16 +01:00
Translation updater bot af5d639ec1 Localisation updates from https://translatewiki.net.
Change-Id: Ia854c733234d211858dd6e59e364cd8578b1a4ea
2017-11-24 22:30:07 +01:00
Translation updater bot 3283181def Localisation updates from https://translatewiki.net.
Change-Id: I7db354fdc6a2e65b7ba0ac0443867c6927f5c64c
2017-11-23 22:36:11 +01:00
Translation updater bot 19596fc9f5 Localisation updates from https://translatewiki.net.
Change-Id: Iac40afffc4a99ea976f540c6ba66fbf73d5b9227
2017-11-22 22:00:00 +01:00
Fomafix fb79cd46b3 Restore indicator for menuForceShow of tab menus
The previous indicator was removed in 7a42af066b because of a position
transition. The new indicator has no animation.

An indicator is useful to distinguish between the hover and the click
actions.

Change-Id: Icf765d4985aea36e4f4f6653e769aafaf3c30d07
2017-11-19 19:34:15 +01:00
jenkins-bot 56e314ca0c Merge "New VectorAfterToolbox and VectorBeforeFooter hooks" 2017-11-17 21:16:26 +00:00
Translation updater bot cf241dea2a Localisation updates from https://translatewiki.net.
Change-Id: I7037dd754161c0c6684cc90ba1b3bdd94ce005ba
2017-11-16 22:37:05 +01:00
Timo Tijhof 6e8a52a8d2 VectorTemplate: Restore 'id' for siteNotice wrapper
Follows-up bc47b4f.

Change-Id: I4220077679ac6d33650ed82a59696f22f1715485
2017-11-13 21:19:36 -08:00
jenkins-bot 94f8a55767 Merge "VectorTemplate: Refactor literal HTML by using Html methods instead" 2017-11-13 17:37:25 +00:00
jenkins-bot 4e990c081f Merge "Use mw-parser-output for content styles, instead of mw-body-content" 2017-11-13 12:44:04 +00:00
jenkins-bot 068a68bffa Merge "VectorTemplate: Some consistency in mixed PHP/HTML formatting" 2017-11-13 07:35:49 +00:00
Translation updater bot f53efa37eb Localisation updates from https://translatewiki.net.
Change-Id: I0738bcf226617b1719f8ccd49ee64452761f5925
2017-11-12 22:01:44 +01:00
Translation updater bot 3a6ed3e300 Localisation updates from https://translatewiki.net.
Change-Id: Ibbaa491b4f3cffeb3fe72869343088c544b36fa7
2017-11-11 22:00:22 +01:00
Timo Tijhof bc47b4fb3e VectorTemplate: Refactor literal HTML by using Html methods instead
To some degree the literal HTML was (maybe) useful and self-documenting
at some point when the template was really simple, but until and unless
we really use an Html template for this, it's probably a lot easier to
maintain, understand and review (incl. from security perspective) if
we consistently use the Html class abstraction.

For now, I'm only focussing on cases where there is mixed literal HTML
with embedded PHP statements. The cases where HTML is created plain without
embedded PHP I'm leaving untouched for now.

Any case where attribute or content comes from PHP, use the Html class
instead to clearly indicate which values are escaped, and which are not.

Change-Id: Ib2d6425994918b0c17ef29c1b5d0f9893f61a889
2017-11-10 19:37:38 +00:00
Timo Tijhof ae0d9f9f72 VectorTemplate: Some consistency in mixed PHP/HTML formatting
Consistently do the following in this file:
* Consider '<?php' the start of a block indented level, like other code blocks.
* Don't increase indentation between the opening of '<?php' and the top scope
  within, consistent with other PHP files and most of this file.
* Don't manually create tabs or new lines to try to align with the HTML,
  this is a pointless excercise that already doesn't line up anyway. It just
  creates more arbitrary whitespace. Most portlet, personal, sidebar stuff
  is already not doing any indentation, this removes some of the remainder,
  at least in places where it was manually being emulated. The natural stuff
  stays for now.
* Remove some arbitrary line breaks.

Change-Id: I42627ac8473604c7c1309db370302f5ee5f1df0e
2017-11-10 19:27:49 +00:00