diff --git a/routes/_components/Media.html b/routes/_components/Media.html index 195a23a..3a44e1a 100644 --- a/routes/_components/Media.html +++ b/routes/_components/Media.html @@ -4,7 +4,7 @@ {{#if media.type === 'video'}} diff --git a/scss/global.scss b/scss/global.scss index 41209b1..f831fed 100644 --- a/scss/global.scss +++ b/scss/global.scss @@ -116,4 +116,13 @@ ul, li, p { .hidden { opacity: 0; -} \ No newline at end of file +} + +*:focus { + outline: 2px solid var(--focus-outline); +} + +button::-moz-focus-inner { + border: 0; +} + diff --git a/scss/themes/_base.scss b/scss/themes/_base.scss index ecb92ef..48578f0 100644 --- a/scss/themes/_base.scss +++ b/scss/themes/_base.scss @@ -60,4 +60,5 @@ --mask-opaque-bg: rgba($toast-bg, 0.8); --deemphasized-text-color: #666; + --focus-outline: $focus-outline; } diff --git a/scss/themes/_default.scss b/scss/themes/_default.scss index fedc116..46ab57a 100644 --- a/scss/themes/_default.scss +++ b/scss/themes/_default.scss @@ -7,6 +7,7 @@ $main-bg-color: white; $secondary-text-color: white; $toast-border: #fafafa; $toast-bg: #333; +$focus-outline: lighten($main-theme-color, 30%); @import "_base.scss"; diff --git a/scss/themes/_offline.scss b/scss/themes/_offline.scss index 292d2ec..d41f7a5 100644 --- a/scss/themes/_offline.scss +++ b/scss/themes/_offline.scss @@ -7,6 +7,7 @@ $main-bg-color: white; $secondary-text-color: white; $toast-border: #fafafa; $toast-bg: #333; +$focus-outline: lighten($main-theme-color, 15%); @import "_base.scss"; diff --git a/scss/themes/gecko.scss b/scss/themes/gecko.scss index 7f9fd6c..b998503 100644 --- a/scss/themes/gecko.scss +++ b/scss/themes/gecko.scss @@ -7,6 +7,7 @@ $main-bg-color: white; $secondary-text-color: white; $toast-border: #fafafa; $toast-bg: #333; +$focus-outline: lighten($main-theme-color, 30%); @import "_base.scss"; diff --git a/scss/themes/hotpants.scss b/scss/themes/hotpants.scss index c44345a..d1d1a18 100644 --- a/scss/themes/hotpants.scss +++ b/scss/themes/hotpants.scss @@ -7,6 +7,7 @@ $main-bg-color: white; $secondary-text-color: white; $toast-border: #fafafa; $toast-bg: #333; +$focus-outline: lighten($main-theme-color, 15%); @import "_base.scss"; diff --git a/scss/themes/majesty.scss b/scss/themes/majesty.scss index d3fbb2f..4d3d482 100644 --- a/scss/themes/majesty.scss +++ b/scss/themes/majesty.scss @@ -7,6 +7,7 @@ $main-bg-color: white; $secondary-text-color: white; $toast-border: #fafafa; $toast-bg: #333; +$focus-outline: lighten($main-theme-color, 30%); @import "_base.scss"; diff --git a/scss/themes/oaken.scss b/scss/themes/oaken.scss index 3204af4..fbb8bc1 100644 --- a/scss/themes/oaken.scss +++ b/scss/themes/oaken.scss @@ -7,6 +7,7 @@ $main-bg-color: white; $secondary-text-color: white; $toast-border: #fafafa; $toast-bg: #333; +$focus-outline: lighten($main-theme-color, 30%); @import "_base.scss"; diff --git a/scss/themes/scarlet.scss b/scss/themes/scarlet.scss index ce56d3e..c303582 100644 --- a/scss/themes/scarlet.scss +++ b/scss/themes/scarlet.scss @@ -7,6 +7,7 @@ $main-bg-color: white; $secondary-text-color: white; $toast-border: #fafafa; $toast-bg: #333; +$focus-outline: lighten($main-theme-color, 30%); @import "_base.scss"; diff --git a/scss/themes/seafoam.scss b/scss/themes/seafoam.scss index 86b32ce..71796d1 100644 --- a/scss/themes/seafoam.scss +++ b/scss/themes/seafoam.scss @@ -7,6 +7,7 @@ $main-bg-color: white; $secondary-text-color: white; $toast-border: #fafafa; $toast-bg: #333; +$focus-outline: lighten($main-theme-color, 30%); @import "_base.scss"; diff --git a/templates/2xx.html b/templates/2xx.html index 48e0975..0ecb628 100644 --- a/templates/2xx.html +++ b/templates/2xx.html @@ -10,9 +10,9 @@