r/csshelp • • Jul 20 '15

/r/sacredgeometry Code for an all black background in res night mode.

I would love some help on working in nightmode with css. I don't know how to label things I want to change that are easily changed in normal mode.

6 Upvotes

7 comments sorted by

1

u/gavin19 Jul 20 '15

The background of the page is black (well, #222) in nightmode by default.

.res.res-nightmode,
.res.res-nightmode .content {
    background: #000;
}

will make it actually black.

Posts/comments will have alternating background colours though.

1

u/atticusmass Jul 20 '15

I'm actually having a problem with my flair. Thats why I wanted to set the background to black. In regular mode, the flair comes up with no background, but in night mode, the flair comes up with a grey background muddling the color of the shapes. In the spritesheet file, I had set them to have a transparent background so I don't know why they show up like that.

1

u/atticusmass Jul 20 '15

Also there are some blue fonts that I can't seem to change, especially in the submit buttons

2

u/gavin19 Jul 20 '15

For the flairs

.res.res-nightmode .flair {
    background-color: transparent;
}

and the submit links

.res-nightmode .submit .morelink a {
    color: #ff0;
}

1

u/atticusmass Jul 20 '15

Great! Thanks. Is there a way to get rid of the grey background in the sidebar?

1

u/gavin19 Jul 20 '15

Change

.res-nightmode .side {background-color: #000!important}

to

.res-nightmode .side
.res-nightmode .side .titlebox {
    background: #000;
}

and also add

.res-nightmode .side .titlebox .toggle.flairtoggle,
.res-nightmode .titlebox .toggle,
.res-nightmode .leavemoderator {
    background: none;
}

to cover the flair/style/moderator toggles in the sidebar.

1

u/atticusmass Jul 21 '15

Ok. Thanks for the all the help!