With CSS media queries you can detect things like width, height, pixel density, aspect ratio, and even luminosity, but unfortunately you cannot detect touch.
On small screens (eg phones) the icons are too small to be functional without zooming
You can increase the icon size at small screen widths. I'm not sure if you're using a mobile-first or desktop-down approach, which will affect how you write the media queries.
For mobile-first you would write something like this in your stylesheet;
Code:
.icon { width:2em; height:2em } /* default, mobile-first styles */
...
@media ( min-width:37.5em ) { /* desktop override styles - bigger than 600px */
.icon { width:0.5em; height:0.5em }
}
But for desktop-first, you'd write something like this instead;
Code:
.icon { width:0.5em; height:0.5em } /* default, desktop styles */
...
@media ( max-width:37.5em ) { /* mobile override styles - smaller than 600px */
.icon { width:2em; height:2em }
}
Bookmarks