Add chrome scrollbar style

This commit is contained in:
Sam 2024-08-07 01:18:49 +01:00
parent 5405fc1b8b
commit cca70412c6
1 changed files with 20 additions and 0 deletions

View File

@ -396,6 +396,26 @@ pre {
overflow-x: auto; overflow-x: auto;
} }
.highlight pre {
background: none !important;
}
/* Style for WebKit browsers (Chrome, Safari, etc.) */
*::-webkit-scrollbar {
height: 5px;
border-radius: 6px;
background: #1f1f28;
}
*::-webkit-scrollbar-thumb {
border-radius: 6px;
background: #585653;
}
*::-webkit-scrollbar-thumb:hover {
background: #454445; /* Background color on hover */
}
.codeblock { .codeblock {
position: relative; position: relative;
background-color: var(--codeblock-bg-color); background-color: var(--codeblock-bg-color);