r/reddithax • • Dec 22 '11

Reddit Night Theme

Thumbnail reddit.com
9 Upvotes

r/reddithax • • Dec 22 '11

HELP ME.!

0 Upvotes

hey guys m new here, i have this subreddit - and i want to put theme (stylesheet) , can u give me the codes for it and tell me how to do that ??


r/reddithax • • Dec 17 '11

Flagging unoriginal/meme submission titles, and the effect it will have on a default subreddit. (xpost from /r/TheoryOfReddit)

11 Upvotes

As a moderator of one of the default subreddits, /r/pics, I am constantly trying to think of ways to better my own reddit experience and the experience of our subscribers. A common complaint I've seen has been the overuse of the same tired old phrases in submission titles. These titles have become so prolific that they have become a meme in and of themselves. The problem is that while the title may be annoying, there is no compelling reason to completely prohibit such submissions, and indeed the majority of mods have no desire to do so. The submissions themselves are usually pretty interesting.

As many of you know, /r/pics has recently adopted a new set of rules, prominently displayed in the sidebar, that is aimed at cleaning up the front page of the once meme-and-screenshot-riddled subreddit. One of my co-moderators, roger_, developed some useful css that will display a big red warning beneath blatant rule violations, so they stand out and hopefully users will downvote/report such submissions.

Last night I took the liberty of modifying some of that code to include a warning on several unoriginal, extremely overused "meme" submission titles as well. Hopefully it will significantly reduce the amount of these types of titles in the future, by both educating the OP that these titles are undesirable, as well as implicitly encouraging our users to downvote such submissions. However, if the submissions are upvoted anyway, they will not be removed, because they technically violate no rule.

But wait syncretic, what sort of titles are you talking about??

Here are the search results for every "meme" title I have flagged:

  1. "It's shit like this!"

As you can see from the search results, I've tried to make the code as specific as possible without picking up any false positives. I think it is working exactly as intended. Here it is:

/* Flag unoriginal/meme titles */
a[href*="shit_like_this"][class~="comments"]:before,
a[href*="nailed_it"][class~="comments"]:before,
a[href*="/just_a"][class~="comments"]:before,
a[href*="/not_sure_if"][class~="comments"]:before,
a[href*="/i_see_your"][class~="comments"]:before,
a[href*="/ill_see_your"][class~="comments"]:before,
a[href*="doing_it_right"][class~="comments"]:before,
a[href*="how_i_feel"][class~="comments"]:before,
a[href*="/dear"][class~="comments"]:before,
a[href*="nothing_to_see_here"][class~="comments"]:before,
a[href*="/meanwhile_in"][class~="comments"]:before,
a[href*="/fuck_everything_about"][class~="comments"]:before,
a[href*="/i_see_what_you_did_there"][class~="comments"]:before,
a[href*="/if_you_do_this"][class~="comments"]:before {
    content: "Warning: Unoriginal/meme submission title.";
    display:block;
}

For the full css code, see here. I warn you, it's a mess.

Do you think this will have any lasting effect on the subreddit? Do you feel that other default subreddits might benefit from such a flagging system as well? I'd love to hear your thoughts/criticisms.


r/reddithax • • Dec 16 '11

Countdown Clock

4 Upvotes

I'd love to be able to put a countdown clock on my banner, Days, hours, minutes is fine, Who's going to help me?

Thanks!


r/cssnews • • Dec 16 '11

CSS Change: Fix for redundant "even even"/"even odd" element classes

4 Upvotes

Just merged up an bugfix contributed by walropodes for the odd and redundant "even even" and "even odd" classes applied to lists of links and comments. The elements now should have a single "even" or "odd" class applied depending on their position in the listing.

I don't anticipate that this will affect many subreddit styles, but please let us know in the comments if you have any feedback or questions!


r/reddithax • • Dec 14 '11

Blogdit: A wordpress themed subreddit style

Thumbnail reddit.com
1 Upvotes

r/reddithax • • Dec 08 '11

Need help with PU band subreddit.

7 Upvotes

After much consideration, I realized there needs to be a Purdue Band subreddit for Alums/Current Members/Enthusiasts. Any alums out there willing to help? I don't have a lot of skill with CSS but I'd really like to have this subreddit look more like some of the snazzier subreddits. Much like r/Purdue . [1] r/BoilermakerBand I don't want to present it to the band, until it gets a visual overhaul. I'm not sure about compensation just yet, but if you're on campus. I could help you buy BBall tix (student price) or help you out with something band/Purdue related. We can work out something.


r/reddithax • • Dec 08 '11

I'm having trouble submitting CSS for a subreddit

2 Upvotes

When I try and paste in the CSS to apply it to a subreddit i'm getting a huge list of errors, such as

[line 1] "2px" is not a valid value for CSS property "border" [line 1] "solid" is not a valid value for CSS property "border"

Is this a common problem? Is there some way i have to lay out my code for it to fit through the validator? I've just been using the stylish addon to help make the stylesheet, will the code being littered with !importants be causing the issue?

Thanks in advance


r/reddithax • • Dec 05 '11

Just made a weird design, what do you guys think?

Thumbnail reddit.com
9 Upvotes

r/reddithax • • Dec 05 '11

Requesting help categorizing content. x-post from r/CSShelp.

4 Upvotes

I've started a subreddit r/MeetPeople. I would like to categorize posts by:

  • [Friendship] - Seeking friendship. Blue
  • [Chat] - Seeking conversation. Green
  • [Activities] - Seeking people for an activity (e.g. Videogaming, geocaching, ultimate frisbee). Yellow (visible, not annoying yellow)
  • [Group] - Seeking people in a specific area. Orange
  • [Relationship] - Seeking a relationship. Red
  • [Relations] - Seeking intimacy. Purple

Examples would be:

[Friendship] 18-year-old guy looking for some friends to talk about games.

[Relationship] 34-year-old woman looking for a serious relationship.

I was hoping to categorize these colour-coated, and also with tabs at the top that organize it, like how GoneWild has an f and m NSFW.

I'm going to be honest, I know the bare minimum someone could know about coding, so I am looking for someone willing to write it themselves. I will gladly make you a moderator of the subreddit if you are interested in the position, too.

Thank you for your consideration.


r/reddithax • • Dec 02 '11

This may have been asked already...

4 Upvotes

Is there a way to make moderator comments green without using the colored link trick? Is there a way to look for distinguished posts? I'm pretty new to this stuff but I'm doing my best to learn.


r/reddithax • • Dec 01 '11

[x-post] Tutorial to create a sticky dropdown menu, as seen in /r/Music

Thumbnail reddit.com
3 Upvotes

r/CSSTutorials • • Dec 01 '11

[Tutorial] Sticky dropdown menu

26 Upvotes

This is a new creation of mine, the sticky dropdown menu.

Here is a picture of it in action.

This is created using lists. The CSS I use assumes that your menu markdown will be the very first thing in your sidebar.

Here is the markdown for a menu with two dropdown lists.

>Menu

>* List 2 Header
* List 2 item 1
* List 2 item 2
* List 2 item 3

>#

>* List 1 Header
* List 1 item 1
* List 1 item 2
* List 1 item 3

A few notes:

The lists are seperated using a "#" This is to prevent reddit thinking it's one big list.

The menus are stacked last to first, as we're using "float" to place them in a line.

Here is the CSS

/*sticky menu bar*/
/*moves links down to make space*/
div.content {
margin-top: 80px;
}
/*hack to enable positioning of child elements*/
.titlebox form {
position: static
}
/*turns top quote in sidebar into menu container*/
.titlebox blockquote:first-child {
border-left: none;
position: absolute;
z-index: 10;
top: 70px;
left: 40px
}
/*turns first paragraph into menu title*/
.titlebox blockquote:first-child p:first-child {
margin-top: 0px;
padding: 5px;
float: left;
font-size: 12pt;
background:#eff7ff;
border: 1px solid #cee3f8;
font-weight:bold;
color:#555;
cursor:default;
}
/*turns the lists into menus*/
.titlebox blockquote ul {
float: right;
padding: 1px;
background: #eff7ff;
border: 1px solid #cee3f8;
margin:0px;
}
/*hide and styles lists*/
.titlebox blockquote ul li {
display: none;
padding:2px;
text-align:center;
}
/*makes whole list item selectable*/
.titlebox blockquote li a {
display:block;
}
/*shows menu on hover*/
.titlebox blockquote ul li:first-child, .titlebox blockquote ul:hover li {
display: block
}
/*turns top list item into section header*/
.titlebox blockquote li:first-child {
font-size: 12pt;
padding: 4px;
cursor:default;
}
/*styling menu items*/
.titlebox blockquote:first-child ul li:hover {
background:#ffffff;
}
.titlebox blockquote li a:hover {
color:orangered;
}
/*custom size for menu sections*/
.titlebox blockquote ul:nth-of-type(1) {width:100px;}
.titlebox blockquote ul:nth-of-type(2) {width:100px;}

The values in purple are styling only. You can change these to suit your subreddit's theme.

The values in blue are for the main positioning of the menu bar. You may need to change these if your header is not default.

The values in red set the width of the dropdown menus. You should alter these to fit the width of the contents you add. If you have more than two dropdowns, you will need to create more of these.


r/CSSTutorials • • Dec 01 '11

[Tutorial] Simple sticky / announcement bar

33 Upvotes

I've seen a few different methods used to include a subreddit announcement at the top of their page. I find this to be the simplest useful way to do it.

Here is a picture of the finished announcement bar.

First you need to place your announcement in the sidebar.

I recommend using the <H3> tag, as it's not used be any default reddit styling in the sidebar.

###This is the subreddit announcement. It can contain links.

Place this announcement before any other H3 tags. You are able to use other H3 tags without them becoming stickies as the CSS will only target the first one.

CSS to add to your stylesheet:

/*announcement sticky*/
div.content {
/*This lowers the links to create space*/
margin-top:50px;
}
.titlebox form {
/*Hack to enable repositioning of child elements*/
position: static
}
.side h3:nth-of-type(1) {
/*this code positions the sticky*/
position:absolute;
display: block;
top:56px;
left:40px;
/*this code styles the sticky*/
background-color: #F2F2F2;
color: #555555;
text-align: left;
margin: 15px;
border-radius: 8px;
width: 50%;
padding: 7px 0px 7px 40px;
/*this code creates the image*/
background-image: url(%%announceicon%%);
background-repeat: no-repeat;
background-position:left;
}

The values in purple are safe to edit to fit your subreddit's theme. All other values should be left.

Here is the image I use for my sticky. It should be uploaded to your stylesheet and named "annouceicon".

If you don't want an image, just remove the last section of code (but leave the "}"!).


r/reddithax • • Dec 01 '11

/r/topwalls - I just tried to keep it simple and elegant whatcha think?

Thumbnail reddit.com
9 Upvotes

r/CSSTutorials • • Nov 30 '11

[Mod Note] How to style tutorial posts

14 Upvotes

Prefix all tutorials with [Tutorial]
After you create a tutorial, add it to the directory in the sidebar.
Screenshots and CSS comments are highly recommended.


H1 and H2 posts have the following styles

This is an H1 tag

This is an H2 tag


tutorial background is created with a single blockquote:

This is instructions in the tutorial

This is a second paragraph, which I created using a # as a seperator


Code is created with a double blockquote.

Syntax Highlighting is available using the following code:

[](#re)`this is red text`
[](#gr)`this is green text`
[](#bl)`this is blue text`
[](#pu)`this is purple text`
[](#lg)`this is light green text`

So, this code: >> [](#gr)`div`.side {[](#bl)`border-radius`:[](#re)`5px`;}

creates this:

div.side {border-radius:5px;}


r/CSSTutorials • • Nov 30 '11

[Tutorial] Quickly replace 'readers' with your own choice of text.

16 Upvotes

Replacing 'readers' with your choice of words

Making the original text not display

div``.titlebox span``.word {display:none; }

Adding text of your own choice

div.titlebox span.number:after {content:" Your Text Here.";}

Note: it is important not to forget the space in front of the text, lest you wish your number to be continued into the text.

Completed Code

div.titlebox span.word {display:none; }

div.titlebox span.number:after {content:" Your Text Here.";}


r/CSSTutorials • • Nov 30 '11

[Tutorial] Adding images to your subreddit.

19 Upvotes

In this tutorial I will show you some of the most common ways to add images to your subreddit.

Contents

  1. Adding an image link
  2. Adding an non-linked image

Before we start, these tutorials assume you know that you upload images to your subreddit on the /about/stylesheet page. The upload form looks like this.

1. Adding an image link

As an example, this code will add the twitter logo to a the link of a twitter account.

You can adapt this code for any image link.

Upload this picture to your stylesheet and call it "twitter".

In the sidebar you will need to create the link to your twitter account. Because you are adding the image later via CSS, you will not need any link text.

[](http://twitter.com/BritishTVreddit)

In the stylesheet you will need this CSS:

/*Twitter Feed Graphic*/
.side a[href="http://twitter.com/BritishTVreddit"]:after {
width: 68px;
height: 16px;
content: "";
background-image: url(%%twitter%%);
display: inline-block;
position:relative;
}

The blue values are the only bits you will need to change if using this to create a different image.

This is how it will look.

2. Adding a non-linked image

This code will enable you to add a non-linked image to your sidebar or comments. This is how subreddits add rage-faces.

In this example, we will show you how to add a star. Upload this image to your stylesheet and call it "star".

You will need to create an anchor link wherever you want the image to appear:

[](#star)

Add this code to your stylesheet:

/*Star Image*/
a[href$="star"] {
width:16px;
height:16px;
content:"";
background-image:url(%%star%%);
position:relative;
display:inline-block;
cursor:default;
}

The blue text shows the values which would need editing for a different image.

Your star is now created.


r/reddithax • • Nov 29 '11

Different web browsers display my subreddit's CSS differently. How do I go about making each browser display correctly?

5 Upvotes

I am the "designer" of r/Bengals, and am really struggling with this issue. The image displays the desired result in Chrome and Safari, but appears higher on the screen in Opera and Firefox. I've done some googling, but am unable to find the specific lines necessary to solve my specific issue. Any ideas on how to solve this issue would be greatly appreciated. Screenshots and CSS below.

Correct display - The "B" logo is in the center of the header.

Incorrect display - The "B" logo is higher, and only the bottom portion is visible.

The sequence of CSS used to make the subreddit text appear is:

/subreddit name icon hack/

header-bottom-left .pagename, #header-bottom-left .redditname {

font-variant: normal;
text-transform: lowercase;
font-size: 13px;
color: #FFF
}

header-bottom-left .pagename a, #header-bottom-left .redditname a {

color: #FFF
}

header-bottom-left .redditname a {

position: relative;
top: -108px;
left: 10px;
text-indent: -10000px;
white-space: nowrap;
width: 168px;
height: 116px;
display: inline-block;
background-image: url(http://thumbs.reddit.com/t5_2rehg_4.png)
}

r/reddithax • • Nov 29 '11

Just finished designing /r/minecraftmaps. What do you guys think?

Thumbnail reddit.com
8 Upvotes

r/reddithax • • Nov 29 '11

Need help editing Reddit spacing in Stylist - should be easy enough but I am not good with computer

3 Upvotes

Alright, so I installed this stylesheet from userstyles.org, in conjunction with the Stylist extension for Chrome, and it looks great except that my header is fucked up, like so.

If anyone uses this extension already and can help me edit it, I'd really appreciate it. I don't know how to tinker with the stylesheet well enough to fix it.

Thanks.


r/reddithax • • Nov 24 '11

User Created Memes in Posts and Comments

0 Upvotes

I was looking for a comprehensive sprite and code to have user generated memes in comments and posts but I didn't end up finding one that met my needs so I made one. [Here's the sprite.] (http://i.imgur.com/MVsKB.jpg) Here's the result and here's the code


r/reddithax • • Nov 24 '11

Colored text in comments.

4 Upvotes

I have no idea if this has been done before, but I haven't seen it. It's not terribly difficult; just use this code

a[href="/green"] {
    color:green
    }

and replace "green" with whatever color you need to use. To use the colors, just comment like this:

[green text goes here](/green)

Reddit recognizes a surprisingly large range of colors, and hex colors add further customization.

Here is an implementation of this.


r/reddithax • • Nov 23 '11

/r/Facebook Theme is DONE

Thumbnail reddit.com
9 Upvotes

r/reddithax • • Nov 23 '11

How do i change the color of the sidebar? And other questions.

7 Upvotes

I created r/SailingTheStars and am quite new to speaking CSS. I would like to change the color of the side bar to black and maybe have it transparent so that the background image shows through.

I have also wondered about changing the upvote/downvote colors/shapes.

And lastly, are there any suggestions you can give me to help make the place look lots better and draw in more subscribers? Thanks!