mediawiki-extensions-Cite/modules/ext.cite.css
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

17 lines
599 B
CSS

/**
* Per http://developer.yahoo.com/blogs/ydn/clip-hidden-content-better-accessibility-53456.html
* and https://en.wikipedia.org/w/index.php?oldid=572888139#Scrolling_past_the_bottom_of_the_page...
*/
.cite-accessibility-label {
position: absolute !important;
/* Workaround a Webkit/Blink bug about positioning within columns as many wikis format references with several columns */
top: -99999px;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
padding: 0 !important;
border: 0 !important;
height: 1px !important;
width: 1px !important;
overflow: hidden;
}