Skip to content

Fix scrollbar width for main body text #1716

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

Merged
merged 6 commits into from
Jun 14, 2018
Merged

Fix scrollbar width for main body text #1716

merged 6 commits into from
Jun 14, 2018

Conversation

jcollins-g
Copy link
Contributor

Fixes #1711.

Increases the width of the main body scrollbar to 8 pixels, making it easier to use in cases where there's no right-column sidebar, and just generally easier to see.

Other scrollbars remain unaffected:

screenshot from 2018-06-13 15-07-36

While platforms/browsers that do not have a border around the browser (e.g. Chrome on Linux) have a wide enough scrollbar that Chrome does not prevent you from using most of it:

screenshot from 2018-06-13 15-08-13

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Jun 13, 2018
@jcollins-g jcollins-g requested a review from devoncarew June 13, 2018 22:40
@@ -72,6 +72,7 @@ main {
::-webkit-scrollbar-thumb{ background-color: #CCC; }
::-webkit-scrollbar-thumb:hover{ background-color: #CCC; }
::-webkit-scrollbar{ width: 4px; }
.main-content::-webkit-scrollbar{ width: 8px; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but what do things look like if you just remove all the explicit webkit-scrollbar selectors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the scrollbars revert to browser defaults:

screenshot from 2018-06-14 09-22-31
screenshot from 2018-06-14 09-23-06

I suspect that the reason we're using webkit scrollbars is that the dartlang.org website tends to use them.

@jcollins-g jcollins-g merged commit be0234f into master Jun 14, 2018
@jcollins-g jcollins-g deleted the scrollbar branch June 14, 2018 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants