Skip to content

Commit

Permalink
Only set hover styles on hover-enabled devices
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgraham committed Oct 20, 2024
1 parent 131c8dd commit a367c1e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/styles/projects-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a367c1e

Please sign in to comment.