Timo Tijhof
b843094a2d
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 much better for localisation, for which
we generally discourage use of concatenation.
* Use pure CSS for the toggling of the visibility on focus,
instead of relying on JavaScript. Especially given the
JS comes form core's 'jquery.mw-jump' module, which is
considered technical debt per T195256. Alternatively,
that could be copied to vector.js, but pure CSS
is possible, so why not.
* 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 in core and on various to make sure that
the wrapper itself would become visible as needed, in a way that
has margin around this. This whole problem doesn't apply when
simply using inline links that aren't part of the regular flow
with .mixin-screen-reader-text. On focus, the individually
focussed link appears in regular flow, without the need for
any custom styles.
* This uses :not(:focus) to naturally make it render in the default
way on focus, and visibibly hidden/clipped otherwise.
This is supported in IE9+ and Android 2+.
There is a way to make it work with CSS2 for IE7-8, by applying
the mixin to '.mw-jump-link' only and then undoing all of
'position', 'width', 'height', 'clip', and 'margin' on :focus.
But I'm not sure that's worth it here. The fallback in IE7-8
for not supporting ":not(:focus)" is that the accessibility
link is simply visible always, which seems like a good fallback
for accessibility, and doesn't hurt anything.
Bug: T195256
Change-Id: Icaadb290f692b3617688d32cbb66dfb007f1c82c
2018-05-24 00:08:02 +00:00
Translation updater bot
cc99dda2e4
Localisation updates from https://translatewiki.net .
...
Change-Id: I8c54db08bc09c2afc01abe27371ac78d429b454e
2018-04-13 21:57:49 +02:00
Translation updater bot
f0dc1152f9
Localisation updates from https://translatewiki.net .
...
Change-Id: I1901c7160da9a1e0ccb2baba4098265d89553f33
2018-04-10 22:01:14 +02:00
Translation updater bot
a9ad1609e5
Localisation updates from https://translatewiki.net .
...
Change-Id: Ice585d95930addb613c586f63801dc39f6aaed7d
2018-04-01 08:28:07 +02:00
Translation updater bot
3c90c748a8
Localisation updates from https://translatewiki.net .
...
Change-Id: Ide552761f767e672c8c2fb9f6147613bffb55a91
2018-03-27 21:55:14 +02:00
Translation updater bot
26df7db792
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic4974b9fe3fb4b01b3a289dde32143cf10b63db9
2018-03-26 22:06:18 +02:00
Translation updater bot
5f3d50a56c
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia9902746d1ad0433d46f735211877becca209780
2018-03-24 22:07:42 +01:00
Translation updater bot
2bfe935bc4
Localisation updates from https://translatewiki.net .
...
Change-Id: I57b71720dc25c45779a8d11c8e21e814fabee954
2018-03-21 22:19:29 +01:00
Translation updater bot
3f74e86532
Localisation updates from https://translatewiki.net .
...
Change-Id: I1a1b283ba6090fa41978b6814adf32ff34ca2823
2018-03-19 22:03:48 +01:00
Translation updater bot
5db0c43a45
Localisation updates from https://translatewiki.net .
...
Change-Id: I854e5c120217f47675e398df6d853824d3958af4
2018-03-10 21:57:38 +01:00
Translation updater bot
7fd74c1169
Localisation updates from https://translatewiki.net .
...
Change-Id: Iecd2bee6daefb00e95baad3aa927cb6748b187b4
2018-03-09 22:03:36 +01:00
Translation updater bot
b53cdbbcde
Localisation updates from https://translatewiki.net .
...
Change-Id: I6c27334283055465b33df2dca520d6a4b2183c81
2018-03-08 22:25:35 +01:00
Translation updater bot
485ed08363
Localisation updates from https://translatewiki.net .
...
Change-Id: I2deef17dfc9c5970a338597b24e2c87c3fa2e7c3
2018-03-07 22:26:24 +01:00
Translation updater bot
3151afdc24
Localisation updates from https://translatewiki.net .
...
Change-Id: I97ac74701e32450a0b279c02da42a40ed1a0ace9
2018-03-05 22:07:12 +01:00
Translation updater bot
9d3d47adb4
Localisation updates from https://translatewiki.net .
...
Change-Id: Idabb533c281f4071fe84ea0c76f5bb0fe3266b5d
2018-03-01 21:59:09 +01:00
Translation updater bot
453fe279b9
Localisation updates from https://translatewiki.net .
...
Change-Id: Iafbd772c90f5a290a258ffdef3181267eadbcc53
2018-02-25 22:08:15 +01:00
Translation updater bot
8551cf6d47
Localisation updates from https://translatewiki.net .
...
Change-Id: Iadf82e4e6b20ab8b6edb8cb17137a1734f315373
2018-02-20 22:06:25 +01:00
Translation updater bot
b05bd6637a
Localisation updates from https://translatewiki.net .
...
Change-Id: I1e94cfd15f93b1d10cd4d5cc94d876c90a706601
2018-02-18 22:16:31 +01:00
Translation updater bot
8d15407c6b
Localisation updates from https://translatewiki.net .
...
Change-Id: I26caaae1e5a93468013ed710182816ac6834abfa
2018-02-17 22:02:52 +01:00
Translation updater bot
960a8af97c
Localisation updates from https://translatewiki.net .
...
Change-Id: Icf070973db4ceffdb24976a7b6b0c23dcfc1b4aa
2018-02-16 22:08:38 +01:00
Translation updater bot
6bdac0fd25
Localisation updates from https://translatewiki.net .
...
Change-Id: I1b39026a80bda3744941b4fe138ab091ab831a99
2018-02-15 22:06:53 +01:00
Translation updater bot
fc12ffd6ed
Localisation updates from https://translatewiki.net .
...
Change-Id: I13d48b948283a760e80a18ac5637124a4b36ed30
2018-02-13 22:04:49 +01:00
Translation updater bot
6d54aa18cd
Localisation updates from https://translatewiki.net .
...
Change-Id: Ieaae409284db2063e3c8421cd2c77c70c55cf2ef
2018-02-12 09:06:35 +01:00
Translation updater bot
53e994c355
Localisation updates from https://translatewiki.net .
...
Change-Id: I59c561f6fb1a1ba46241c2ab7b4e4594e7a72d89
2018-02-07 21:57:22 +01:00
Translation updater bot
e4d4c86d89
Localisation updates from https://translatewiki.net .
...
Change-Id: I1c47a8e3763111e9f6501275619c16fec58cd8c8
2018-02-05 22:08:08 +01:00
Translation updater bot
c3eeb030d9
Localisation updates from https://translatewiki.net .
...
Change-Id: I78333d3b48d58aa35c158e9e5d212892e33e7230
2018-02-04 21:56:45 +01:00
Translation updater bot
0030e4b707
Localisation updates from https://translatewiki.net .
...
Change-Id: I5effa8cebf61547ccaadef3f98aabec2c6f621f5
2018-02-01 22:00:47 +01:00
Translation updater bot
03c2fd9f58
Localisation updates from https://translatewiki.net .
...
Change-Id: Iba482100abb5be77d69c41fff2dcdddb5b31aa89
2018-01-31 22:02:05 +01:00
Translation updater bot
3a38f00d19
Localisation updates from https://translatewiki.net .
...
Change-Id: I7364c173fd85b7028fadeb0ed49b43a1fccc7dd8
2018-01-29 21:55:56 +01:00
Translation updater bot
5cd832fa0f
Localisation updates from https://translatewiki.net .
...
Change-Id: I3b799158ffd1a829175159029d004145d0188e18
2018-01-25 21:57:37 +01:00
Translation updater bot
a81e997a9a
Localisation updates from https://translatewiki.net .
...
Change-Id: Ibf684931ccdd21048fb8398c3c5ece4073c9dcc0
2018-01-24 21:56:47 +01:00
Translation updater bot
f5dee4ebd6
Localisation updates from https://translatewiki.net .
...
Change-Id: I9ac5810365b3fb5704e158b8a7387ef6ef07c453
2018-01-20 14:08:45 +01:00
Translation updater bot
fcb530889d
Localisation updates from https://translatewiki.net .
...
Change-Id: I8c5cb60b00e305fa37085f4265b4ebb39eca1fa0
2018-01-17 22:24:51 +01: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
Translation updater bot
facd049fba
Localisation updates from https://translatewiki.net .
...
Change-Id: I4aa651e1acef5288f10c946ac3de99b400b28d01
2018-01-01 08:47:10 +01:00
Translation updater bot
7dda75ee09
Localisation updates from https://translatewiki.net .
...
Change-Id: I4d5439788fff22a1d6b441a7e37a9eaa460a1229
2017-12-28 09:08:42 +01:00
Translation updater bot
e13d71bef3
Localisation updates from https://translatewiki.net .
...
Change-Id: I205d931db4acc253df813112d7cd0c4367f93e0b
2017-12-18 22:23:18 +01:00
Translation updater bot
bfdd168413
Localisation updates from https://translatewiki.net .
...
Change-Id: I1a5cd5feb9421a0f87ee9794c06e226a51f3a60b
2017-12-12 22:25:25 +01:00
Translation updater bot
a9bcea2971
Localisation updates from https://translatewiki.net .
...
Change-Id: I51bb0f8f98c6e4099e08fd009e3e06c8c91bd813
2017-12-10 22:07:12 +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
Translation updater bot
2c29439b30
Localisation updates from https://translatewiki.net .
...
Change-Id: Ib0720214c9f0104be4ecc5ddb3d107b6b5432424
2017-11-29 22:10:47 +01: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