hugo-book-theme/assets/plugins/_scrollbars.scss

27 lines
394 B
SCSS
Raw Permalink Normal View History

2020-02-10 23:31:33 +01:00
@import "defaults";
@import "variables";
2020-03-11 23:04:42 +01:00
// Webkit
2020-02-10 23:31:33 +01:00
::-webkit-scrollbar {
width: $padding-8;
}
::-webkit-scrollbar-thumb {
background: transparent;
border-radius: $padding-8;
}
:hover::-webkit-scrollbar-thumb {
background: var(--gray-500);
2020-02-10 23:31:33 +01:00
}
2020-03-11 23:04:42 +01:00
// MS
body {
-ms-overflow-style: -ms-autohiding-scrollbar;
2020-03-11 23:04:42 +01:00
}
// Future
.book-menu nav {
scrollbar-color: transparent var(--gray-500);
2020-03-11 23:04:42 +01:00
}