primary-theme / obsidian

Comfy, playful but productive theme for Obsidian. "Primary instantly puts you in a relaxed state that opens the door to creativity and exploration. Wonderfully executed down to the smallest details,"
GNU General Public License v3.0
847 stars 38 forks source link

Scrollbar width (again) - mobile #143

Closed May2002 closed 1 year ago

May2002 commented 2 years ago

Hi Cecilia, First of all thank you for this great theme! I absolutely love it AND it just made my husband ask for obsidian on his systems :)

I am aware of the position about scrollbar width you expressed here: https://github.com/ceciliamay/obsidianmd-theme-primary/issues/55#issue-1115514261

The thing is that on non-stylus mobile with a case the thin scrollbar just can't be reached, I (at least) usually don't have a mouse when I want to access my notes on the go and there is no hover feature. The workaround (for now) is to decrease the sliding pane width , but aesthetically it is a little bit of a shame since everything else is so clear and nice.

Just so you know...

Best regards!

May2002 commented 1 year ago

Hi again,

if anyone as ignorant as I am is interrested, I have finaly been able to widen the scrollbars thanks to a .css snippet that rewrites the Primary thin scrollbar feature:

/ Thin Scrollbar / .scrollbarthin.scrollbarthin:not(.native-scrollbars) ::-webkit-scrollbar, .scrollbarthin.scrollbarthin:not(.native-scrollbars) .graph-controls::-webkit-scrollbar { visibility: visible; width: var(--scale-2-6); height: var(--scale-2-6); border-radius: 24px; display: inherit; background: var(--scrollbar-bg); } .scrollbarthin.scrollbarthin:not(.native-scrollbars) ::-webkit-scrollbar-thumb { visibility: visible; background: var(scrollbar-thumb-bg); border-radius: 24px; } .scrollbarthin.scrollbarthin:not(.native-scrollbars) ::-webkit-scrollbar-thumb:active { background: var(--scrollbar-active-thumb-bg); border-radius: 24px; }

(Sorry, I tried to add it as code, but then I lose the line breaks)

For my mobile + case, --scale-2-6 is not even quite enought, but --scale-2-8 does the job.