Customize the scrollbar in code boxes for WebKit-based browsers

This commit is contained in:
Adorian Doran 2024-10-29 01:30:08 +02:00
parent 2f4ed92346
commit b9ebc66122

View File

@ -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;