-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Universal (nearly) scrollbar styling #6026
Changes from all commits
1e1b0d7
d5907f1
89d244c
e6982d6
654be67
07b8758
9ba8d5c
e29823a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -374,4 +374,18 @@ all of MD as it is not optimized for dense, information rich UIs. | |
--jp-search-toggle-off-opacity: 0.5; | ||
--jp-search-toggle-hover-opacity: 0.75; | ||
--jp-search-toggle-on-opacity: 1; | ||
|
||
/* scrollbar related styles. Supports every browser except Edge. */ | ||
|
||
/* colors based on JetBrain's Darcula theme */ | ||
|
||
--jp-scrollbar-background-color: #3f4244; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a note to say where this color came from - otherwise looks arbitrary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. /* Based on the JetBrains Darcula theme */ All of this CSS is copied directly from my Darcula theme. I'm no designer, so when I couldn't find an authoritative reference for Material Dark, I figured it was safer to just leave the colors alone (they do look pretty good). If you want to point me to a spec (or just an example of a good Material Dark theme in action) I'd be happy to change these. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note added |
||
--jp-scrollbar-thumb-color: 88, 96, 97; /* need to specify thumb color as an RGB triplet */ | ||
|
||
--jp-scrollbar-endpad: 3px; /* the minimum gap between the thumb and the ends of a scrollbar */ | ||
|
||
/* hacks for setting the thumb shape. These do nothing in Firefox */ | ||
|
||
--jp-scrollbar-thumb-margin: 3.5px; /* the space in between the sides of the thumb and the track */ | ||
--jp-scrollbar-thumb-radius: 9px; /* set to a large-ish value for rounded endcaps on the thumb */ | ||
} |
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.
I am ok with this workaround, but let's open a follow up issue so we have a reminder to revisit this (hopefully Chrome will fix it)