From c8b7157a92715954ed921c73b6d32542a7adf053 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Fri, 17 May 2024 22:35:35 +0800 Subject: [PATCH] Add visually hidden CSS class --- _site/assets/css/main.css | 14 ++++++++++++++ src/assets/css/main.css | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/_site/assets/css/main.css b/_site/assets/css/main.css index 1e43ff0f..2ad83b85 100644 --- a/_site/assets/css/main.css +++ b/_site/assets/css/main.css @@ -523,3 +523,17 @@ main { display: grid; gap: 0.7em; } + +.visually-hidden { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0,0,0,0); + white-space: nowrap; + border: 0; + outline: 0; + outline-offset: 0; +} diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 1e43ff0f..2ad83b85 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -523,3 +523,17 @@ main { display: grid; gap: 0.7em; } + +.visually-hidden { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0,0,0,0); + white-space: nowrap; + border: 0; + outline: 0; + outline-offset: 0; +}