Scrollbar: Show scrollbar on only on hover (#22386)

This commit is contained in:
Torkel Ödegaard 2020-02-22 21:09:06 +01:00 committed by GitHub
parent 1f4a04436c
commit 22eb558d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,11 +31,21 @@
.thumb-vertical {
@include gradient-vertical($scrollbarBackground, $scrollbarBackground2);
border-radius: 6px;
opacity: 0;
}
.thumb-horizontal {
@include gradient-horizontal($scrollbarBackground, $scrollbarBackground2);
border-radius: 6px;
opacity: 0;
}
&:hover {
.thumb-vertical,
.thumb-horizontal {
opacity: 0.8;
transition: opacity 0.3s ease-in-out;
}
}
// page scrollbar should stick to left side to aid hitting it