Skip to content

Commit

Permalink
Fixing scrollbars in the code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Lea authored and Tony Lea committed Oct 25, 2024
1 parent 65e0b8c commit 2f4f65b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -487,4 +487,24 @@ div.hljs-copy-container{

.filename-top > p{
display:none;
}


/* Scrollbar for code blocks */
/* width */
code::-webkit-scrollbar {
height:5px;
}
/* Track */
code::-webkit-scrollbar-track {
background: transparent;
}
/* Handle */
code::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius:10px;
}
/* Handle on hover */
code::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.14);
}

0 comments on commit 2f4f65b

Please sign in to comment.