Commit graph

1740 commits

Author SHA1 Message Date
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
Bartosz Dziewoński e4b05ae836 Revert "Fix reversed nav elements when viewing cached HTML"
No longer needed for Wikimedia wikis after the HTML caches expired.
This reverts commit e951a09913.

Change-Id: I5eda153e3368f6a7f9d2f88e336e02b65d01f2b5
2017-11-10 19:17:57 +01:00
Ed Sanders f582645407 Use mw-parser-output for content styles, instead of mw-body-content
Change-Id: Idf0f5f12724d6ce7558102cd4eedc4004e045054
2017-11-10 15:48:18 +00:00
Bartosz Dziewoński ff2f37bc7c Use 'color' to change lightness of "More" menu label rather than 'opacity'
Changing 'opacity' from 1 to other values can cause the browser to use
a different text rendering method, producing unpleasant effects.

We still have to use 'opacity' to change the lightness of the arrow
icon, so move it into an :after pseudoelement.

Bug: T179988
Change-Id: I19c5eafb9ab7e652f2661144abc1e03b381f5ff4
2017-11-07 23:37:46 +01:00
Volker E 29c515ae3f Align VectorMenu items and unify padding with tabs
Aligning VectorMenu items horizontally with menu handle and
set `padding` consistently to `8px` – taking into account
different `font-size`.
Also removing unnecessary duplication of `margin-top` as `margin`
is set in same rule.

Bug: T179782
Change-Id: I30e9b4e50589ef09a0e5dcb0e6c4486e7779a39d
2017-11-07 20:46:33 +00:00
Translation updater bot 0677fc17d4 Localisation updates from https://translatewiki.net.
Change-Id: If769a8bb0cac8db88ed406bd02304e1759fe64c7
2017-11-04 22:07:46 +01:00
jenkins-bot 1582f981ec Merge "Print styles in Vector are no longer feature flagged" 2017-11-03 23:36:02 +00:00
Translation updater bot cc2a9c8870 Localisation updates from https://translatewiki.net.
Change-Id: I17d7753a682f9216e4d1352be0513fd3bd6cbe5c
2017-11-03 21:58:51 +01:00
jdlrobson c863b94302 Print styles in Vector are no longer feature flagged
Remove feature flagging of print styles

Changes:
* Merge experimental module into skins.vector.styles
* Update skins.vector.styles RL class to support LESS variable
* Remove feature flag class in HTML and LESS (update indents in
LESS file)

Bug: T178028
Change-Id: I8d5c59c5c9f415ffbd7fa41a512cbea87887e9e7
2017-11-02 11:04:58 -07:00
Translation updater bot 1ed289f520 Localisation updates from https://translatewiki.net.
Change-Id: Ib6655db681bfa6aa34d66bc2715d5dde74be1f9f
2017-10-31 21:59:35 +01:00
Volker E f769c088b9 Optimize SVGs and align to WikimediaUI color palette
Optimize and unify markup of SVGs and align to
WikimediaUI color palette where easily applicable.
Also removing three unused image files.

Bug: T153043
Bug: T178867
Change-Id: Ied457ef84357374e66db9e1936ce1b754d53cfdb
2017-10-24 01:18:07 -07:00
Translation updater bot 3717ca9a6c Localisation updates from https://translatewiki.net.
Change-Id: I2e582de41e1f0b1cd1628cf4778494316bc81f8b
2017-10-23 22:27:20 +02:00
Translation updater bot adcac3ad70 Localisation updates from https://translatewiki.net.
Change-Id: I3786591774ddf31c76dc9f8f7ece5fa2c7c4c362
2017-10-22 00:16:53 +02:00
libraryupgrader 0317d33fb4 build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I234f4396d7ab0408179b2cf873749b5aabb88a28
2017-10-21 04:35:15 +00:00
jdlrobson 65b6ba3fbf Clear any floats before the print footer
Bug: T178656
Change-Id: I6291e8ac53240e4e2f1899213a516d27dba95bd5
2017-10-20 13:21:58 -07:00
Translation updater bot c3e8b0ea4d Localisation updates from https://translatewiki.net.
Change-Id: I13aa4a491054fccdb7f7fde67129cc91dbd8ff16
2017-10-20 22:01:51 +02:00
Volker E e2c9a585e4 Bring menu tab appearance closer to standard widgets
Bringing appearance and behaviour closer to standard widget like
DropdownWidget:
- Amending color to be (closest) aligned to WikimediaUI color
  palette, but switch normal and `:hover`/`:focus` state in order not
  to be too disruptive of a change and align with rest of Vector tabs,
- removing obsolete JS functionality as IE 6 as only major browser
  affected does receive the menu items as tabs nonetheless and replacing
  with simple CSS selector,
- removing unnecessary and obsolete images and
- Lessifying selector

Bug: T153043
Change-Id: Ia15480162bb8f923d0e9b6e42ca90c2c880978de
2017-10-19 23:24:15 +00:00
Translation updater bot 5184bb24ca Localisation updates from https://translatewiki.net.
Change-Id: Ib7805596b37103ec06ba866ce97e7679dae2382a
2017-10-19 22:06:05 +02:00
Translation updater bot 105a8767b6 Localisation updates from https://translatewiki.net.
Change-Id: Ib32a9537f0bdaa7a4675b7051c69c3a8a01d29fd
2017-10-18 21:59:02 +02:00
Translation updater bot a68c79c9e0 Localisation updates from https://translatewiki.net.
Change-Id: If062283eeefabd404d93a04a2119f2e952ec0301
2017-10-17 22:14:40 +02:00
jenkins-bot d604fb5cef Merge "Print logo should use an absolute URI" 2017-10-11 19:43:05 +00:00
jdlrobson e2e3acf76a Print logo should use an absolute URI
The logo is configured as a relative URL.
CSSMin encodeImageAsDataURI requires a file path.

There seems to be no reason to use a data uri here.
The print stylesheet is loaded on page load so the image
will be downloaded before a print action takes place.

Inspecting I788bcecadf26e4e5558b5b37e6fb1b2e9378277e
using a data uri makes little difference to the synchronous
nature of a print.

Bug: T177800
Change-Id: I0254ae8e360f09fe1c786695510550c7fec02026
2017-10-11 19:06:29 +00:00
Volker E 0d95e5b6cd simpleSearch: Reduce selector specificity & clean up
Reducing selector specificity and cleaning up CSS as in reducing
properties and putting main colors on top of selectors.

Change-Id: I91959f07404382fcc143607ab4cd5cf0c9aed13e
2017-10-09 17:44:34 -07:00
Volker E 7060ec573f Align simpleSearch border with inputs elsewhere
Aligning
- `border-color`
- `:hover` `border-color`
- `border-radius`
and introducing `transition` to be on par with inputs elsewhere.

Bug: T177808
Change-Id: I41c2719c13935d07f4310c0c752bdfc7377d8670
2017-10-09 17:36:59 -07:00
jenkins-bot f30141fdc3 Merge "Remove fallback color from tabs" 2017-10-09 16:17:46 +00:00
Volker E c163acbdc7 Replace footer text color with WikimediaUI color palette one
Very subtle change from `#333` to tad higher contrast `#222`.

Bug: T153043
Change-Id: I705d03f9c79eafd4569e8ed321939d1044245f59
2017-10-07 20:47:10 -07:00
Volker E 84d1510a38 Remove fallback color from tabs
Removing fallback color from Vector tabs, that isn't part of
WikimediaUI color palette and isn't needed at all resulting
in a worse than necessary appearance.

Bug: T153043
Bug: T168420
Change-Id: Ia9790435dd3ec4df47b70d1a007fca7af79686c9
2017-10-07 18:13:19 -07:00
jenkins-bot 9b58823eeb Merge "Do not special-case ULS and "Not logged in" in RTL in personal bar" 2017-10-04 17:36:57 +00:00
Bartosz Dziewoński b677192582 Do not special-case ULS and "Not logged in" in RTL in personal bar
Follow-up to 5d0a07bf9d.

Bug: T48947
Bug: T177312
Change-Id: I65c0961d19885c262fdaebf4ee199e1d1e6d5fe6
2017-10-04 18:58:10 +02:00
Bartosz Dziewoński 3c542f3078 Fix applying of focus styles to .vectorMenu handle
The .vectorMenuFocus class was being added on the wrong element, so
the styles for it never kicked in. I think this has been broken since
4fabc910d2e1bb4581ac7a80f019bd22758d089b (August 2013), which is
understandable since the style change is near impossible to notice
(the little triangle arrow turns a slightly lighter shade of grey).

Change-Id: I0f7881afde9e01061aacf009033255774d0acd8d
2017-10-03 19:50:51 +02:00
Bartosz Dziewoński 8db5779682 Do not use icon for "Watch" link when it is inside the "More" dropdown
Bug: T177106
Change-Id: Ia50817afe6395d8a52567599d23a232d6f07c0ce
2017-10-01 20:12:11 +02:00
Translation updater bot 467ae1cda4 Localisation updates from https://translatewiki.net.
Change-Id: Ie90a5113a734764fd758a43e3014b188ab05ac99
2017-09-30 22:02:50 +02:00
Translation updater bot 7318a4b975 Localisation updates from https://translatewiki.net.
Change-Id: I41881b0219ed3eb3c17406aabc44d1bc0153e2b0
2017-09-28 21:57:45 +02:00
jenkins-bot e56077fc0b Merge "Remove some unnecessary direction-specific CSS" 2017-09-28 14:05:30 +00:00
Bartosz Dziewoński 6b6c6ba762 Remove some unnecessary direction-specific CSS
Both of these survived across many rewrites, I tracked down the
original commits that added them:

* footer.less: Added in 6d5dca5a899d45512c1031c4235f26cc755b933b in
  MediaWiki core (rSVN62030) as a workaround for "weirdness" in IE 7.
  Users of IE 7 experience much worse weirdnesses when viewing pages
  these days.

* tabs.less: Added in 299d1f328c2ad1475c8a1ac19b4fa07fc087d239 in
  MediaWiki core (rSVN53247) under a generic label of "RTL fixes".
  After change 5d0a07bf9d this is
  actually a no-op.

Change-Id: Iac3d2a26438226a3e23e067780c4b2810ac4903f
2017-09-28 13:22:53 +00:00
Bartosz Dziewoński ee0cfe1833 Remove stray unnecessary @noflip
Follow-up to 5d0a07bf9d.
As it happens, it actually doesn't matter whether this
element has 'float: left' or 'float: right', the
rendering is exactly the same. Let's remove the @noflip
for consistency with .vectorTabs, .vectorMenu etc.

Change-Id: I167c5f6cab7fb85344a558b632b38cbca85fa37c
2017-09-28 04:23:07 +02:00