Archived Nightmode should override subverse CSS if its colors are primarily bright ones. (ideasforvoat)
submitted ago by michigangster
Posted by: michigangster
Posting time: 5.4 years ago on
Last edit time: never edited.
Archived on: 2/12/2017 1:51:00 AM
Views: 443
SCP: 25
25 upvotes, 0 downvotes (100% upvoted it)
Archived Nightmode should override subverse CSS if its colors are primarily bright ones. (ideasforvoat)
submitted ago by michigangster
view the rest of the comments →
[–] FutureNipples ago (edited ago)
There's a major problem with the current CSS configuration and this is one of the side effects.
On reddit, the server would set specific 'flags' in the HTML code for users who are logged on, modded, post authors, subscribed, etc. CSS could use these to create their own rules. For example. show a little message if the user is unsubscribed or hide the upvote buttons for non-subscribers.
Unfortunately Voat doesn't do this. We'll use the example of dark mode for this. Instead of a simple client-side class assignment on an HTML element, changing from dark to light mode reloads the entire site and sends the use a new 'theme' as dark or light mode.
Custom CSS is unable to know that these settings have been changed and can not display the right styles.
TL;DR Reddit changes a word in the HTML which CSS can see and adjust the style accordingly. Voat doesn't do this, so CSS customization is very limited. Almost no logic can be applied to the style -- including changing colors to match dark/light mode.