CSS Media query to check if the defice has Touchscreen.
The ‘pointer’ media feature is used to query about the presence and accuracy of a pointing device such as a mouse. If a device has multiple input mechanisms, it is recommended that the UA reports the characteristics of the least capable pointing device of the primary input mechanisms. This media query takes the following values:
‘none’
‘coarse’
‘fine’
@media (pointer:coarse) {
// OVERWRITES
}
@mixin isTouch {
@media (pointer:coarse) {
@content
}
}