From 3498231fd367fc613ef65b71285aea64d9e920f4 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Mon, 28 Jan 2019 18:21:17 +0100 Subject: [PATCH] #275 - copy .sr-only BS class to BC css for legacy themes Used for login-menu labels to improve accessibility --- e107_web/css/backcompat.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/e107_web/css/backcompat.css b/e107_web/css/backcompat.css index 235cf8654..45c00331d 100644 --- a/e107_web/css/backcompat.css +++ b/e107_web/css/backcompat.css @@ -60,4 +60,25 @@ table.table { width: 100% } .e-debug .table-striped > tbody > tr:nth-of-type(2n+1) { background-color: #f9f9f9; +} + +/* Bootstrap classes that hide content for all devices except screen readers (accessibility) */ +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; } \ No newline at end of file