Skip to content
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

Make the scrollbar offset X amount from the edge of the page #13

Open
NVHT opened this issue Dec 16, 2022 · 4 comments
Open

Make the scrollbar offset X amount from the edge of the page #13

NVHT opened this issue Dec 16, 2022 · 4 comments

Comments

@NVHT
Copy link

NVHT commented Dec 16, 2022

Describe the change you'd like
image
This is the original css.
image
This is what I want.
Additional context

@NVHT NVHT changed the title Make the scrollbar offset X amount the edge of the page Make the scrollbar offset X amount from the edge of the page Dec 16, 2022
@silverwind
Copy link
Member

Does this CSS work for you (replacing the userstyle completely)?

@supports (overflow: overlay) {
  body {
    overflow: overlay;
    scrollbar-gutter: stable;
  }
}

@NVHT
Copy link
Author

NVHT commented Dec 16, 2022

Sorry, I'm a noob, but how do you add (try) that?

@silverwind
Copy link
Member

silverwind commented Dec 16, 2022

Edit the style in Stylus and paste the lines after the comments.

This should in theory enable a better variant of overlay scrollbars that relies more on browser defaults, minus the customization. I can not test myself as on macOS, overlay scrollbars are already the default everywhere.

@NVHT
Copy link
Author

NVHT commented Dec 16, 2022

It is the same as before, no changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants