-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Larz/linux scrollbar #5083
Larz/linux scrollbar #5083
Changes from 1 commit
7376838
18369b4
2c0eaf6
7ba7240
ee13a99
181ead8
3561353
c175487
62834b3
d3e359f
32ab5ee
4ce40aa
edce885
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 |
|---|---|---|
|
|
@@ -65,8 +65,28 @@ html, body { | |
| backface-visibility: hidden; | ||
| } | ||
|
|
||
| body { | ||
| height: 100%; | ||
| .platform-linux { | ||
| ::-webkit-scrollbar { | ||
|
Member
Author
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. There's a note in
Member
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. I didn't know about that. Did it get fixed? less/less.js#1152
Contributor
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. The difference is that these are applied to any element, while the quite scrollbars are applied to elements with a particular class. The issue @larz0 linked to, has a solution to use it in less: Should we have all the custom scrollbars together in a separate file?
Member
Author
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. Looks like it. |
||
| width: 8px; | ||
|
Contributor
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. Should we restore this?
Member
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. No need because it's already declared above.
Contributor
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. Oh, I found it now. |
||
| height: 8px; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-track-piece { | ||
| background: none; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb { | ||
| background: @custom-scrollbar-thumb; | ||
| border-radius: 4px; | ||
|
Member
Author
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. Hooray for border-radius. I don't remember why we use an encoded PNG for quiet scrollbars. Perhaps it's not a perfect semi-circle? @njx do you remember why or was it some webkit bug where border-radius didn't work?
Contributor
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. If this works, we should update the quiet scrollbars. |
||
| } | ||
|
|
||
| ::-webkit-scrollbar-corner { | ||
|
Member
Author
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. When scrolled all the way right and down, the scrollbar thumbs overlap. This doesn't happen with the project tree's quiet scrollbars.
Member
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. Fixed. Nice catch~ |
||
| background: none; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb:window-inactive { | ||
| background: @custom-scrollbar-thumb-inactive; | ||
| } | ||
| } | ||
|
|
||
| .resizing-container { | ||
|
|
||
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 accidentally shows up on the project tree for the normal, non-hovered state. During hover, we get quiet scrollbars form
quiet-scrollbars.css. Do we want the older quiet scrollbars to take priority instead?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.
Yes we want the old quiet scrollbars to take priority instead. Not sure how to do that.
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.
Try with
.platform-linux :not(.quiet-scrollbars)as the selector.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.
Hmm that doesn't work.
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.
If this scrollbars are applied only on the editor, we could just add a more specific class before the scrollbars pseudo classes.
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.
The scrollbar actually applies to the Extension Manager as well.
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.
Yes, I figure it should also be applied in the dialogs. But check my gist at the last comment for a better solution :)