sseeeedd icon indicating copy to clipboard operation
sseeeedd copied to clipboard

Use the pointer MQ

Open ffoodd opened this issue 7 years ago • 3 comments

pointer media query allows to know pointer accuracy. We can use it to increase interactive elements' sizing if a low accuracy pointer is used, for example. I'm pretty sure there's a lot more to find about this :)

Some reading:

ffoodd avatar Oct 01 '18 11:10 ffoodd

Could be interesting along with hover media query.

ffoodd avatar Feb 18 '19 09:02 ffoodd

Is something like this a good idea:

:root {
    --gutter: 1em;
}

@media (pointer: coarse) {
    :root {
        --gutter: 1.5em;
    }
}

Waiting for more sources and opinions :)

ffoodd avatar Mar 19 '19 19:03 ffoodd