Commit graph

417 commits

Author SHA1 Message Date
libraryupgrader
d994eb5faf build: Updating mediawiki/mediawiki-phan-config to 0.3.0
Change-Id: Iccb4d16eb28071892371f8a3580e61af28937ebd
2018-06-08 06:30:38 +00:00
Translation updater bot
392924e5af Localisation updates from https://translatewiki.net.
Change-Id: Id62829625b1c50e6fab6bdaf51eeac59b99577f6
2018-06-07 23:22:44 +02:00
jenkins-bot
8a9bea4df7 Merge "Set mobile width cutoff to 550px" 2018-06-06 21:15:39 +00:00
Isarra
406adb14f2 Set mobile width cutoff to 550px
Should avoid more of the issues with unwanted appearance of mobile
layouts. Cutoff results in layout switch when sidebar becomes ~a
third of the total window width.

bug: T196213
Change-Id: I9b8baee5fe53316128f864e732c86750b4e5470e
2018-06-06 21:06:13 +00:00
jenkins-bot
d0988e0800 Merge "Hide dropdowns instead of removing for screen readers" 2018-06-06 20:15:52 +00:00
jenkins-bot
36aa8d51e6 Merge "Add user preference to control responsive MonoBook" 2018-06-05 22:57:08 +00:00
Translation updater bot
ae53e28772 Localisation updates from https://translatewiki.net.
Change-Id: I55bbe3eb07188c1bdd24377b6bd1055007634a5f
2018-06-05 22:01:15 +02:00
Isarra
940f56a2fe Hide dropdowns instead of removing for screen readers
bug: T196190
Change-Id: I46d6b0683e0b6828d35f95f0bd68486cf22d57dd
2018-06-05 13:10:38 +00:00
Kunal Mehta
9f9a5f2290 Add user preference to control responsive MonoBook
This provides a device agnostic, persistent opt-out for the new responsive
functionality.

The preference will show up under the skin selector if the user has their
skin already set to MonoBook. I considered adding a new skin option to
the radio selector of skins, but that is probably unnecessary for the
majority of users, in addition to complicating how to differentiate the
two modes (Classic MonoBook vs. Modern MonoBook?).

Wikis that want to make this opt-in can control the default in the standard
way ($wgDefaultUserOptions), or hide it entirely ($wgHiddenPrefs).

Change-Id: Id22f8e5199ff2b15fd03c94097db5cdc7188f8b1
2018-06-04 21:40:09 -07:00
Translation updater bot
689e7eb634 Localisation updates from https://translatewiki.net.
Change-Id: I7aa031c1d6612b3c6b012ecd9e3c23f17305b8b4
2018-06-04 22:30:14 +02:00
Translation updater bot
da6fa2fd60 Localisation updates from https://translatewiki.net.
Change-Id: I40a6594d0f957c058e8456583f232a8732988ea4
2018-06-03 22:19:07 +02:00
Translation updater bot
916698d563 Localisation updates from https://translatewiki.net.
Change-Id: Ia47dfe4f5d2a5981630cb57c5802c40a01eb0028
2018-06-01 22:07:11 +02:00
Translation updater bot
2a98cb1ff9 Localisation updates from https://translatewiki.net.
Change-Id: I8de154657f34e0ac7cba73de0d4ec36a595f33e9
2018-05-31 22:12:02 +02:00
Translation updater bot
7d75f86910 Localisation updates from https://translatewiki.net.
Change-Id: I3336628cabbe27c8b1cc66434ec4835f492abab1
2018-05-28 22:21:59 +02:00
Translation updater bot
573bab3af8 Localisation updates from https://translatewiki.net.
Change-Id: I3af726e7f3eee3b967f6f43fd7efa95e298b549c
2018-05-26 23:14:55 +02:00
libraryupgrader
f6e2ca1230 build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: I89affcb0204f822385bac607c7c36e75a88bfda5
2018-05-25 23:18:21 +00:00
Translation updater bot
45537b72ea Localisation updates from https://translatewiki.net.
Change-Id: I32d7307a73a4bb3df6501ead1d10882b39514d7a
2018-05-25 21:59:39 +02:00
Translation updater bot
502558851b Localisation updates from https://translatewiki.net.
Change-Id: Ic8a1d5dcf717cede769351c5d5957c90084b3de9
2018-05-24 21:56:08 +02:00
Timo Tijhof
6dccc0d96e Re-implement and improve mw-jump links with pure CSS
* Improve their accessibility by giving both links a full label
  ("Jump to x" and "Jump to y" instead of "Jump to: ", "x", "y").

  This also makes things better for localisation.

* Use pure CSS for the toggling of the visibility on focus,
  instead of relying on JavaScript. Especially given the
  JS came from core's 'jquery.mw-jump' module, which is
  considered technical debt per T195256.

* Use plain <a> links in the HTML instead of wrapped in a <div>.
  This solves the long-standing problem whereby the margin
  between #contentSub and #mw-content-text had to be awkwardly
  negated and overridden.

Bug: T195256
Change-Id: I40a769ee3a822a5a9167ec1d144e6b151eb8e141
2018-05-24 01:30:55 +01:00
Translation updater bot
bfa8e85101 Localisation updates from https://translatewiki.net.
Change-Id: Id558f0990c87332b252a8721fff9a1c8fa0597bf
2018-05-23 22:05:15 +02:00
Translation updater bot
a3bfa15bb2 Localisation updates from https://translatewiki.net.
Change-Id: I4bbda2db850bbe5953c2f47d66348a973e1d6884
2018-05-22 22:03:52 +02:00
Translation updater bot
27256ea8e1 Localisation updates from https://translatewiki.net.
Change-Id: Icb93def0b1e3a92a2e3dc59db1bd698affe55a42
2018-05-21 21:55:31 +02:00
Translation updater bot
a8eadfa7e8 Localisation updates from https://translatewiki.net.
Change-Id: I55aec27db144646028db85c087156358f9152c6e
2018-05-20 22:27:24 +02:00
jenkins-bot
a0bd45ec18 Merge "Make echo numbers appear on mobile" 2018-05-20 15:35:46 +00:00
Isarra
6fe98ca305 Make echo numbers appear on mobile
Change-Id: I812e94dc2de5a527b1e3dce110b8d137466c4068
2018-05-20 15:17:47 +00:00
Brian Wolff
18ed5d4caa Fix ?debug=1 mode for resources
Change-Id: I7e746e7c5af8ffd7c4ca06742ab1fe6bc94ba522
2018-05-20 14:41:44 +00:00
jenkins-bot
5a7dd3a77c Merge "Mobile - reorganise and clean up p-personal js dropdown" 2018-05-20 14:00:06 +00:00
Isarra
ca53e721ab Mobile - reorganise and clean up p-personal js dropdown
* Reorder ULS and Echo links
* Rename conditional module load hook to be more generic, and add
  ULS module
* Remove .active bolding from dropdown

Change-Id: I7e746e7c5af8ffd7c4ca06742ab1fe6bc94ba531
2018-05-20 10:29:50 +00:00
jenkins-bot
e43f05404c Merge "Responsive support: Echo hacks" 2018-05-19 22:47:12 +00:00
jenkins-bot
0f722dabf9 Merge "Responsive support, JS edition" 2018-05-19 22:47:11 +00:00
jenkins-bot
26437df864 Merge "Responsive support, noJS version" 2018-05-19 22:43:49 +00:00
Isarra
ef1f98e7bd Responsive support: Echo hacks
Have echo just show the numbers instead of the badges, and add a
text link to special:notifications in the dropdown, as opposed to
entirely reimplementing the flyout layout

Change-Id: I072dbc2b7bf70b6675469e09e3beb3927e06d0f7
2018-05-19 21:15:31 +00:00
Isarra
0e2ee04c87 Responsive support, JS edition
Dropdown menus and js interactiveness for people who like to pretend
we live in a modern era or something.

Does not actually support newfangled tapping and swiping stuff.
Does not properly support echo. (will follow up)

Change-Id: I27d50c320b1526b9d158016a0e8022567f78ccc1
2018-05-19 20:17:17 +00:00
Kunal Mehta
38552d0cce Configure phan
Change-Id: I0267146eea98ee8219c2a0c59992f0e5abe17309
2018-05-06 21:07:04 -07:00
Isarra
70d426d4fd Responsive support, noJS version
* Add screen-mobile.css with basic mobile styles
* Force loading of screen-desktop on IE8- due to lack of
  @media width support
* Add some new divs and a set of spoof cactions for jumping
  around the page (what's js?)
* Replace cactions label with a more descriptive string (was
  previously set to display:none regardless)
* Also add a set of icons for fixed widths for tabs and things
  (icons-source.svg is the source file for the set, and includes
  a few others that ultimately weren't used here)

Cutoff 850px. Desktop styles should remain unchanged, with
mobile remaining stylistically consistent.

Change-Id: I737a7447db1e44e0d6abaa4c07813295a5ac73a6
2018-05-02 22:20:54 +00:00
Bartosz Dziewoński
33e2eb5eef Convert screen-desktop.less back to .css
A proposed change (I737a7447db1e44e0d6abaa4c07813295a5ac73a6) requires
this not to require Less parsing. It was unnecessary to convert this
to Less when I could have just removed an `/* @embed */` annotation.
Follow-up to ac8b055693.

Change-Id: Iba82f57d4ba3e65c61a5ef795b3b8d9c3f164a39
2018-04-19 01:03:25 +02:00
Max Semenik
0a882121e4 Don't use deprecated Sanitizer::escapeId()
Change-Id: I8df63140691db63c37c11f55212e17854f6cdb6c
2018-04-13 16:08:27 -07:00
libraryupgrader
f061c9e078 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic

Depends-On: I74374c49407dcb789ef8a9219158a9a773c09d81
Change-Id: I467662e17ee381fd433f548f21ddf651ae632d61
2018-04-13 19:56:20 +00:00
Brian Wolff
a27eb346d5 Merge "Convert rest of MonoBookTemplate to build giant string and echo once" 2018-04-11 02:55:10 +00:00
Isarra
10c0aeaa88 Convert rest of MonoBookTemplate to build giant string and echo once
More helper functions, general refactoring.

Output structure is all the same, all existing attributes
maintained. Some new ones are added:
* p-personal now rendered via getPortlet; has extra attribs
  according to all others rendered with it
* footer rendered with slight variant of getFooter out of
  BaseTemplate; has extra language attribs according to that

Change-Id: I462d1222b0166956d3dce17fbceccf386e179e8d
2018-04-11 02:44:38 +00:00
Bartosz Dziewoński
ac8b055693 Consistently embed images in CSS (or not)
Use .background-image() and .background-image-svg() mixins to embed
all SVG images, but not embed GIF/PNG fallbacks.

Change-Id: I807719dbf07749f4c942b4ba9b023440ca52a510
2018-04-05 16:25:32 +02:00
Mukunda Modell
2e1865640c Use background-image instead of .background-image-svg
Bug: T191237
Change-Id: I84a11685d6e2fefdedafc056e3433f0c8aaa2218
2018-04-04 19:52:41 +00:00
Isarra
cbc6e46f68 Refactor MonoBookTemplate helper functions to return output
instead of just spitting it out directly

Also rename all of said functions accordingly, add documentation,
and start trying to make an actually cross-compatible version of
getPortlet() for BaseTemplate...

Output should be structurally the same. All existing attributes for
output elements are maintained; some may have new attribs added due
to more consistent render method (getPortlet). (Essentially, if one
item had it, now they all have it.)

New attribs include:
* id
* lang
* dir
* aria-labelledby

Change-Id: I0a7ca1b95c2ad03273ed9c713be0da694c94a176
2018-04-03 04:58:46 +00:00
Isarra
155cfd8658 Optimise svgs
Previously added some svg versions of icons and background images.
svgs have now been run through svgo and cleaned up per Nikerabbit's
advice.

Also slightly tweaked user.svg to better match raster version.

Change-Id: Icf7ad259366a7051c66e2b8d6ac229ef1f0388fe
2018-04-01 17:25:18 +00:00
libraryupgrader
61426c13ad build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: Ic4db7a090578ee3a894b74e66284902db55ff724
2018-03-28 18:31:19 +00:00
Bartosz Dziewoński
82580b2dd7 Remove unused styles
These elements no longer exist. See comments on the previous patch.

Follow-up to e33b232785.

Change-Id: I58aca1f4255df14d6289e167e180dad31b546a8c
2018-03-27 19:45:32 +00:00
Isarra
e33b232785 Move Cite styles into separate skinStyles sheet
No guarantees that these styles actually apply to anything anymore.
But at least the TODO is resolved!

Change-Id: Ibb43c044f50f026afa84a0151b113dd600956942
2018-03-24 18:38:33 +00:00
Isarra
2b24cbab0e Separate desktop and common styles, clean things up a bit
Part of the move toward responsiveness.

* Use mixins and variables!
* Vectorise existing icons
* Delete a rule or two that don't apply to the source anymore
* Consolidate similar colours into the same ones using variables

Change-Id: I2f0eb2b79cba01d8fa3a06298711e8af4d5508ba
2018-03-24 18:10:23 +00:00
Isarra
7b01f37552 Rename main.less to screen-common.less to prepare for splitting
Part of the move toward responsiveness.

Change-Id: I6ca7c87fff7a65b05b2310885aedaeede9647c78
2018-03-24 18:01:41 +00:00
Isarra
a29f04c254 Vectorise book background image
Also:
* Convert main.css to less because I can't figure out how to do svgs
  and fallbacks by hand
* Add gradient image to fit with book for really, really, really wide
  displays (and move book background to globalWrapper to make it
  actually work)

Change-Id: Ie6f5b6b87b475953274688fc4640f9fa17184fa4
2018-03-23 22:06:25 +00:00