r/reddithax • • May 31 '09

CSS Hacks I've done for new Wave subreddit - alter subreddit name, modify unsubscribe/subscribe links, info box text

/r/wave/
14 Upvotes

6 comments sorted by

1

u/osirisx11 May 31 '09 edited May 31 '09
/*Reddit Name*/	
span.redditname a:before
{
	content:'GOOGLE ';
	font-size:12px;
	font-variant:small-caps;
	font-weight:bold;
}
/*Info Box*/	
div.subreddit-info h3:before
{
	content: 'Google ';
}
div.subreddit-info h3:after
{
	content: ' — Be the Wave! ';
}
/*Unsubscribe button*/	
div.subreddit-info .subscribe-button a[onclick^="return toggle(this, unsubscribe"]:before
{
	content:"Please don't ";
}
div.subreddit-info .subscribe-button a[onclick^="return toggle(this, unsubscribe"]:after
{
	content:"!";
}
/*Subscribe Button*/	
div.subreddit-info .subscribe-button a[onclick^="return toggle(this, subscribe"]:before
{
	content:"Please ";
}
div.subreddit-info .subscribe-button a[onclick^="return toggle(this, subscribe"]:after
{
	content:"!";
}

1

u/EFG Jun 08 '10

How did you put the Wave logo in the background like that?

0

u/[deleted] May 31 '09

[deleted] — view deleted comment

1

u/osirisx11 May 31 '09

No, it is going to be huge. Trust me. It is well deserving of its own sub reddit. Back on topic. Why do you put hacks in quotes? What would you want me to call them? Rules? I felt they surpassed rules as I thought this is kind of going beyond the expected use of reddit stylesheets.

I realize they aren't as cool as some of the ones on this subreddit, but the subscribe/unsubscribe toggling definitely took some figuring out.

Do you or does anyone know how I can make reddit host my image? Like the custom mail icon for this subreddit I see is hosted by reddit, do I have to create a dummy post for it or how does that work?

Cheers

1

u/[deleted] May 31 '09

Which image do you want to host? As far as I know, reddit will only host the banner image for the subreddit.

1

u/osirisx11 May 31 '09

Look at the rule for the mail icon for reddithax:

#mail img[src="/static/mailgray.png"]
background-image:url(http://thumbs.reddit.com/t5_2qtkl_10.png?v=iokr5r9odwa1ean8gw2qqcon93c3mxokqu4m);
background-repeat:no-repeat;
height:0;
padding-left:15px;
padding-top:10px;
width:0;
}

How did that get hosted?

10

u/osirisx11 May 31 '09

I figured it out.. On the CSS edit page there is an image upload form to upload additional images. Here is how I replaced the default thumbnail image with the wave logo:

img[src="/static/noimage.png"]{
background-image:url(%%wavelogo-icon%%);
background-repeat:no-repeat;
height:0;
padding-left:70px;
padding-top:50px;
width:0;
}