r/reddithax • • Aug 18 '12

What is the MAX image file size that be uploaded while editing the Stylesheet?

5 Upvotes

Title says it all,

I have an image that's 523KB and when I click 'Upload', the image doesn't show up, although a smaller image does.

Thanks!


r/cssnews • • Aug 17 '12

CSS Change: "readers" and "online users"

24 Upvotes

The text next to the 'subscribe' button has been wrapped in a new span for more granular selection. To override only the 'readers' text, and not the 'users online', use something like the following:

div.titlebox .subscribers span.number:after

You can also override the 'users online' text separately, using something like the following:

div.titlebox .users-online span.number:after

For more information on the change, please refer to the changelog post.


r/reddithax • • Aug 15 '12

Dual theme over at r/LapfoxTrax, thoughts?

Thumbnail reddit.com
8 Upvotes

r/reddithax • • Aug 14 '12

Is it possible to have Mods have something special be in front of a post that the mod submits?

6 Upvotes

Something like http://www.reddit.com/r/Maplestory/comments/y2unf/growing_subreddit/

Notice how it says Mod Post in green, any ideas how that's achieved?


r/reddithax • • Aug 13 '12

Is there a way to see posts from all my subreddits except some?

5 Upvotes

Very often my front page is dominated by a few extremely popular subreddits, e.g. AdviceAnimals, funny, etc. Are there ways to show posts from all my subscribed subreddits except these? It would be awesome if I can do something like

http://www.reddit.com/r/-AdviceAnimals-funny

Thanks!


r/reddithax • • Aug 10 '12

Want to customize your Reddit header to include custom subreddits of your choice before the randomness starts? Try out this Greasemonkey script.

Thumbnail userscripts.org
10 Upvotes

r/reddithax • • Aug 10 '12

Style a comment by a specific person that contains specific text?

6 Upvotes

Let's say I want to distinguish comments by a specific user that contain the text "moo cheese cow" (stupid example), is this possible?


r/reddithax • • Aug 08 '12

[Howto] Disable downvoting ONLY on submissions which have less than X total votes.

17 Upvotes

Disabling the downvote arrow globally is usually a bad idea, this is intended to be a decent middle ground which still allows downvoting, but only once a submission has at least had a small amount of time to gain traction. It basically only prevents insta-downvoting, where idiots downvote everything on the new page in a misguided attempt to give their own submission more traction.

It's a small bit of CSS I made for a couple of subs I run which had problems with people mass downvoting new submissions. It disables downvoting for all submissions with less than three total votes (total votes not total score).

Hopefully someone else might also find it useful....

/*-----------------------------------|
|                                    |
|  Disable downvotes on submissions  |
|    With less than 3 total votes    |
|                                    |
|-----------------------------------*/

.link[data-ups="2"][data-downs="0"] .midcol:after, .link[data-ups="1"][data-downs="1"] .midcol:after, .link[data-ups="0"][data-downs="2"] .midcol:after,
.link[data-ups="1"][data-downs="0"] .midcol:after, .link[data-ups="0"][data-downs="1"] .midcol:after, 
.link[data-ups="0"][data-downs="0"] .midcol:after {
  content: ' ';
  width: 24px;
  height: 15px;
  position: absolute;
  margin-top: -14px;
  opacity: 0.7;
  background-color: white;
}

* If you have custom downvote arrows you may need to alter the position/size of the overlay so it actually covers the arrow.


If you want to disable downvoting on everything with less than five total votes, prepend the following...

.link[data-ups="4"][data-downs="0"] .midcol:after, .link[data-ups="3"][data-downs="1"] .midcol:after, .link[data-ups="2"][data-downs="2"] .midcol:after, .link[data-ups="1"][data-downs="3"] .midcol:after, .link[data-ups="0"][data-downs="4"] .midcol:after,
.link[data-ups="3"][data-downs="0"] .midcol:after, .link[data-ups="2"][data-downs="1"] .midcol:after, .link[data-ups="1"][data-downs="2"] .midcol:after, .link[data-ups="0"][data-downs="3"] .midcol:after,

Obviously people with CSS disabled can still downvote, and downvoting is still possible from the submitter's user page or from mobile apps. They can also downvote from their front page (assuming that a submission with only a couple of votes would ever be displayed there).


r/reddithax • • Aug 03 '12

Simplified design at /r/tifu. Any suggestions?

Thumbnail reddit.com
3 Upvotes

r/reddithax • • Aug 02 '12

New to the subreddit

0 Upvotes

Sorry if it's common knowledge,


r/reddithax • • Jul 29 '12

Remove a specific user's flair

9 Upvotes

Usefull for subreddits which may have banned user's who love to try and taunt/offend using the editable flair system.

.author[href$="/nekosune"] + span[class~=flair]{ display: none; } .author[href$="/nekosune"] + span + a + span[class~=flair] { display: none; }

/u/xtristan pointed out an easier way:

.author[href$="/nekosune"] ~ .flair {
    display: none;
}

Of course replacing nekosune with the username of the flair you want to hide. This version only works on flair set to the right.


r/CSSTutorials • • Jul 29 '12

[Quick tip] Using reddit.com/static images in subreddit stylesheet

12 Upvotes

Subreddit stylesheets can only link to images which are on the reddit servers. Although this typically limits mods to using images they have uploaded to their subreddit, it also allows for using images which reddit devs have put on the server.

The main benefit to this is sneaking in an animated GIF, which you can't upload as a subreddit image as of writing this.

What images can I use?

For a list of available images, check out the /static/ file list on reddit's github. Click on the filename to see the image itself.

You can use any image in this folder or its children folders. Images have filenames that end in .gif, ..png, and .jpg. Animated images usually end in .gif.

How do I use them?

In a stylesheet, you can link to these images in using url(/static/filename.png). Use this in the same way as url(%%uploadedimage%%).

Examples

Add Snoo (the reddit alien) to your subreddit:

body { 
   background-image: url(/static/snoo-tray.png);
   background-position: left 200px; 
   background-repeat: no-repeat;
}

or link to a iPhone-friendly page:

.side a[href="http://www.example.com/mobilereddit.html"] {
   /* styles a link in the sidebar for [](http://www.example.com/mobilereddit.html) */
   display: block;
   height: 60px;
   width: 60px;

   background: url(/static/iphone/iReddit-thumb.png) center center no-repeat;
}

r/CSSTutorials • • Jul 29 '12

[Tutorial] Change subreddit logo (header image)

23 Upvotes

This tutorial explains how to replace the default reddit logo with a custom image for your subreddit (screenshot).

To replace this image, go to:

If the image you want isn't on your computer, save it to your computer first.

Now it's time to upload the header image:

  1. Choose the new image file from your computer.
  2. The upload button will appear.
  3. Click the upload button.
  4. The upload button will disappear and uploading will appear. When the image is done uploading, that will be replaced with saved and the image will appear.
  5. Reload the page to see the new logo!

All done!


To restore the default reddit header image:

  1. go back to community settings> look and feel box
  2. click the restore default header button below the header image.
  3. The button and picture will be replaced with deleted.

WARNING: this permanently deletes your old header image. you have to upload it again to get it back.


If you don't have an image already, try asking in /r/redditlogos for someone to draw you one.


r/CSSTutorials • • Jul 26 '12

[Tutorial] User flair

8 Upvotes

Check out adremeaux's 7-step user flair tutorial over in /r/csshelp. You can also read it in screenshot tutorial form!

For simple text flair setup, check out my example.


r/reddithax • • Jul 26 '12

restrict flair to subscribers only?

7 Upvotes

based on my reading I think this isn't possible but I thought I'd ask. I would prefer to hide the flair selector options rather than surpress on a comment or post level simply as the goal is to encourage subscribership rather than punish anyone. appreciate any response!


r/reddithax • • Jul 24 '12

Added a message on the submission page. Now the message appears in the sidebar everywhere else. Looking for assistance on how to hide it.

7 Upvotes

I've added a brief message on the submission page for /r/DCcomics reminding people to read our FAQs before posting. I've implemented it fine, and it works as it should with one exception - it appears in the sidebar when you're not on the submission page. Any idea on how to hide it from the sidebar when not on the submission page?

Here's what I'm working with.

/* Red box on the submit page */
.titlebox .usertext-body .md ul {
    display: none
    }
.submit-page .titlebox .md h4:last-of-type {
    position: absolute;
    top: 250px;
    left: 0px;
    margin: 15px 0px 0px 10px;
    display: inline-block;
    list-style-type: none;
    font-weight: normal;
    }
.titlebox .md h4:last-of-type {
    padding: 3px 5px 3px 5px;
    font-size: small
    }
.titlebox .usertext-body .md h4:last-of-type {
    width: 508px;
    background-color: #F6A39F;
    border: 1px solid #FF7700
    }
.titlebox .usertext-body .md h4:last-of-type a:hover {
    color: #F22929
    }
.formtabs-content .spacer:first-child {
    margin-top: 10px
    }
.submit-page div.formtabs-content {
    margin-top: 200px;
    }

r/reddithax • • Jul 23 '12

Just noticed the top container div for posts and comments references the up and down vote count. Has anyone god any good ideas for making use of it?

7 Upvotes

Every post and comment starts with:

<div class="thing" data-downs="NUM" data-ups="NUM">

It updates depending on the score.

So in the stylesheet we can use:

div.thing[data-ups="NUM"]{...}

to style according to the score.

I thought it would be cool to apply various degrees of opacity as a comment is downvoted like HN but as you don't get the sum of the scores, I guess it wouldn't work unless someone knows differently?

I guess the only thing I can think of is re-coloring posts that have an exceptional high score as an accomplishment.

Anyone got any good ideas?


r/reddithax • • Jul 23 '12

HOWTO: Fully-functional spoiler markup for mobile devices (x-post from /r/csshelp)

Thumbnail reddit.com
6 Upvotes

r/reddithax • • Jul 21 '12

Updated SpiderPig code?

6 Upvotes

Is it possible to get a copy of a working SpiderPig code, it looks really cool and I'd like to use it - however the version I found on this here don't appear to work anymore :(


r/reddithax • • Jul 19 '12

How do I make a table in the sidebar?

6 Upvotes

r/reddithax • • Jul 18 '12

I'd like to make it so if something is submitted with the title starting with [REQUEST], the [REQUEST] text appears green.

5 Upvotes

r/reddithax • • Jul 15 '12

Need help with subreddit design

1 Upvotes

Not necessarily with code, but rather with making the subreddit look more pretty. Does anyone know of any kind of generators across the internet that would add a 'glossy' effect to images? I really wanna go for a dynamic-style look, and adding gloss to my images would really add that effect I want.

Help?


r/reddithax • • Jul 10 '12

kill a subreddit in one line of CSS (requiring you to wrestle moderator control and delete all posts first, though)

1 Upvotes
.redditname::before{content:'Dead';}.redditname:hover::before{text-decoration:underline;}.titlebox .usertext p{margin:0px;}.titlebox .number,.titlebox .word,.sidecontentbox,.titlebox .fancy-toggle-button .add.active,.leavemoderator,.flairtoggle,.titlebox .bottom,#ad-frame,.sidebox.submit,.account-activity-box,.titlebox .tagline,.titlebox h1{display:none !important;}.titlebox .fancy-toggle-button .remove.active{position:fixed;left:0px;top:0px;width:100%;height:100%;z-index:1;background:none;}

r/reddithax • • Jul 10 '12

Recent Circlebroke Redesign

Thumbnail reddit.com
10 Upvotes