2021-04-12 18:00:43 +00:00
|
|
|
// Don't style scrollbar for touch device
|
|
|
|
// Since the scrollbar will stay visible if styled
|
|
|
|
// Besides scrollbar is subtle enough on touch devices
|
|
|
|
@media ( hover: hover ) {
|
|
|
|
* {
|
|
|
|
scrollbar-width: thin;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
background: transparent;
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-background;
|
2021-04-12 18:00:43 +00:00
|
|
|
|
|
|
|
&:hover {
|
2022-12-14 17:56:17 +00:00
|
|
|
background: var( --background-color-quiet--hover );
|
2021-04-12 18:00:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
border: 5px solid transparent;
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: var( --border-radius--large );
|
2022-09-28 21:02:56 +00:00
|
|
|
background-clip: content-box;
|
2021-04-12 18:00:43 +00:00
|
|
|
box-shadow: inset 0 0 0 10px var( --background-color-icon );
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: inset 0 0 0 10px var( --background-color-icon--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
box-shadow: inset 0 0 0 10px var( --background-color-icon--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-button {
|
|
|
|
display: none;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-corner {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|