This repository was archived by the owner on May 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1515 $thumb-hover-color ,
1616 $scrollbar-size : $mat-grid-type ,
1717 $thumb-min-size : 6 * $mat-grid ) {
18- ::ng- deep ::-webkit-scrollbar {
18+ ::ng- deep {
19+ @include material-scrollbar (
20+ $thumb-hover-color , $scrollbar-size , $thumb-min-size );
21+ }
22+ }
23+
24+ /// Style all scrollbars within the scope to material spec.
25+ ///
26+ /// Note: This is the same as material-scrollbar-theme expect it can be used
27+ /// globally outside the context angular components.
28+ @mixin material-scrollbar (
29+ $thumb-hover-color ,
30+ $scrollbar-size : $mat-grid-type ,
31+ $thumb-min-size : 6 * $mat-grid ) {
32+ ::-webkit-scrollbar {
1933 background-color : $mat-scrollbar-background ;
2034
2135 // Height only applies to horizontal scrollbars.
2943 }
3044 }
3145
32- ::ng-deep :: -webkit-scrollbar-thumb {
46+ ::-webkit-scrollbar-thumb {
3347 background-color : $mat-scrollbar-thumb ;
3448
3549 // min-height only applies to vertical scrollbar thumbs.
4357 }
4458 }
4559
46- ::ng-deep :: -webkit-scrollbar-button {
60+ ::-webkit-scrollbar-button {
4761 width : 0 ;
4862 height : 0 ;
4963 }
You can’t perform that action at this time.
0 commit comments