mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-06-16 21:34:07 +00:00
fix search styles (#2)
This commit is contained in:
parent
d94e72e18d
commit
51a0ef86b5
@ -6,6 +6,27 @@ html {
|
|||||||
touch-action: manipulation;
|
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 {
|
body {
|
||||||
min-width: $body-min-width;
|
min-width: $body-min-width;
|
||||||
color: var(--body-font-color);
|
color: var(--body-font-color);
|
||||||
@ -272,7 +293,9 @@ body[dir="rtl"] .book-menu {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
#book-search-hits {
|
#book-search-hits {
|
||||||
overflow-y: scroll;
|
max-width: 340px;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
max-height: calc(100vh - 130px); // 130px -> uitopbar + content topbar
|
max-height: calc(100vh - 130px); // 130px -> uitopbar + content topbar
|
||||||
background-color: var(--body-background);
|
background-color: var(--body-background);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
@ -1,20 +1,6 @@
|
|||||||
@import "defaults";
|
@import "defaults";
|
||||||
@import "variables";
|
@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
|
// MS
|
||||||
body {
|
body {
|
||||||
-ms-overflow-style: -ms-autohiding-scrollbar;
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
||||||
|
Loading…
Reference in New Issue
Block a user