Closed nstringham closed 3 years ago
Could you make an issue for this on SkyCrypt? skylea has been discontinued
ok I was wondering wich to do
That layout isn't supported unless on a touch device, where scrollbars are either hidden or transparent. If they're visible the design is already broken anyway.
@LeaPhant as far as I can tell it uses CSS media max-width which doesn't have anything to do with touch
In this issue, I will purpose styling the scrollbars on sky.lea.moe
The Problem
the problem with unstyled scrollbars is that they are white on most browsers which clashes with the dark esthetic of the site.
notice how the scrollbars are the same contrast as the text drawing attention away from the content to the scrollbars.
My Solution
add styling to the scrollbars with ::-webkit-scrollbar and scrollbar-color
however ::-webkit-scrollbar also affects mobile which looks weird because that on mobile people expect to have the auto-hide zero-width scrollbar that comes by default.
The solution is to detect whether the scrollbar has a width in javascript when the page first loads and if it does then add the styles.
and here is what it looks like.![image](https://user-images.githubusercontent.com/44071655/94190935-c737a780-fe7a-11ea-8077-b6f2a70941b3.png)