I have the following CSS for my web app to style scrollbars:
::-webkit-scrollbar {
height: 16px;
z-index: 100;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 12px;
z-index: 100;
background-color: rgba(58,193,203, .2);
}
::-webkit-scrollbar-thumb {
border-radius: 12px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
background-color: #3AC1CB;
width: 100px;
}
and reset them with a media query when the width is less than a certain size:
::-webkit-scrollbar {
height: initial;
z-index: initial;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: initial;
border-radius: initial;
z-index: initial;
background-color: initial;
}
::-webkit-scrollbar-thumb {
border-radius: initial;
-webkit-box-shadow: initial;
background-color: initial;
width: initial;
}
How can we remove the scrollbar styles using ng-style, when javascript detects for example that it's on an ipad:
I know the basic syntax from here, but how can this be applied in the case of scrollbars?