Bluemoondragon07 / obsidian-big-and-bold

A bold theme designed in the style of a WYSIWYG Editor, created for maximum focus and a modern look.
Creative Commons Zero v1.0 Universal
40 stars 3 forks source link

Scrollbars #5

Closed DutchPete closed 1 year ago

DutchPete commented 1 year ago

image

Scrollbars are visible and look ugly. I noticed in your screenshots there are no scrollbars, though perhaps only on hover.

How can I achieve that too? There does not seem to be a setting for it in Style Settings. I am on MacOS, Obsidian 1.1.16.

Bluemoondragon07 commented 1 year ago

Hmm, that's strange. I thought I did remove scrollbars, but they must be entirely different on Mac. Is that what scrollbars look like in most themes? If not, maybe I removed the Obsidian scrollbars and left native scrollbars visible.

Anyhow, I'll get this fixed. There's definitely a snippet somewhere I can look at for hiding scrollbars on Mac.

DutchPete commented 1 year ago

Yes, those scrollbars look like that in other themes too.

I can make them disappear with this:

::-webkit-scrollbar {
  width: 0;
}

or with this

::-webkit-scrollbar {
  opacity: 0;
}

but in either case I cannot make them appear on hover, even with e.g. this:

::-webkit-scrollbar:hover {
  opacity: 1;
}
Bluemoondragon07 commented 1 year ago

Finally updated it! I did put this in the code:

::-webkit-scrollbar {
  opacity: 0;
}

I don't have any way of testing it myself, but please update the theme and let me know if it works. Thanks for helping me fix this issue.

DutchPete commented 1 year ago

I had tried that myself and it did not work. Eventually I discovered that it had to do with the scrollbar settings in macOS itself, where it was set at “always show”. I changed it to only show when scrolling.

Bluemoondragon07 commented 1 year ago

Ah, okay. It was a system setting. So the scrollbars in the theme are hidden now?

DutchPete commented 1 year ago

Yes they are. When I start scrolling they become visible and if need be I can “catch” them to move them up and down.

Bluemoondragon07 commented 1 year ago

Okay. Glad it's working for you now 👍🏽.

DutchPete commented 1 year ago

Thanks a lot for your interest and support!!