mirror of
https://github.com/bitwarden/browser
synced 2026-02-24 08:33:29 +00:00
[PM-32481] Apply same custom scrollbar to nav (#19083)
* Apply same custom scrollbar to nav * Split colors
This commit is contained in:
@@ -102,23 +102,30 @@ textarea {
|
||||
|
||||
div:not(.modal)::-webkit-scrollbar,
|
||||
.cdk-virtual-scroll-viewport::-webkit-scrollbar,
|
||||
.vault-filters::-webkit-scrollbar {
|
||||
.vault-filters::-webkit-scrollbar,
|
||||
#bit-side-nav::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
div:not(.modal)::-webkit-scrollbar-track,
|
||||
.cdk-virtual-scroll-viewport::-webkit-scrollbar-track,
|
||||
.vault-filters::-webkit-scrollbar-track {
|
||||
.vault-filters::-webkit-scrollbar-track,
|
||||
#bit-side-nav::-webkit-scrollbar-track {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
div:not(.modal)::-webkit-scrollbar-thumb,
|
||||
.cdk-virtual-scroll-viewport::-webkit-scrollbar-thumb,
|
||||
.vault-filters::-webkit-scrollbar-thumb {
|
||||
.vault-filters::-webkit-scrollbar-thumb,
|
||||
#bit-side-nav::-webkit-scrollbar-thumb {
|
||||
border-radius: 10px;
|
||||
margin-right: 1px;
|
||||
}
|
||||
|
||||
div:not(.modal)::-webkit-scrollbar-thumb,
|
||||
.cdk-virtual-scroll-viewport::-webkit-scrollbar-thumb,
|
||||
.vault-filters::-webkit-scrollbar-thumb {
|
||||
@include themify($themes) {
|
||||
background-color: themed("scrollbarColor");
|
||||
}
|
||||
@@ -130,6 +137,18 @@ div:not(.modal)::-webkit-scrollbar-thumb,
|
||||
}
|
||||
}
|
||||
|
||||
#bit-side-nav::-webkit-scrollbar-thumb {
|
||||
@include themify($themes) {
|
||||
background-color: themed("scrollbarColorNav");
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@include themify($themes) {
|
||||
background-color: themed("scrollbarHoverColorNav");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// cdk-virtual-scroll
|
||||
.cdk-virtual-scroll-viewport {
|
||||
width: 100%;
|
||||
|
||||
@@ -56,6 +56,8 @@ $themes: (
|
||||
backgroundColorAlt2: $background-color-alt2,
|
||||
scrollbarColor: rgba(100, 100, 100, 0.2),
|
||||
scrollbarHoverColor: rgba(100, 100, 100, 0.4),
|
||||
scrollbarColorNav: rgba(226, 226, 226),
|
||||
scrollbarHoverColorNav: rgba(197, 197, 197),
|
||||
boxBackgroundColor: $box-background-color,
|
||||
boxBackgroundHoverColor: $box-background-hover-color,
|
||||
boxBorderColor: $box-border-color,
|
||||
@@ -115,6 +117,8 @@ $themes: (
|
||||
backgroundColorAlt2: #15181e,
|
||||
scrollbarColor: #6e788a,
|
||||
scrollbarHoverColor: #8d94a5,
|
||||
scrollbarColorNav: #6e788a,
|
||||
scrollbarHoverColorNav: #8d94a5,
|
||||
boxBackgroundColor: #2f343d,
|
||||
boxBackgroundHoverColor: #3c424e,
|
||||
boxBorderColor: #4c525f,
|
||||
|
||||
Reference in New Issue
Block a user