-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I change the indicator? #7
Comments
Let's take a peak at your css? |
.scrollContainer {
overflow: auto;
margin: auto auto;
& .nzScrollbar {
border: 1px solid #E9E9E7;
.nzScrollbar-indicator-wrap {
background-color: #ddd;
opacity: 1;
width: 10px;
& .noScroll {
display: none;
}
.nzScrollbar-indicator {
background-color: blue !important;
display: block !important;
height: 20px;
width: 10px;
}
}
}
& .noScroll {
border: 0 none;
}
} |
This works to override the colors: /* This alters the opacity when you hover over the scrollbox */
.nzScrollbar:hover .nzScrollbar-indicator-wrap {
opacity: 1;
}
/* This is the background color of the bar */
.nzScrollbar .nzScrollbar-indicator-wrap:hover {
background-color: rgba(0, 0, 0, 0.2);
}
/* this is the background color of the indicator */
.nzScrollbar {
.nzScrollbar-indicator-wrap {
.nzScrollbar-indicator {
background-color: red !important;
}
}
} Here is a link to the plunkr demo with that css inserted at the bottom: http://codepen.io/anon/pen/NPOGpd |
That is almost there. The indicators are different heights. I don't see where that's specified anywhere. Also, how did you get rid of the rounded corners? Thanks! |
I'm not sure what you mean by different heights, but the css defaults to no
|
I was able nzScrollbar-indicator-wrap to look like the attached image but the indicator is not taking the color change and if I force the display to show all the time, it turns the whole wrap black.
The text was updated successfully, but these errors were encountered: