Commit graph

582 commits

Author SHA1 Message Date
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
Ed Sanders
4586361991 Fix default overlay selector
Change-Id: I3f73355d11e021cd90579b0bb18766d890883c1c
2018-03-23 00:42:01 +00:00
Isarra
57106ab179 Restructure files according to modern skin practices
Also delete unused images, since even if something is
somewhere using them anyway (looked, couldn't find
anything), it wouldn't be able to find them in the new
image location regardless.

Wiki.png, magnify, and link are all part of core and have
been for some time.

Change-Id: Id7a02155a5f1b207908c9c0c8f7519b6d3f9a886
2018-03-21 21:56:55 +00:00
Volker E
0875be18f2 Lower CSS specificity of #footer rules
Change-Id: Ic53bc9639b8a664909d81e242010e86fecd81c65
2018-03-17 22:18:03 -07:00
Isarra
edd5682094 Remove redundant user-icon from login link in personal tools
When not logged it, there's already one on 'not logged in'. Two just
looks silly.

Change-Id: I0de0de4967193b0bf2bfaea739fd197968fdc356
2018-03-17 18:47:34 +00:00
libraryupgrader
fb35e5ac02 build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: I4ac4e9b19908e27ab2d830aea91639e25972482e
2018-03-09 02:41:39 +00:00
Translation updater bot
ba48d49d6f Localisation updates from https://translatewiki.net.
Change-Id: I5740407b74d027eaf31f7a89b8effa5a79624f16
2018-03-01 21:59:05 +01:00
James D. Forrester
511ccc3d78 build: Bump devDependencies to latest
grunt                        1.0.1  →   1.0.2
 grunt-banana-checker         0.5.0  →   0.6.0
 grunt-eslint                20.0.0  →  20.1.0
 grunt-stylelint              0.8.0  →   0.9.0
 stylelint                    7.8.0  →   8.2.0
 stylelint-config-wikimedia   0.4.1  →   0.4.2

Change-Id: I3200969a13644b6f50f1aa18433ca6f0bfb7cecf
2018-02-26 10:30:46 -08:00
libraryupgrader
801064d1ee build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I4a0d56b96e4b3bf5518203484874feb98cf60b29
2018-02-25 05:34:43 +00:00
Umherirrender
150645e778 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I62c219a9d7129b6cabe6f53a4461cfbaff9294b2
2018-02-22 20:19:25 +01:00
MarcoAurelio
0eb3eecc61 Use valid SPDX-3 license identifier
Change-Id: Ib29500f6df89f30646a9587d01a8681e5f1297da
2018-02-15 21:13:21 +00:00
libraryupgrader
8c023efaea build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: I073add3aaf92f007d737aab9b81c1b399a5a00f4
2018-02-15 06:41:49 +00:00
Tulsi Bhagat
54c7c2f523 Removed deprecated position statements from resource loader module
Bug: T184257
Change-Id: Ie7b043904510dcd25a003d25c5ca794f6f543db9
2018-02-12 21:18:13 +00:00
Translation updater bot
5b389aa27c Localisation updates from https://translatewiki.net.
Change-Id: Icfc6fee45247430c43bcc1882c7caf15434594ad
2018-02-12 09:06:34 +01:00
Translation updater bot
cc8fde06ef Localisation updates from https://translatewiki.net.
Change-Id: I43a43bcb9be8569daa9e0f225a888ad42ed84b15
2018-01-22 21:58:08 +01:00
Bartosz Dziewoński
b4d5bf46c0 OOjs UI: Fix font size for default overlay
Override font size for .oo-ui-defaultOverlay to match normal content.

Bug: T183069
Change-Id: I1941365fb1550604ff45fbe60bacc600f72eea9e
Depends-On: I53888581f9e1da3b036166613c46cbc1085aa55e
2018-01-02 19:21:55 +01:00
libraryupgrader
c01f82b36e build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
The following sniffs are failing and were disabled:
* Squiz.Scope.MethodScope.Missing

Change-Id: Ibd703acd59aede18b0f11f81173343f488e6ceb6
2017-12-29 22:37:31 +00:00
Rafid Aslam
b159861383 Add minus-x to "composer test"
Add minus-x to "composer test" and "composer fix"

Bug: T175794
Change-Id: Ie987caacda887a862022632ecce3f5db4db8c9aa
2017-12-19 22:12:28 +07:00
Translation updater bot
53e95c4970 Localisation updates from https://translatewiki.net.
Change-Id: I0b52ad5d87f135864f7fd441e2ac4c7d609601c4
2017-12-18 22:23:13 +01:00
Translation updater bot
bf75b331a3 Localisation updates from https://translatewiki.net.
Change-Id: Ic128387a65ad93cf4a8b2c1954aa50152661b1e9
2017-12-04 22:40:04 +01:00
Translation updater bot
dd11938592 Localisation updates from https://translatewiki.net.
Change-Id: Ibbf96ba28c5192058a17e99fe199d358e1143c33
2017-11-06 22:22:50 +01:00
Translation updater bot
c14e39c55e Localisation updates from https://translatewiki.net.
Change-Id: Ia2722d6bc29cb35ba5907e776904eec32adab42f
2017-10-31 21:58:53 +01:00
libraryupgrader
b5d1ffd64e build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I7f304227c0954e603b6c4958c76de4b9a381cc05
2017-10-21 03:00:15 +00:00
Translation updater bot
955d017825 Localisation updates from https://translatewiki.net.
Change-Id: Ib1c51b1b4976005368dd5e448dbc77b4b299bf09
2017-10-19 22:05:36 +02:00
Translation updater bot
8b5bb24a40 Localisation updates from https://translatewiki.net.
Change-Id: Ifa8c7e02fdca7cdf17f5f8092e0626dc9bd256be
2017-10-17 22:13:52 +02:00
Ed Sanders
8611bb7f12 build: Update eslint & stylelint
Change-Id: I4af2b930abc0ad25b6ecf9531a74c636a37f0a9c
2017-10-17 18:24:22 +01:00
libraryupgrader
9bd2e896c3 build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I16b59b63f5076f3ba0cc2bfc8953a9cd7488768a
2017-09-24 03:51:24 +00:00
jenkins-bot
fa867dc527 Merge "Don't pass $this by reference" 2017-09-01 11:18:14 +00:00
libraryupgrader
c51dfa2872 build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
Change-Id: Id9ed22e3d5758f6e7277d79d1218add487a77064
2017-09-01 05:01:16 +00:00
Kunal Mehta
ab8afffce2 Don't pass $this by reference
Bug: T153505
Change-Id: I525b06d4dcf2aa7796bd6769edf8703f15e5612a
2017-08-31 21:11:06 -07:00
Translation updater bot
50e7d634e1 Localisation updates from https://translatewiki.net.
Change-Id: I1ebecf0b891e4a1ab42c1d7fc95357be776e29ba
2017-08-25 08:55:27 +02:00
Umherirrender
e2c2eb27e3 Use json extension for .stylelintrc
Bug: T173516
Change-Id: I1d451a3840a8d06438fa7f889814e53c9544025e
2017-08-19 00:10:09 +02:00
Kunal Mehta
2bb6b36db1 build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I077fa6e2c9c1f242ac1fe4a182aa5f776caa0e30
2017-08-14 22:56:17 -07:00
Bartosz Dziewoński
862613e323 Add skin screenshot for the installer
Bug: T68295
Change-Id: I1eb2fd5294d1aff92d3870749448047b49843857
2017-08-11 15:36:22 -04:00
Umherirrender
82a68cffec build: Exclude composer vendor folder
Change-Id: I23d5eabaaa0c13d33f94164a772c2c0b384d1c79
2017-08-03 15:02:59 +02:00
Translation updater bot
f481c339de Localisation updates from https://translatewiki.net.
Change-Id: Idef4fb99b77ed848b2954b2a13cb0030782836f8
2017-08-01 22:11:03 +02:00