modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
921 stars 171 forks source link

[Suggestion] Theme-Fit Scrollbar #1581

Closed NaiNonTH closed 9 months ago

NaiNonTH commented 1 year ago

Is your suggested enhancement related to a problem? Please describe.

The current default scrollbar doesn't go well with Modrinth's overall theme, and there's a very simple room for improvement for supported web browsers here.

Describe the solution you'd like

Hence, for aesthetic improvement, I suggest you add a custom scrollbar to the global stylesheet:

This is what I've designed:

* {
  // For Firefox...
  scrollbar-color: var(--color-bg-inverted) var(--color-bg);
}

// ...

// For other web browsers...

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-inverted);
  border-radius: 5px;
}

Describe alternatives you've considered

No alternative ways for now...

Additional context

No response

Prospector commented 9 months ago

Closing for same reasons as modrinth/knossos#1448