Merge pull request #2470 from matrix-org/bwindels/css-scrollbars
Make native scrollbars prettier
This commit is contained in:
commit
cc2b6f9524
5 changed files with 27 additions and 3 deletions
|
@ -64,3 +64,20 @@ body.mx_scrollbar_nooverlay {
|
|||
margin-right: calc(-1 * var(--scrollbar-width));
|
||||
}
|
||||
}
|
||||
|
||||
// style the native scrollbars ...
|
||||
// ... standard css scrollbars (firefox at time of writing)
|
||||
.mx_AutoHideScrollbar {
|
||||
scrollbar-color: $scrollbar-thumb-color $scrollbar-track-color;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
// or fallback for webkit browsers
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
background-color: $scrollbar-track-color;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: $scrollbar-thumb-color;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue