Axel-- / Naut-for-reddit

A css theme for reddit.com
476 stars 345 forks source link

Use CSS @media width selectors to work on mobile browsers #113

Open ExE-Boss opened 7 years ago

ExE-Boss commented 7 years ago

By using CSS @media min-width and max-width selectors one can make a stylesheet apply a different layout based on the display size. This is used by Twitter’s Bootstrap to make the stylesheet work on both desktop and mobile.

External links:

Maltroth commented 7 years ago

Reddit does not accept the @media query. The stylesheet is simply denied when submitted.

sebj commented 7 years ago

Are you sure? We're using @media with max-width, min-width and pixel density queries with no issue on r/CompetitiveOverwatch.

Maltroth commented 7 years ago

Wow, my bad, last time I tried it didn't work, this is life changing.

ExE-Boss commented 7 years ago

If Naut manages to implement this before the CSS removal, it might be another reason for the Reddit admins to reconsider removing CSS.