summaryrefslogtreecommitdiff
path: root/public/css/modules/news-index.css
diff options
context:
space:
mode:
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