Customize the scrollbar stying. Added new SASS variable to change the color as per theme.

This commit is contained in:
Aditya Toshniwal
2019-11-12 19:38:35 +05:30
committed by Akshay Joshi
parent 636ab29669
commit 79e04d5e23
4 changed files with 46 additions and 4 deletions

View File

@@ -179,3 +179,29 @@
.CodeMirror-activeline-background {
background: $color-danger-lighter !important;
}
.CodeMirror-simplescroll-horizontal {
height: $scrollbar-width;
}
.CodeMirror-simplescroll-vertical {
width: $scrollbar-width;
}
.CodeMirror-scrollbar-filler, .CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical {
background: rgba($scrollbar-base-color, 0.2);
}
.CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical {
& div {
border: 0.25rem solid transparent;
border-radius: $border-radius*2;
background-clip: content-box;
background-color: rgba($scrollbar-base-color, 0.7);
&:hover {
background-color: $scrollbar-base-color;
}
}
}