Fix scrollbar color for non-Firefox

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-02-13 13:03:26 +01:00
parent a87e637666
commit 82474074f2
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 5 additions and 0 deletions

View File

@ -259,6 +259,11 @@ $composer-shadow-color: rgba(0, 0, 0, 0.28);
.mx_EventTile_content .markdown-body pre:hover {
border-color: #808080 !important; // inverted due to rules below
scrollbar-color: rgba(0, 0, 0, 0.2) transparent; // copied from light theme due to inversion below
// the code above works only in Firefox, this is for other browsers
// see https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color
&::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2); // copied from light theme due to inversion below
}
}
.mx_EventTile_content .markdown-body {
pre, code {