diff --git a/client/homebrew/brewRenderer/brewRenderer.less b/client/homebrew/brewRenderer/brewRenderer.less index 17aa146fb..edc8d503b 100644 --- a/client/homebrew/brewRenderer/brewRenderer.less +++ b/client/homebrew/brewRenderer/brewRenderer.less @@ -14,6 +14,15 @@ box-shadow : 1px 4px 14px #000000; } } + + &::-webkit-scrollbar { + width: 20px; + } + &::-webkit-scrollbar-thumb { + width:20px; + background: linear-gradient(90deg, #d3c1af 15px, #00000000 15px); + } + } .pane { position : relative; } .pageInfo { diff --git a/client/homebrew/homebrew.less b/client/homebrew/homebrew.less index f4834a25c..ed86a8c28 100644 --- a/client/homebrew/homebrew.less +++ b/client/homebrew/homebrew.less @@ -15,6 +15,14 @@ } &.listPage .content { overflow-y : scroll; + + &::-webkit-scrollbar { + width: 20px; + } + &::-webkit-scrollbar-thumb { + width:20px; + background: linear-gradient(90deg, #d3c1af 15px, #00000000 15px); + } } } } \ No newline at end of file diff --git a/shared/naturalcrit/codeEditor/codeEditor.less b/shared/naturalcrit/codeEditor/codeEditor.less index 80af543d9..8ffbcad91 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.less +++ b/shared/naturalcrit/codeEditor/codeEditor.less @@ -17,13 +17,28 @@ text-shadow: none; font-weight: 600; color: grey; -} + } .sourceMoveFlash .CodeMirror-line{ animation-name: sourceMoveAnimation; animation-duration: 0.4s; } + .CodeMirror-sizer { + padding-right: 0 !important; + //this setting must be !important, because CodeMirror sets it inline. Achieves overlay scrollbar + } + + .CodeMirror-vscrollbar { + &::-webkit-scrollbar { + width: 20px; + } + &::-webkit-scrollbar-thumb { + width: 20px; + background: linear-gradient(90deg, #85858599 15px, #80808000 15px); + } + } + //.cm-tab { // background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAQAAACOs/baAAAARUlEQVR4nGJgIAG8JkXxUAcCtDWemcGR1lY4MvgzCEKY7jSBjgxBDAG09UEQzAe0AMwMHrSOAwEGRtpaMIwAAAAA//8DAG4ID9EKs6YqAAAAAElFTkSuQmCC) no-repeat right; //}