mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 20:36:57 +03:00
71d8946641
* $reaction-row-button-selected-border-color -> $accent-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * $reaction-row-button-bg-color -> $header-panel-bg-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove $room-warning-bg-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove $button-link-bg-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove $tab-label-icon-bg-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove $tab-label-bg-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove $event-redacted-border-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove $event-redacted-fg-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove $panel-divider-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * $search-placeholder-color -> #61708b Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * $search-bg-color -> #181b21 Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * $header-panel-border-color -> #000000 Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove $scrollbar-track-color Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * $eventbubble-avatar-outline -> $background Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
62 lines
1.6 KiB
SCSS
62 lines
1.6 KiB
SCSS
/*
|
|
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.
|
|
*/
|
|
|
|
// make any scrollbar grey and thin
|
|
html {
|
|
scrollbar-color: $scrollbar-thumb-color transparent;
|
|
}
|
|
// scrollbar-width is not inherited (but -color is, why?!),
|
|
// so declare it on every element
|
|
* {
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
border-radius: 3px;
|
|
background-color: $scrollbar-thumb-color;
|
|
}
|
|
|
|
// make auto-hide scrollbars not transparent again on hover
|
|
.mx_AutoHideScrollbar:hover {
|
|
scrollbar-color: $scrollbar-thumb-color transparent;
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: $scrollbar-thumb-color;
|
|
}
|
|
}
|
|
|
|
// make scrollbars transparent for autohide scrollbars
|
|
.mx_AutoHideScrollbar {
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
overflow-y: overlay; // where supported
|
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
|
|
&::-webkit-scrollbar {
|
|
background-color: transparent;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: transparent;
|
|
}
|
|
|
|
scrollbar-color: transparent transparent;
|
|
}
|