From 14768179755ce705b3392381af6c7dcac5433afe Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 29 Oct 2020 21:35:36 +0100 Subject: [PATCH] Properly put hidden-visually off-screen In some situations the element is still affecting the layout, especially when a sticky is nearby. This fix moves it properly off-screen. Signed-off-by: Vincent Petry --- core/css/global.scss | 6 +++--- core/css/guest.css | 4 ++-- core/css/inputs.scss | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/css/global.scss b/core/css/global.scss index 9511d4324f..d2b0526c09 100644 --- a/core/css/global.scss +++ b/core/css/global.scss @@ -30,8 +30,8 @@ .hidden-visually { position: absolute; - left:-10000px; - top: auto; + left: -10000px; + top: -10000px; width: 1px; height: 1px; overflow: hidden; @@ -47,4 +47,4 @@ .inlineblock { display: inline-block; -} \ No newline at end of file +} diff --git a/core/css/guest.css b/core/css/guest.css index 64764e17e1..340d3954c9 100644 --- a/core/css/guest.css +++ b/core/css/guest.css @@ -909,8 +909,8 @@ footer .info .entity-name { label.infield, .hidden-visually { position: absolute; - left:-10000px; - top: auto; + left: -10000px; + top: -10000px; width: 1px; height: 1px; overflow: hidden; diff --git a/core/css/inputs.scss b/core/css/inputs.scss index 87dc6a4480..22ac22fbcc 100644 --- a/core/css/inputs.scss +++ b/core/css/inputs.scss @@ -948,8 +948,8 @@ progress { // Same as .hidden-visually label.infield { position: absolute; - left:-10000px; - top: auto; + left: -10000px; + top: -10000px; width: 1px; height: 1px; overflow: hidden;