This repository was archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Larz/linux scrollbar #5083
Merged
Merged
Larz/linux scrollbar #5083
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7376838
squashed from larz/linux-scrollbar
jasonsanjose 18369b4
Updated based on Jason's feedback.
larz0 2c0eaf6
Removed test selector.
larz0 7ba7240
Added @TomMalbran's new less file that consolidates all scrollbar sty…
larz0 ee13a99
Removed quiet scrollbar styles as they're all in brackets_scrollbars.…
larz0 181ead8
Updated link.
larz0 3561353
Cleaned up a bit.
larz0 c175487
Removed linux scrollbar style.
larz0 62834b3
Fixed based on @TomMalbran's feedback.
larz0 d3e359f
Updated year.
larz0 32ab5ee
Merge branch 'master' of https://github.com/adobe/brackets into larz/…
larz0 4ce40aa
Removed base64 PNGs as they're no longer required.
larz0 edce885
Fixed quiet scrollbar based on @TomMalbran's feedback.
larz0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| /* | ||
| * Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. | ||
| * | ||
| * Permission is hereby granted, free of charge, to any person obtaining a | ||
| * copy of this software and associated documentation files (the "Software"), | ||
| * to deal in the Software without restriction, including without limitation | ||
| * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
| * and/or sell copies of the Software, and to permit persons to whom the | ||
| * Software is furnished to do so, subject to the following conditions: | ||
| * | ||
| * The above copyright notice and this permission notice shall be included in | ||
| * all copies or substantial portions of the Software. | ||
| * | ||
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
| * DEALINGS IN THE SOFTWARE. | ||
| * | ||
| */ | ||
|
|
||
| /* Temporary implementation of unobtrusive scrollbars. | ||
| FUTURE: These currently rely on nonstandard WebKit styles, and don't have all the right behavior. | ||
| Longer-term, we'll need to implement custom scrollbars. */ | ||
|
|
||
| .platform-mac .quiet-scrollbars, | ||
| .platform-win .quiet-scrollbars, | ||
| .platform-linux .quiet-scrollbars { | ||
|
|
||
| ::-webkit-scrollbar { | ||
| width: 9px; | ||
| height: 9px; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-corner { | ||
| background-color: transparent; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb { | ||
| box-shadow: none; | ||
| border: none; | ||
| } | ||
|
|
||
| /* This looks like a dupe, but without it the thumb doesn't fade in | ||
| * properly, probably due to flakiness in how these styles are handled | ||
| * in the build of WebKit that's in CEF. | ||
| */ | ||
| ::-webkit-scrollbar-corner { | ||
| background-color: transparent; | ||
| } | ||
|
|
||
| :hover::-webkit-scrollbar-thumb, | ||
| :focus::-webkit-scrollbar-thumb { | ||
| border-radius: 999px; | ||
| box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6) inset; | ||
| border: 2px solid transparent; | ||
| } | ||
|
|
||
| :hover::-webkit-scrollbar-thumb:vertical, | ||
| :focus::-webkit-scrollbar-thumb:vertical { | ||
| min-height: 20px; | ||
| } | ||
|
|
||
| :hover::-webkit-scrollbar-thumb:horizontal, | ||
| :focus::-webkit-scrollbar-thumb:horizontal { | ||
| min-width: 20px; | ||
| } | ||
| } | ||
|
|
||
| .platform-linux { | ||
| ::-webkit-scrollbar { | ||
| width: 12px; | ||
| height: 12px; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-track:vertical { | ||
| margin: 0 0 8px 0; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-track:horizontal { | ||
| margin: 0 8px 0 0; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb { | ||
| border-radius: 999px; | ||
| box-shadow: 0 0 0 4px @custom-scrollbar-thumb inset; | ||
| border: 2px solid transparent; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-corner { | ||
| background: none; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb:window-inactive { | ||
| box-shadow: 0 0 0 5px @custom-scrollbar-thumb-inactive inset; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should we restore this?
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.
No need because it's already declared above.
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.
Oh, I found it now.