Skip to content

Commit

Permalink
fix(scroll): add ability to force native scroll
Browse files Browse the repository at this point in the history
fixes #55
  • Loading branch information
hjalmers committed Nov 15, 2018
1 parent ce2c18e commit 5a825c5
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions scss/styles/_scroll.scss
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 $scrollbar-thickness rgba(0,0,0,0.25);
background-color: $scrollbar-track-bg;
}

::-webkit-scrollbar
{
width: $scrollbar-thickness;
height: $scrollbar-thickness;
background-color: $scrollbar-track-bg;
}

::-webkit-scrollbar-thumb
{
background-color: $scrollbar-thumb-bg;
&:active {
background-color: $scrollbar-thumb-active-bg;
html:not(.native-scroll) {
::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 $scrollbar-thickness rgba(0,0,0,0.25);
background-color: $scrollbar-track-bg;
}
}

.scrollbar-dark {
&::-webkit-scrollbar-track
::-webkit-scrollbar
{
-webkit-box-shadow: inset 0 0 $scrollbar-thickness rgba(0,0,0,0.5);
background-color: $scrollbar-track-dark-bg;
width: $scrollbar-thickness;
height: $scrollbar-thickness;
background-color: $scrollbar-track-bg;
}

&::-webkit-scrollbar
::-webkit-scrollbar-thumb
{
background-color: $scrollbar-track-dark-bg;
background-color: $scrollbar-thumb-bg;
&:active {
background-color: $scrollbar-thumb-active-bg;
}
}

&::-webkit-scrollbar-thumb
{
background-color: $scrollbar-thumb-dark-bg;
.scrollbar-dark {
&::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 $scrollbar-thickness rgba(0,0,0,0.5);
background-color: $scrollbar-track-dark-bg;
}

&::-webkit-scrollbar
{
background-color: $scrollbar-track-dark-bg;
}

&::-webkit-scrollbar-thumb
{
background-color: $scrollbar-thumb-dark-bg;
}
}
}

0 comments on commit 5a825c5

Please sign in to comment.