Skip to content

Commit 928ac9d

Browse files
Merge pull request #343 from topcoder-platform/TCA-496_fix-ff-scrollbars
TCA-496 - fix for safari double scrollbar
2 parents ff200bd + ae1162e commit 928ac9d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src-ts/lib/styles/mixins/_layout.mixins.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
padding-left: $space-xxl;
99
padding-right: $space-xxl;
1010
}
11-
11+
1212
@include xxs {
1313
padding-left: $space-lg;
1414
padding-right: $space-lg;
@@ -23,20 +23,27 @@
2323
}
2424

2525
@mixin scrollbar {
26+
// firefox's solution for "customizing" scrollbars
27+
& {
28+
scrollbar-width: thin;
29+
scrollbar-color: rgba($tc-black, 0.4) transparent;
30+
}
31+
2632
&::-webkit-scrollbar-track {
2733
background: transparent;
2834
}
35+
2936
&::-webkit-scrollbar {
3037
width: 5px;
3138
height: 5px;
3239
}
33-
40+
3441
&::-webkit-scrollbar-thumb {
3542
background-color: rgba($tc-black, 0.4);
3643
border-radius: 4px;
37-
44+
3845
&:hover {
3946
background-color: rgba($tc-black, 0.6);
4047
}
4148
}
42-
}
49+
}

0 commit comments

Comments
 (0)