aboutsummaryrefslogtreecommitdiffstats
path: root/html/style.css
diff options
context:
space:
mode:
authorVosjedev <vosje@vosjedev.net>2025-11-09 10:59:11 +0100
committerVosjedev <vosje@vosjedev.net>2025-11-09 10:59:11 +0100
commitde667cd00ee30712480bdbc2cd98b83fbb2b966c (patch)
treedcfdfe5d11bb50487a850584076a8bea3d8b2986 /html/style.css
parent3752644571c981d81d8fa702f507dc44efcd14de (diff)
downloadacit-de667cd00ee30712480bdbc2cd98b83fbb2b966c.tar.gz
acit-de667cd00ee30712480bdbc2cd98b83fbb2b966c.tar.bz2
acit-de667cd00ee30712480bdbc2cd98b83fbb2b966c.tar.xz
html/css: add skip navigation links to project pages
another commit in the 'larger amount' of accessibility feedback commits
Diffstat (limited to 'html/style.css')
-rw-r--r--html/style.css29
1 files changed, 29 insertions, 0 deletions
diff --git a/html/style.css b/html/style.css
index 2689098..08c038e 100644
--- a/html/style.css
+++ b/html/style.css
@@ -305,3 +305,32 @@ h1, h2 {
}
+
+/* credits to webaim.org's css for the base */
+#skiptocontent a {
+ padding:6px;
+ position: absolute;
+ top:-40px;
+ color: var(--background-inverted);
+ border-right:1px solid white;
+ border-bottom:1px solid white;
+ background: var(--colour-inverted);
+ -webkit-transition: top .5s ease-out;
+ transition: top .5s ease-out;
+ z-index: 100;
+}
+
+#skiptocontent a:focus {
+ position:absolute;
+ top:0px;
+ outline-color:transparent;
+ -webkit-transition: top .05s ease-in;
+ transition: top .05s ease-in;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ #skiptocontent a {
+ transition-duration: 0.001ms !important;
+ }
+}
+