From 2495eea27a35c247d41ef34086fff31647714b70 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Fri, 16 Sep 2011 19:03:49 +0100 Subject: improved core .a11y class --- lib/styles/screen.css | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/styles/screen.css b/lib/styles/screen.css index 218385f88..5269bc206 100644 --- a/lib/styles/screen.css +++ b/lib/styles/screen.css @@ -67,6 +67,16 @@ div.notify { border-style: inset; } +/* hide something accessibly + (e.g. for screen readers or to keep access keys working) */ +.a11y { + position: absolute !important; + left: -10000px !important; + top: auto !important; + width: 1px !important; + height: 1px !important; + overflow: hidden !important; +} /* syntax highlighting code */ .code .br0 { color: #66cc66; } @@ -91,9 +101,3 @@ div.notify { .code .re4 { color: #009999; } .code .st0 { color: #ff0000; } .code .sy0 { color: #66cc66; } - -.a11y { - /* No display: none to keep accesskeys working */ - margin-left: -10000px !important; - margin-top: -10000px !important; -} -- cgit v1.2.3