Commit graph

7 commits

Author SHA1 Message Date
Derk-Jan Hartman 05cb5cc1a0 Cleanup style RL modules for Cite
Move the JS which is purely for accessibility purposes into a separate
JS RL module named ext.cite.a11y. Move all pure CSS, which is not dependant
on accompanying JS into a separate ext.cite.styles module

Bug: T101559
Change-Id: I58adcfbcf9af2bb3b6d5dabb6c38c42af78e0416
2015-06-06 15:43:27 +02:00
Bartosz Dziewoński 3ac0dedd1b Move '@media print' rules to separate file
Not a fix for T93746 yet, but a prerequisite.

Bug: T93746
Change-Id: I3dc1fa9cf176540500b48f21d9f4f737b37010d1
2015-06-04 22:22:16 +00:00
Schnark 530ef0ab9c Highlight target references
Highlight the target reference when the user clicks a reference link,
and also highlight the note in the text when he clicks the backlink.

This is done using the :target selector and a light blue background-color.
The color (and the rest of the code) are from English Wikipedia, from where
it has been copied to many other wikis, so the feature itself and especially
the color seem to be agreed on.

Browsers that don't support the :target selector (notably Internet Explorer 8
and below) will just ignore the new style and fall back to current behavior.
Wikis that have added this code to their common.css can remove it, but
of course nothing will break when they keep the duplicate code.

Bug: T10303
Change-Id: I5775daf6934516ce9c98841399e5a358195c1374
2015-03-16 08:29:20 +00:00
Ritsyy 572e1023f1 T28462 changed print CSS for backlink arrows edited CSS according to coding conventions
Change-Id: I54caf0437557494dbf270b10a8564bc8d98a5c6a
2015-03-03 00:27:34 +05:30
Fomafix f8ed124589 Exclude backlinks from selection
Steps to test the change:
* Open a random page in browser.
* Select all or a part of the page.
* Copy the selection to clipboard.
* Open a word processor like LibreOffice Writer.
* Paste the content of the clipboard.

Change-Id: Ibae4292b5dd8cc02a769e85adfea991d8d6ceb59
2014-01-30 07:59:44 +00:00
Marius Hoch 9cc8f438fe Improve CSS for hiding the accessibility labels
This used to result in superfluous scroll bars
in WebKit/ Blink based browsers on enwiki:
https://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29#Scrolling_past_the_bottom_of_the_page...

Change-Id: I4e7518262b8fdc5d3de49fff46166f7e205be9fe
2013-09-14 16:21:11 +02:00
Marius Hoch f692c9f41d Add extra accessibility labels to jump to citation (↑) links
Had to do that in JavaScript as doing it server-side would have
made refactoring large parts of the extension necessary.

Bug: 38141
Change-Id: I60ecd2fc0edf2aee89974d8069cc0b075cda3f93
2013-09-01 18:58:32 +02:00