From a367c1e8e4bd1656c5497c6c44884a395160784a Mon Sep 17 00:00:00 2001 From: Adam Graham Date: Sat, 19 Oct 2024 20:55:34 -0500 Subject: [PATCH] Only set hover styles on hover-enabled devices --- src/styles/projects-list.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/styles/projects-list.css b/src/styles/projects-list.css index 2adbac1..7b24066 100644 --- a/src/styles/projects-list.css +++ b/src/styles/projects-list.css @@ -32,12 +32,18 @@ font-size: 0.875em; } -.projects-list__filters .badge:hover, .projects-list__filters .badge--selected { background-color: var(--color-primary); color: var(--color-on-primary); } +@media (hover: hover) { + .projects-list__filters .badge:hover { + background-color: var(--color-primary); + color: var(--color-on-primary); + } +} + .projects-list__category { margin-top: 0; margin-bottom: 2rem;