-
Notifications
You must be signed in to change notification settings - Fork 329
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
control scrollbar styling #637
Conversation
looks like a good start! lemme know when you'd like a review - I think we can also implement the "dark / light toggle" logic inside those mixins - even though this would now be in a different place from |
I can't really test it, I'm on a mac computer and my system is overriding all the navbars (that's also why I never noticed the problem). I'll test it over my FAO laptop on Monday to check the behavior on a Windows machine.
I don't really see which logic you're talking about. there's not that much logic in the toggle apart from a double set of colors (which I think is just fine in the _colors.scss file). Unless you're talking about this ( pydata-sphinx-theme/src/pydata_sphinx_theme/assets/styles/components/_switcher-theme.scss Line 21 in 281e103
|
Ah never mind about my comments on colors, I'm being silly and was thinking we'd have to define specific background and foreground colors for the scroll bars. Ignore my statement! |
hmm - for some reason, on my screen the scrollbar is only showing up when I hover over the scrollbar area, not the whole sidebar...so something seems to be off with the "hover" event |
I see the same behavior... |
Add a grey scrollbar to both the body and the primary sidebar. The scrolllbar is using the background color for the track (if not the body one uses a black background by default) and a grey/white coloring. I decided to remove any hover behavior because I don't think they are very helpful (open to discussion). happy to hear your feedbacks |
FYI this is looking pretty good to me now! |
as it's a mixin function it's nothing really. I've never used div or code-block that are scrollable. Is there examples in the doc so that I can test it ? (I'm mainly looking for the css class/id) |
Any of the code blocks with relatively wide content should demonstrate how horizontal scrollbars look. For example, narrow your screen and look here: https://pydata-sphinx-theme.readthedocs.io/en/stable/demo/example_pandas.html Though we could also provide an example in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really nice to me - I'm +1 on merging and iterating in future PRs if we find more things to improve here. WDYT?
OK let's merge this in and see how people like it! |
I like it!!! |
Fix #633
WIP