From beaf67c97538020057ed57f6b49eca03f4383faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Wed, 6 Mar 2024 19:30:23 +0100 Subject: [PATCH 1/3] initial commit --- client/homebrew/brewRenderer/brewRenderer.less | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/client/homebrew/brewRenderer/brewRenderer.less b/client/homebrew/brewRenderer/brewRenderer.less index 17aa146fb..d0551747c 100644 --- a/client/homebrew/brewRenderer/brewRenderer.less +++ b/client/homebrew/brewRenderer/brewRenderer.less @@ -14,6 +14,19 @@ box-shadow : 1px 4px 14px #000000; } } + + &::-webkit-scrollbar { + width: 20px; + z-index: 2; + + } + + &::-webkit-scrollbar-thumb { + width:20px; + background-color: #d3c1af; + border-right: 7px solid #2C3E50; + } + } .pane { position : relative; } .pageInfo { From 54d881642d72a4a84c8dabb86aaee842c0b1928f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Fri, 8 Mar 2024 10:09:29 +0100 Subject: [PATCH 2/3] listpage, editor --- .../homebrew/brewRenderer/brewRenderer.less | 4 +--- client/homebrew/homebrew.less | 11 +++++++++++ shared/naturalcrit/codeEditor/codeEditor.less | 19 ++++++++++++++++++- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/client/homebrew/brewRenderer/brewRenderer.less b/client/homebrew/brewRenderer/brewRenderer.less index d0551747c..ee66945f4 100644 --- a/client/homebrew/brewRenderer/brewRenderer.less +++ b/client/homebrew/brewRenderer/brewRenderer.less @@ -17,14 +17,12 @@ &::-webkit-scrollbar { width: 20px; - z-index: 2; } &::-webkit-scrollbar-thumb { width:20px; - background-color: #d3c1af; - border-right: 7px solid #2C3E50; + background: linear-gradient(90deg, #d3c1af 15px, #00000000 15px); } } diff --git a/client/homebrew/homebrew.less b/client/homebrew/homebrew.less index f4834a25c..4e282ecaf 100644 --- a/client/homebrew/homebrew.less +++ b/client/homebrew/homebrew.less @@ -15,6 +15,17 @@ } &.listPage .content { overflow-y : scroll; + + &::-webkit-scrollbar { + width: 20px; + z-index: 2; + + } + + &::-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..2568d0725 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.less +++ b/shared/naturalcrit/codeEditor/codeEditor.less @@ -17,13 +17,30 @@ 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; //} From d0000cee115f75ca8fcd9b0f7c6dc926e8b476b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Fri, 8 Mar 2024 10:13:04 +0100 Subject: [PATCH 3/3] linting --- client/homebrew/brewRenderer/brewRenderer.less | 2 -- client/homebrew/homebrew.less | 3 --- shared/naturalcrit/codeEditor/codeEditor.less | 2 -- 3 files changed, 7 deletions(-) diff --git a/client/homebrew/brewRenderer/brewRenderer.less b/client/homebrew/brewRenderer/brewRenderer.less index ee66945f4..edc8d503b 100644 --- a/client/homebrew/brewRenderer/brewRenderer.less +++ b/client/homebrew/brewRenderer/brewRenderer.less @@ -17,9 +17,7 @@ &::-webkit-scrollbar { width: 20px; - } - &::-webkit-scrollbar-thumb { width:20px; background: linear-gradient(90deg, #d3c1af 15px, #00000000 15px); diff --git a/client/homebrew/homebrew.less b/client/homebrew/homebrew.less index 4e282ecaf..ed86a8c28 100644 --- a/client/homebrew/homebrew.less +++ b/client/homebrew/homebrew.less @@ -18,10 +18,7 @@ &::-webkit-scrollbar { width: 20px; - z-index: 2; - } - &::-webkit-scrollbar-thumb { width:20px; background: linear-gradient(90deg, #d3c1af 15px, #00000000 15px); diff --git a/shared/naturalcrit/codeEditor/codeEditor.less b/shared/naturalcrit/codeEditor/codeEditor.less index 2568d0725..8ffbcad91 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.less +++ b/shared/naturalcrit/codeEditor/codeEditor.less @@ -30,11 +30,9 @@ } .CodeMirror-vscrollbar { - &::-webkit-scrollbar { width: 20px; } - &::-webkit-scrollbar-thumb { width: 20px; background: linear-gradient(90deg, #85858599 15px, #80808000 15px);