-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Larz/linux scrollbar #5083
Larz/linux scrollbar #5083
Changes from 8 commits
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,10 +65,6 @@ html, body { | |
| backface-visibility: hidden; | ||
| } | ||
|
|
||
| body { | ||
| height: 100%; | ||
| } | ||
|
|
||
| .resizing-container { | ||
| position: absolute; | ||
| top: 0; | ||
|
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. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| /* | ||
| * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. | ||
|
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 year should be 2013
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. Updated. Works great now, thanks for your help again~ |
||
| * | ||
| * 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 { | ||
| background-color: rgba(0,0,0,0); | ||
| 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; | ||
| } | ||
|
|
||
| /* The data URIs for the thumb were generated from the Fireworks files in | ||
| * styles/vertical-thumb-fw-outline.png and styles/horiz-thumb-fw-outline.png. | ||
| */ | ||
| :hover::-webkit-scrollbar-thumb:vertical, | ||
| :focus::-webkit-scrollbar-thumb:vertical { | ||
| -webkit-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAUCAYAAABf2RdVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABV0RVh0Q3JlYXRpb24gVGltZQA0LzIzLzEyckCqugAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAACPSURBVCiR7ZIhDoNAEEXfkJCsxKBJimTPwA3mDHvqsXWrquqaIH5FKUk3XKAJT87789U3SQkYgZ5fNuABvDpgrLUOOefZzBYzW3LOc6112J/pgL6UMkZE+lZERCqlHO0m6WZmCydICuDencmWK/Tfoc3dn63YbxsAkpKkyd1XwD/eV0nT7jBJAO2Ej+kCvAFNxTqyZCNcEQAAAABJRU5ErkJggg==") 9 0; | ||
| border-color: transparent; | ||
| border-width: 9px 0; | ||
| min-height: 20px; | ||
| } | ||
|
|
||
| :hover::-webkit-scrollbar-thumb:horizontal, | ||
| :focus::-webkit-scrollbar-thumb:horizontal { | ||
| -webkit-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAYAAAAywQxIAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABV0RVh0Q3JlYXRpb24gVGltZQA0LzIzLzEyckCqugAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAACLSURBVCiRrdIxCgIxEEbhfxYFOyuxCCLazjGmTu6YKyRV7hFLCzshlcXCQoqxMWCd5B3gqx6pKgAcAJwA7NFfBVB2P+zsnLvGGI89kois3vtijAGp6sU5d+vFWsy85ZyfpKp3IuIRrKWqj2UG9N8CoFprP6MQM28NLCGE1wgqImtK6Q2g0uxtGjitL9E6N1T9Wl8CAAAAAElFTkSuQmCC") 0 9; | ||
| border-color: transparent; | ||
| border-width: 0 9px; | ||
| 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 rgba(0, 0, 0, 0); | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-corner { | ||
| background: none; | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb:window-inactive { | ||
| box-shadow: 0 0 0 5px @custom-scrollbar-thumb-inactive inset; | ||
| } | ||
| } | ||
This file was deleted.
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.
brackets_scrollbarsis a less file. We could just remove this line and include it frombrackets_shared.less.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.
Alright cool I'll give that a try.