For an application I want to show custom scrollbars for desktop browsers only.
Normally one would use media queries to target small devices and adapt the layout to the available width of the screen. But this time I just don't want scrollbars for mobile and tablet devices. I don't know how I could solve this, because small desktops (1024 x 768) use the same resolution as some tablets do.
Is there a hack or something, so I could do something like:
@media (target-real-desktops-only) {
::-webkit-scrollbar {
width: 17px;
}
::-webkit-scrollbar-thumb {
background-color: #959595;
border-radius: 40px;
border: 5px solid transparent;
background-clip: padding-box;
}
}