From 59e37a8fe81aa93f5de881c401df2d9819fae3b2 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 26 Oct 2024 17:16:57 -0700 Subject: [PATCH] chore: utils --- package-lock.json | 4 ++-- package.json | 2 +- src/assets/styles/base/index.css | 11 +++++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 76d75b38..1de433a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "2.0.1", + "version": "2.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "2.0.1", + "version": "2.0.2", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.6.0", diff --git a/package.json b/package.json index 568cfb86..6da805b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "2.0.1", + "version": "2.0.2", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "engines": { diff --git a/src/assets/styles/base/index.css b/src/assets/styles/base/index.css index 9495da1d..27baed43 100644 --- a/src/assets/styles/base/index.css +++ b/src/assets/styles/base/index.css @@ -580,3 +580,14 @@ ol { height: auto; width: 100%; } + +/* utilities */ +.visually-hidden { + clip: rect(0 0 0 0); + clip-path: inset(50%); + white-space: nowrap; + width: 1px; + height: 1px; + position: absolute; + overflow: hidden; +} \ No newline at end of file