Skip to content

Commit

Permalink
Add comment to media query
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystucki committed Feb 26, 2025
1 parent 53ec4a9 commit 43b8fc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

@custom-variant touch-only (@media (hover: none));

/* This media query applies styles only to devices that do not support hover,
such as touchscreens. It ensures that elements with a title attribute
display a tooltip when focused. */
@media (hover: none) {
[title] {
position: relative;
Expand Down

0 comments on commit 43b8fc7

Please sign in to comment.