2018-11-01 16:32:17 +01: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 15:39:29 +02:00
|
|
|
/* make any scrollbar grey and thin */
|
2020-03-30 12:41:05 +02:00
|
|
|
html {
|
2021-11-10 10:46:33 +01:00
|
|
|
scrollbar-color: $scrollbar-thumb-color transparent;
|
2020-03-30 12:41:05 +02:00
|
|
|
}
|
2022-07-27 15:39:29 +02:00
|
|
|
/* scrollbar-width is not inherited (but -color is, why?!), */
|
|
|
|
/* so declare it on every element */
|
2020-03-30 12:41:05 +02:00
|
|
|
* {
|
|
|
|
scrollbar-width: thin;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 6px;
|
|
|
|
height: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: 3px;
|
|
|
|
background-color: $scrollbar-thumb-color;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* make auto-hide scrollbars not transparent again on hover */
|
2020-03-30 12:41:05 +02:00
|
|
|
.mx_AutoHideScrollbar:hover {
|
2021-11-10 10:46:33 +01:00
|
|
|
scrollbar-color: $scrollbar-thumb-color transparent;
|
2020-03-30 12:41:05 +02:00
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: $scrollbar-thumb-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* make scrollbars transparent for autohide scrollbars */
|
2018-11-01 16:32:17 +01:00
|
|
|
.mx_AutoHideScrollbar {
|
2018-11-06 10:20:04 +01:00
|
|
|
overflow-x: hidden;
|
2018-11-01 16:32:17 +01:00
|
|
|
overflow-y: auto;
|
2022-07-27 15:39:29 +02:00
|
|
|
overflow-y: overlay; /* where supported */
|
2018-11-01 16:32:17 +01:00
|
|
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
|
|
|
2020-03-25 19:24:32 +01:00
|
|
|
&::-webkit-scrollbar {
|
|
|
|
background-color: transparent;
|
2018-11-12 12:57:21 +01:00
|
|
|
}
|
2018-11-01 16:32:17 +01:00
|
|
|
|
2020-03-25 19:24:32 +01:00
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: transparent;
|
2018-11-12 12:57:21 +01:00
|
|
|
}
|
|
|
|
|
2020-03-25 19:24:32 +01:00
|
|
|
scrollbar-color: transparent transparent;
|
2019-01-21 19:01:18 +01:00
|
|
|
}
|