mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
Customize the scrollbar in code boxes for WebKit-based browsers
This commit is contained in:
parent
2f4ed92346
commit
b9ebc66122
@ -835,6 +835,20 @@ html .note-detail-editable-text :not(figure, .include-note):first-child {
|
|||||||
overflow: auto;
|
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 {
|
.note-detail-printable:not(.word-wrap) pre {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user