2018-11-01 18:32:17 +03:00
|
|
|
/*
|
|
|
|
Copyright 2018 New Vector Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* make any scrollbar grey and thin */
|
2020-03-30 13:41:05 +03:00
|
|
|
html {
|
2021-11-10 12:46:33 +03:00
|
|
|
scrollbar-color: $scrollbar-thumb-color transparent;
|
2020-03-30 13:41:05 +03:00
|
|
|
}
|
2022-07-27 16:39:29 +03:00
|
|
|
/* scrollbar-width is not inherited (but -color is, why?!), */
|
|
|
|
/* so declare it on every element */
|
2020-03-30 13:41:05 +03:00
|
|
|
* {
|
|
|
|
scrollbar-width: thin;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 6px;
|
|
|
|
height: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: 3px;
|
|
|
|
background-color: $scrollbar-thumb-color;
|
|
|
|
}
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* make auto-hide scrollbars not transparent again on hover */
|
2020-03-30 13:41:05 +03:00
|
|
|
.mx_AutoHideScrollbar:hover {
|
2021-11-10 12:46:33 +03:00
|
|
|
scrollbar-color: $scrollbar-thumb-color transparent;
|
2020-03-30 13:41:05 +03:00
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: $scrollbar-thumb-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* make scrollbars transparent for autohide scrollbars */
|
2018-11-01 18:32:17 +03:00
|
|
|
.mx_AutoHideScrollbar {
|
2018-11-06 12:20:04 +03:00
|
|
|
overflow-x: hidden;
|
2018-11-01 18:32:17 +03:00
|
|
|
overflow-y: auto;
|
2022-12-12 14:24:14 +03:00
|
|
|
overflow-y: overlay; /* where supported */
|
2018-11-01 18:32:17 +03:00
|
|
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
|
|
|
2020-03-25 21:24:32 +03:00
|
|
|
&::-webkit-scrollbar {
|
|
|
|
background-color: transparent;
|
2018-11-12 14:57:21 +03:00
|
|
|
}
|
2018-11-01 18:32:17 +03:00
|
|
|
|
2020-03-25 21:24:32 +03:00
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: transparent;
|
2018-11-12 14:57:21 +03:00
|
|
|
}
|
|
|
|
|
2020-03-25 21:24:32 +03:00
|
|
|
scrollbar-color: transparent transparent;
|
2019-01-21 21:01:18 +03:00
|
|
|
}
|