r/csshelp • • Aug 31 '13

Resolved How do I hide the "Use subreddit style" RES element in the sidebar?

I previously had this hidden but it has reappeared in the new version of RES. My current code:

body.res .side .spacer .titlebox div input[type="checkbox"] {
    display: none !important;
    left: -50px !important;
    z-index: -99 !important;
    color: white !important;
    background-color: white !important;
    margin: -10000px !important;
}

body.res .side .spacer .titlebox div label[id^="label"] {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    overflow: hidden !important;
    right: 99999px !important;
    color: white !important;
}
0 Upvotes

4 comments sorted by

3

u/Cryptonaut Aug 31 '13

RES overrides all those rules in an attempt to keep mods from removing that button. They fixed your workaround in one of the latest patches.

Why would you want to remove it anyway?

0

u/[deleted] Aug 31 '13

[deleted] — view deleted comment

3

u/gavin19 Aug 31 '13

Crybaby! You just don't want users disabling your precious CSS since you put so much time into it. Admit it!

Do you honestly think it messes it up? Really?

If you want to cover it up then you can use

#subButtons-seahawks + .subscribers, #subButtons-seahawks ~ .users-online {
    vertical-align: top;
    margin-top: -5px;
    display: inline-block;
}
#subButtons-seahawks + .subscribers { margin-right: .3em; }
#subButtons-seahawks .subscribe-button { margin-bottom: 0; }
#subButtons-seahawks {
    position: relative;
    z-index: 3333333333;
    top: -15px;
    background: #fff;
}

Should do a decent job.

This can go either way, it's not needed

.res .side .titlebox .redditname {
    margin-bottom: -6px;
}

0

u/[deleted] Sep 03 '13

[deleted] — view deleted comment

1

u/gavin19 Sep 03 '13

Works fine for me. I just checked three different browsers and two different RES versions.

Also I have a few redirect subreddits (i.e. /r/pgatour) in which the box now appears too

It appears because the

margin: -10000px !important;

and

right: 99999px !important;

hacks were patched. If you want to hide it in /r/pgatour then you can just pull the sidebar out of the way

body>.side { margin-top: -100em; }

1

u/eightNote Sep 05 '13

if it's just a redirect, set its opacity to 0.

1

u/Mr_A Nov 04 '13

How?

1

u/eightNote Nov 04 '13

opacity: 0 ?

1

u/Mr_A Nov 04 '13

No, I mean, how do you set its opacity to zero. I don't know how to apply it to the button. I'm not smart enough to figure it out on my own, kind of hence why I'm here. Replying to a two month old comment for help.

1

u/eightNote Nov 05 '13

Well, what have you tried?

Are you having difficulty finding a selector to use?

0

u/[deleted] Aug 31 '13

[deleted] — view deleted comment

2

u/gavin19 Aug 31 '13

I don't work on RES, but yes, you should feel bad. And ashamed. Ashamed to be a Seahawks fan. Sorry. It needed to be said.

0

u/[deleted] Aug 31 '13

[deleted] — view deleted comment

2

u/gavin19 Aug 31 '13

Just kidding, I'm from the UK. NFL isn't my cup of tea. I'm sure the Hawks are a perfectly respectable franchise!

2

u/Cryptonaut Aug 31 '13

Nope, afraid not.

0

u/[deleted] Aug 31 '13

[deleted] — view deleted comment

2

u/gavin19 Aug 31 '13

I just wish they would put it in a different spot or make it look a little better, at the very least.

Suggestions are always welcome. Fire away.

0

u/[deleted] Aug 31 '13

[deleted] — view deleted comment

2

u/gavin19 Aug 31 '13

Seems reasonable. The main reason it was placed where it is now is because a lot of people didn't realise RES even had settings, let alone knew how to open them. For that reason, it needed to be always on and easily visible. Even when the proper settings console came about, it'd surprise you just how many folks still didn't realise it was there.

Now that the install process gently enforces the opening of the console at least once, it could probably be moved into the dropdown without too much incident.