r/csshelp • u/IAmAnAnonymousCoward • Sep 10 '11
Replace "+ frontpage" with "subscribe" and "- frontpage" with "unsubscribe"
Any help is appreciated.
1
Sep 10 '11
Now, while this is potentially do-able in modern browsers... Why?
I understand the want for customization, however you're affecting usability. Users on reddit are trained to use a specific button, and you want to change it?
Odds are, you'll just prevent people from front-paging your subreddit.
That being said, if you have a logical reason behind it I will investigate for you.
6
u/IAmAnAnonymousCoward Sep 10 '11
you're affecting usability
I try to restore usability. The current button is confusing for new users, while I don't think anyone would be confused by "subscribe" and "unsubscribe".
Odds are, you'll just prevent people from front-paging your subreddit.
I'd be happy to run this experiment.
2
Sep 18 '11
Thanks for the css! I would prefer people go out of their way to visit the subreddit instead of just viewing it on the front page. So I labeled mine, "Follow this reddit" instead. The word "subscribe" kind of reminded me too much of those door-to-door magazine subscriptions, where you get stuck with constant advertisements and magazines you don't want.
2
u/IAmAnAnonymousCoward Sep 18 '11
Lol, yeah. A lot of websites use it though, I guess I was inspired by YouTube.
1
u/eri_pl Sep 10 '11 edited Sep 10 '11
.option.active
{
font-size: 0 !important;
padding-top: 11px !important; /* controls box size */
padding-bottom: 4px !important;
}
.option.active:after
{
font-size: 10px;
}
.option.active.remove:after
{
content: "unsubscribe";
}
.option.active.add:after
{
content: "subscribe";
}Works in my Firefox. Unfortunetely it uses absolute font size.
edit OK, I have a better one: .option.active { color: transparent !important; }
.option.active:after
{
color: #fff !important;
margin-left: -4.5em;
}
.option.active.remove:after
{
content: "unsubscribe";
}
.option.active.add:after
{
content: "subscribe";
}2
u/OTACON120 Sep 10 '11 edited Sep 10 '11
Wouldn't that CSS in your edit return a validation error since "transparent" isn't a valid value for "color"?
1
u/eri_pl Sep 10 '11
Sorry, too much Firefox. In which browser it doesn't work, BTW? (It's a CSS3 thing, but quite old, I think.)
RGBA(0,0,0,0) should probably work in all modern browsers.
1
u/OTACON120 Sep 10 '11
Well, I didn't actually check it in any browser other than FF 6.0.2. I was referring to the fact that reddit would throw up a validation error. I didn't think about checking RGBA, though. I'd think that should work. :)
3
u/OTACON120 Sep 10 '11
My shot at it: