Custom Scrollbar mixin
parent
38ffccb222
commit
f4ae0669cb
|
@ -27,4 +27,34 @@ $explorer-page-padding: 18px;
|
|||
background: -webkit-linear-gradient(left, $startColor 0%,$endColor 100%);
|
||||
background: linear-gradient(to right, $startColor 0%,$endColor 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='$startColor', endColorstr='$endColor',GradientType=1 );
|
||||
}
|
||||
@mixin custom-scrollbar($trackColor, $handleColor) {
|
||||
&::-webkit-scrollbar {
|
||||
width: 14px;
|
||||
border-bottom-right-radius: $radius;
|
||||
|
||||
&-button {
|
||||
background-color: $trackColor;
|
||||
}
|
||||
&-track {
|
||||
background-color: $trackColor;
|
||||
border-bottom-right-radius: $radius;
|
||||
}
|
||||
&-track-piece {
|
||||
background-color: $trackColor;
|
||||
border: 4px solid $trackColor;
|
||||
border-radius: 8px;
|
||||
}
|
||||
&-thumb {
|
||||
background-color: $handleColor;
|
||||
border: 4px solid $trackColor;
|
||||
border-radius: 8px;
|
||||
}
|
||||
&-corner {
|
||||
background-color: $trackColor;
|
||||
}
|
||||
}
|
||||
&::-webkit-resizer {
|
||||
background-color: $trackColor;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue