From 138eed3d273f3514aeba28ac078da60d89840176 Mon Sep 17 00:00:00 2001 From: "kazzer@ub.uni-leipzig.de" <kazzer@ub.uni-leipzig.de> Date: Tue, 25 Feb 2020 16:00:00 +0100 Subject: [PATCH] refs #15438 * adds sr-only mixin for accessibility features --- themes/finc/scss/_customMixins.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/themes/finc/scss/_customMixins.scss b/themes/finc/scss/_customMixins.scss index 5fb2304ed0f..7c63e37e128 100644 --- a/themes/finc/scss/_customMixins.scss +++ b/themes/finc/scss/_customMixins.scss @@ -21,3 +21,15 @@ display: table; margin: 1.5em auto; } + +// sr-only mixin: use to show items to screen readers only without having to add sr-only class +@mixin sr-only { + border: 0; + clip: rect(1px, 1px, 1px, 1px); + height: auto; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + width: auto; +} \ No newline at end of file -- GitLab