summaryrefslogtreecommitdiff
path: root/public/css/modules/news-index.css
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-21 08:08:10 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-21 08:14:29 +0100
commite70d1754e98501cda598255af33b7af2abbfc2a5 (patch)
treecb0313dc013fb58da1b2ff0cfb998f18a1cb7c5d /public/css/modules/news-index.css
parent2dc08cf891210935bf2888c358fe971d06d92865 (diff)
Better focus styling for news index item
Diffstat (limited to 'public/css/modules/news-index.css')
-rw-r--r--public/css/modules/news-index.css11
1 files changed, 9 insertions, 2 deletions
diff --git a/public/css/modules/news-index.css b/public/css/modules/news-index.css
index b77e383..48c455d 100644
--- a/public/css/modules/news-index.css
+++ b/public/css/modules/news-index.css
@@ -11,13 +11,20 @@
border-top-width: 0;
}
-.news-index__item:hover {
+.news-index__item:is(:hover, :focus, :focus-visible, :focus-within) {
+ outline: none;
+ box-shadow: none;
color: var(--text-highlight-color);
border-color: var(--background-highlight-color);
background: var(--background-highlight-color);
transition-duration: 300ms;
}
-.news-index__item:hover .link {
+.news-index__item:is(:hover, :focus, :focus-visible, :focus-within) .link {
color: var(--special-text-highlight-color);
+}
+
+.news-index__item:is(:focus, :focus-visible, :focus-within) {
+ border-color: var(--special-text-highlight-color);
+ border-style: dotted;
} \ No newline at end of file