fix search styles (#2)

This commit is contained in:
Gon Pombo 2022-10-07 10:44:10 -03:00 committed by GitHub
parent d94e72e18d
commit 51a0ef86b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 16 deletions

View File

@ -6,6 +6,27 @@ html {
touch-action: manipulation;
}
*, body {
::-webkit-scrollbar {
height: 6px;
margin-left: 10px;
width: 6px ;
}
::-webkit-scrollbar-track {
background: #ededed;
border-radius: 2px
}
::-webkit-scrollbar-thumb {
background: #b7b7b7;
border-radius: 2px
}
::-webkit-scrollbar-thumb:hover {
background: #999
}
}
body {
min-width: $body-min-width;
color: var(--body-font-color);
@ -272,7 +293,9 @@ body[dir="rtl"] .book-menu {
position: absolute;
z-index: 3;
#book-search-hits {
overflow-y: scroll;
max-width: 340px;
overflow-x: hidden;
overflow-y: auto;
max-height: calc(100vh - 130px); // 130px -> uitopbar + content topbar
background-color: var(--body-background);
border-radius: 10px;

View File

@ -1,20 +1,6 @@
@import "defaults";
@import "variables";
// Webkit
::-webkit-scrollbar {
width: $padding-8;
}
::-webkit-scrollbar-thumb {
background: transparent;
border-radius: $padding-8;
}
:hover::-webkit-scrollbar-thumb {
background: var(--gray-500);
}
// MS
body {
-ms-overflow-style: -ms-autohiding-scrollbar;