Follow-up ea856105f2: fix horizontal scrollbars in Monobook

A positive text-indent causes horizontal scrollbars, so just hide the
screenreader text by making it transparent, and accept that we're going
to have the hover tooltip issue (T161302) in Monobook.

Bug: T226594
Change-Id: I6cb9ec146c2b469cbfb1fdc57937794d237e46db
This commit is contained in:
Roan Kattouw 2019-06-26 15:48:58 -07:00
parent 1c3cb04618
commit d3653c649a

View file

@ -9,10 +9,9 @@
height: 16px;
background-size: 16px 16px;
top: -1px;
// HACK: text-indent: -9999px doesn't work with display: inline-block, so hide the text
// using a positive text-indent instead (T226503). Also make the text transparent so that
// it doesn't show up even if someone does somehow have a 10k-pixel-wide monitor.
text-indent: 9999px;
// HACK: text-indent: -9999px doesn't work with display: inline-block, and using a
// positive text-indent causes scrollbars (T226594). Hide the text by making it
// transparent, and accept that this will cause some tooltip weirdness (T161302).
color: transparent;
&:after {