Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Custom scrollbar style for webkit browser
#15
Found and easy way to enable the media query (thanks to https://stackoverflow.com/questions/3960...y/39611257)[url=https://stackoverflow.com/questions/39609789/can-i-change-the-media-query-using-javascript-jquery/39611257][/url]

Updated css:
Code:
@media (pointer: fine) {
   .noosx ::-webkit-scrollbar {
        width: 12px;
        -webkit-appearance:slider-vertical;
   }
   
   .noosx ::-webkit-scrollbar-track {
       -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
       border-radius: 10px;
   }
   
   .noosx ::-webkit-scrollbar-thumb {
       border-radius: 10px;
       -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
        background:rgba(var(--textvariant),0.25) !important;        
   }
}

Code required in js to enable it:
Code:
$("body").addClass("noosx")

Now only find a way to detect OS X in javascript.
Reply


Messages In This Thread
RE: Custom scrollbar style for webkit browser - by bitlab - 06-17-2020, 09:17 AM

Forum Jump: