0
3

[–] Teh_Sauce_Guy 0 points 3 points (+3|-0) ago 

THIS IS SO GOOD NOW I CAN FINISH /v/sciencecss!

0
3

[–] KL1 0 points 3 points (+3|-0) ago 

Great! Now /v/pics need to implement this instead of their current light only css.

[–] [deleted] 0 points 2 points (+2|-0) ago 

[Deleted]

0
5

[–] j_ [S] 0 points 5 points (+5|-0) ago  (edited ago)

Well… you shouldn’t, because those users want night mode. The change mentioned in this post allows you to cater to both groups of users.

But if you really want, you could load the light stylesheet on top of the dark stylesheet, using

@import url(https://voat.co/content/Light);

as the very first line of your custom CSS.

For users not using night mode, this means the light stylesheet is called twice.

[–] [deleted] 0 points 1 points (+1|-0) ago 

[Deleted]

0
1

[–] Liker 0 points 1 points (+1|-0) ago 

Thank you. I know Nightmode is a preference that people want, however this is only a temporary fix until I further the CSS of the subverse. Thank you :)

0
1

[–] Mumberthrax 0 points 1 points (+1|-0) ago 

I'm a CSS noob. I'm using a stylesheet from /v/typogra which does not yet use this. Is this something I could easily just drop into the stylesheet someplace to nullify all changes when the user is in night mode?

0
2

[–] j_ [S] 0 points 2 points (+2|-0) ago 

Hm. Probably not the greatest idea, but you could add .light to the front of every rule in your custom CSS. This would cause each rule to only apply when the user is not in night mode.

Effectively, in normal mode you'll see Typogra; in night mode, you'll see the default dark stylesheet without any of Typogra's rules.

0
2

[–] Mumberthrax 0 points 2 points (+2|-0) ago  (edited ago)

ah hmm. Maybe I'll just wait until @nurdoidz pushes a unified typogra/typogradark css onto github, and use that. I don't want to accidentally break something, or do something that is a bad idea. :P

Thank you for the response!