Skip to content

Commit

Permalink
Customize the scrollbar in code boxes for WebKit-based browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
adoriandoran committed Oct 28, 2024
1 parent 2f4ed92 commit b9ebc66
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,20 @@ html .note-detail-editable-text :not(figure, .include-note):first-child {
overflow: auto;
}

.ck-content pre code::-webkit-scrollbar {
height: 6px;
}

.ck-content pre code::-webkit-scrollbar-thumb {
height: 4px;
border: none !important;
background: gray !important;
}

.ck-content pre code::-webkit-scrollbar-track, ::-webkit-scrollbar-thumb {
cursor: default;
}

.note-detail-printable:not(.word-wrap) pre {
white-space: pre;
margin-right: 1em;
Expand Down

0 comments on commit b9ebc66

Please sign in to comment.