mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
* Update sass to v1.79 * Fix broken node_modules import * Fix conflict with new sass color() function color() -> colorCode() * build:styles - Remove deprecated sass.render() * build:styles - remove infile + outfile from sass.compile options
39 lines
810 B
SCSS
39 lines
810 B
SCSS
// ==========================================================================
|
|
// Components / Scrollbar
|
|
// ==========================================================================
|
|
|
|
.c-scrollbar {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
width: 11px;
|
|
height: 100vh;
|
|
transform-origin: center right;
|
|
transition: transform t(normal), opacity t(normal);
|
|
opacity: 0;
|
|
|
|
&:hover {
|
|
transform: scaleX(1.45);
|
|
}
|
|
|
|
&:hover, .has-scroll-scrolling &, .has-scroll-dragging & {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.c-scrollbar_thumb {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
background-color: colorCode(darkest);
|
|
opacity: 0.5;
|
|
width: 7px;
|
|
border-radius: 10px;
|
|
margin: 2px;
|
|
cursor: grab;
|
|
|
|
.has-scroll-dragging & {
|
|
cursor: grabbing;
|
|
}
|
|
}
|