Technical Notes
Detecting Kiosk Mode
/* Touch-based devices (e.g., phones, tablets) */
@media (pointer: coarse) {
button {
padding: 20px; /* Larger touch targets */
}
}
/* Desktop devices with a mouse */
@media (hover: hover) and (pointer: fine) {
button:hover {
background-color: lightblue;
}
}Last updated