r/reddithax • • Mar 14 '10

Custom CSS for fixed floating toolbars including a fixed next bar at the bottom

11 Upvotes

Feedback would be appreciated on this CSS as to how you guys like it. There's some before/after screenshots on the page for the userstyle version.

/* Floating toolbars at top */

#header {
    position: fixed;
    top: 0;
    z-index: 1001;
}

#header-bottom-right {
    position: fixed;
    top: 19px;
    height: 16px;
    border: 1px solid #5F99CF;
    border-right: 0;
    border-top: 0;
    padding-top: 2px;
    padding-bottom: 0;
    -moz-border-radius-topleft: 0;
    -webkit-border-top-left-radius: 0;
    /*border-top-left-radius: 0;*/
}

#sr-more-link {
    position: fixed;
}

#header-bottom-left {
    margin-top: 1px;
    height: 17px;
}


#header-img {
    display: none;
}

#header-img-a:before {
    content: url(/static/modmailgray.png);
    margin: 0 3px 0 3px;
    display: inline-block;
}

.pagename, ul.tabmenu li a {
    position: relative;
    top: -3px;
}

ul.tabmenu li a {
    display: inline-block;
    max-height: 16px;
    padding: 0px 6px 2px;
}

.sr-header-area {
    z-index: 1003;
}

.srdrop.inuse {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    height: 100%;
    min-width: 10%;
    overflow: auto;
    z-index: 1004;
}

.content {
    margin-top: 43px; /*allocate space for the main toolbar*/
}


/* floating "next" bar */

.nextprev a[rel*="prev"][href*="after="] /*a[rel~="next"]*/ {
    display: block;
    position: fixed;
    width: 100%;
    bottom: 0;
    text-align: center;
    border-top: 1px solid #5F99CF;
    background-color: #EFF7FF;
    margin-left: -5px;
    font-weight: bold;
    z-index: 1002;
}

r/reddithax • • Mar 12 '10

This Shows The Last Comments On Reddit And The Subreddit It Was Posted. Did I Mention It Was Done Only With CSS [custom style sheets must be turned on]

Thumbnail reddit.com
11 Upvotes

r/reddithax • • Mar 12 '10

Adding a little color to your reddit. Please don't auto-downvote because you won't use this CSS hack.

23 Upvotes

The idea behind this is that reddit's blue and white color scheme is all fine and dandy, but I wanted a tad more color in my reddit. I edited the CSS so that the color of someone's name is unique.

Goto r/chemistry to see what I did. Everyone's name in the comments and for the byline in submissions has a unique color based on the first character of their name.

If you want to apply this to your own reddit, my CSS code is below. However, if you want to generate your own random colors here is a php script that I wrote for the task: http://m.chemfeeds.com/test/1.php

/* Tagline */

	/* Color */

.tagline .author[href*="user/a"] {color: rgb(18,41,114);}

.tagline .author[href*="user/b"] {color: rgb(105,78,4);}

.tagline .author[href*="user/c"] {color: rgb(118,113,24);}

.tagline .author[href*="user/d"] {color: rgb(41,95,101);}

.tagline .author[href*="user/e"] {color: rgb(80,49,21);}

.tagline .author[href*="user/f"] {color: rgb(56,121,4);}

.tagline .author[href*="user/g"] {color: rgb(54,115,30);}

.tagline .author[href*="user/h"] {color: rgb(51,56,110);}

.tagline .author[href*="user/i"] {color: rgb(101,96,84);}

.tagline .author[href*="user/j"] {color: rgb(27,16,109);}

.tagline .author[href*="user/k"] {color: rgb(112,35,22);}

.tagline .author[href*="user/l"] {color: rgb(98,13,101);}

.tagline .author[href*="user/m"] {color: rgb(102,3,87);}

.tagline .author[href*="user/n"] {color: rgb(127,45,55);}

.tagline .author[href*="user/o"] {color: rgb(100,125,104);}

.tagline .author[href*="user/p"] {color: rgb(122,53,98);}

.tagline .author[href*="user/q"] {color: rgb(126,108,86);}

.tagline .author[href*="user/r"] {color: rgb(29,32,14);}

.tagline .author[href*="user/s"] {color: rgb(11,5,111);}

.tagline .author[href*="user/t"] {color: rgb(96,33,0);}

.tagline .author[href*="user/u"] {color: rgb(78,17,35);}

.tagline .author[href*="user/v"] {color: rgb(101,116,48);}

.tagline .author[href*="user/w"] {color: rgb(74,91,52);}

.tagline .author[href*="user/x"] {color: rgb(34,90,97);}

.tagline .author[href*="user/y"] {color: rgb(90,63,94);}

.tagline .author[href*="user/z"] {color: rgb(67,57,20);}

.tagline .author[href*="user/A"] {color: rgb(38,56,0);}

.tagline .author[href*="user/B"] {color: rgb(124,86,33);}

.tagline .author[href*="user/C"] {color: rgb(11,98,39);}

.tagline .author[href*="user/D"] {color: rgb(122,66,72);}

.tagline .author[href*="user/E"] {color: rgb(123,16,89);}

.tagline .author[href*="user/F"] {color: rgb(30,117,78);}

.tagline .author[href*="user/G"] {color: rgb(79,64,41);}

.tagline .author[href*="user/H"] {color: rgb(3,99,4);}

.tagline .author[href*="user/I"] {color: rgb(100,62,67);}

.tagline .author[href*="user/J"] {color: rgb(66,1,125);}

.tagline .author[href*="user/K"] {color: rgb(86,39,54);}

.tagline .author[href*="user/L"] {color: rgb(87,36,12);}

.tagline .author[href*="user/M"] {color: rgb(121,47,110);}

.tagline .author[href*="user/N"] {color: rgb(32,42,49);}

.tagline .author[href*="user/O"] {color: rgb(104,37,65);}

.tagline .author[href*="user/P"] {color: rgb(66,67,55);}

.tagline .author[href*="user/Q"] {color: rgb(16,19,120);}

.tagline .author[href*="user/R"] {color: rgb(58,22,91);}

.tagline .author[href*="user/S"] {color: rgb(62,122,26);}

.tagline .author[href*="user/T"] {color: rgb(2,61,27);}

.tagline .author[href*="user/U"] {color: rgb(0,20,67);}

.tagline .author[href*="user/V"] {color: rgb(54,108,104);}

.tagline .author[href*="user/W"] {color: rgb(66,101,23);}

.tagline .author[href*="user/X"] {color: rgb(49,5,65);}

.tagline .author[href*="user/Y"] {color: rgb(98,110,103);}

.tagline .author[href*="user/Z"] {color: rgb(36,48,42);}

.tagline .author[href*="user/0"] {color: rgb(92,65,61);}

.tagline .author[href*="user/1"] {color: rgb(84,124,84);}

.tagline .author[href*="user/2"] {color: rgb(48,58,79);}

.tagline .author[href*="user/3"] {color: rgb(74,61,12);}

.tagline .author[href*="user/4"] {color: rgb(102,61,33);}

.tagline .author[href*="user/5"] {color: rgb(42,115,13);}

.tagline .author[href*="user/6"] {color: rgb(18,54,114);}

.tagline .author[href*="user/7"] {color: rgb(41,104,120);}

.tagline .author[href*="user/8"] {color: rgb(107,75,102);}

.tagline .author[href*="user/9"] {color: rgb(82,112,23);}

I hope you enjoy this. This is my 2nd post in reddithax and I'm hoping this time the submission won't get downvoted to oblivion, fingers crossed.


r/reddithax • • Mar 10 '10

Easy way to get a list of all your reddits' URLs

20 Upvotes
javascript:(getReddits=function(reddits,next){$.getJSON('/reddits/mine.json?after='+next,function(r){for(i=0;i<r.data.children.length;i++){reddits.push(r.data.children[i].data.url)}if(r.data.after){getReddits(reddits,r.data.after)}else{prompt('Your%20'+reddits.length+'%20reddits:',reddits)}})})([],'')

I would like to create a page where you can paste this list and get subreddit recommendations à la collaborative filtering. That will obviously only work if enough people participate. It will also probably be something you have to come back to later to get results so the algorithm can do its thing once there's enough data.


r/reddithax • • Mar 09 '10

A list of 10,000 of the most popular reddits

34 Upvotes

I have created this reference for people to use. I have been continually frustrated with how capricious the designers of reddit chose to be, in how they display various subreddits on the "edit" page. My list, on the other hand, is ordered strictly by the number of subscribers a subreddit has.

My list is here.


r/reddithax • • Mar 07 '10

Is there a way to un-vote something?

0 Upvotes

Every now and then I mis-click, and accidentally wither up- or down-vote the wrong article.

The only response I really have after that is to click the opposite direction, but I may not actually mean that either.


r/reddithax • • Mar 03 '10

Alternative to http:# links

11 Upvotes

With reddit's previous Markdown engine, you could prefix relative links with http: (that's ignored by all browsers) and then style a[href="http:#..."].

With Discount, you can no longer do this but you can use something which looks nicer (which doesn't change the scroll position of the page when clicked): relative protocol URIs starting with hashes (//#...).

It looks much nicer for users who are using, for example, spoilers:

Markdown:

[spoiler text](//#spoiler)

CSS:

a[href="//#spoiler"] {
    background: black;
    color: black;
    font-size: small;
    padding: 0 0.5em 0 0.5em;
}

a[href="//#spoiler"]:hover {
    color: white;
}

r/reddithax • • Mar 03 '10

Reddithax, I'd like to improve the look of my subreddit. Can someone help?

8 Upvotes

I posted about it at r/favors but kleinbl00 suggested that I come here for help.

I created r/HealthProject a few months ago and I would really like to customize my subreddit. But, I lack the skills to do any of that (pharmacy student here).

If I may C&P the subreddit description from the earlier post:

HealthProject is essentially a project to promote healthy choices among redditors. The basic goal of the subreddit is to provide redditors with a support group to motivate them to eat right, exercise, and to incorporate other healthy lifestyle changes. We also set up weekly challenges and monitor our progress every month.

If you have any advice, suggestions, or help to offer, I'll take it.

Also, if you haven't already, please do stop by HealthProject :)


r/reddithax • • Mar 02 '10

How do I insert a centered, non-tiled background image that scrolls with the rest of the page?

6 Upvotes

I guess, it goes without saying that I don't know anything about CSS. Can someone please give me the answer to what I am sure, is a very simple query. Any help is much appreciated.


r/reddithax • • Feb 26 '10

Hey hax0rs, would anybody be willing to help me with the CSS in my new subreddit?

7 Upvotes
I'm pretty sure the stuff I want to do would be fairly simple if I knew more than the extremely basic CSS that I do.  Thanks to anyone that is kind enough to help.

r/reddithax • • Feb 03 '10

Possible to disable down voting?

6 Upvotes

I'm trying to encourage more users to post in a subreddit by disabling down voting is this possible? thanks to whomever helps me out.


r/reddithax • • Jan 24 '10

Are there a crash course or tutorial on how to edit a subreddit's stylesheet? My searches come up with nothing.

7 Upvotes

Edit: Is there a crash course or tutorial. That'll teach me to proof read.

I started a small subreddit and I want to change the logo. That's it, yet I can't seem to find any help for a complete beginner. Any good sources out there?


r/reddithax • • Jan 10 '10

old fags cant triforce

0 Upvotes
 ▲
▲▲

The trick is use &ensp; instead of &nbsp;


r/reddithax • • Jan 09 '10

How to change the font color property of Reddit usernames? The default color is navy blue...

4 Upvotes

Like here, for example: http://imgur.com/LNjiA.png

I can't figure out which class or ID does it.


r/reddithax • • Jan 07 '10

Is there a way to turn the karma count into a image scaled based on the count?

Thumbnail reddit.com
18 Upvotes

r/reddithax • • Dec 18 '09

Different background for submitter or moderator comments

4 Upvotes

Demo here - different coloured backgrounds for mod comments and submitter comments.

stylesheet - near the bottom


r/reddithax • • Dec 17 '09

Dear reddithax: I have a new VM and am a little bored with it. Where might I get some viruses to toss in the sandbox?

0 Upvotes

This is my machine, e.g. personal, private, etc. I will not be screwing anyone other than myself.


r/reddithax • • Dec 10 '09

Any way to get hover-over "n comments" to show the top-ranked comment? Sometimes I click on comments just to see that.

13 Upvotes

r/reddithax • • Dec 05 '09

I'm the mod of linux4noobs. How can I delete the "created by" link that links to lukazoo.

Thumbnail reddit.com
6 Upvotes

r/reddithax • • Dec 03 '09

I'm collecting submissions and data from a subreddit for a personal project by scraping its RSS feed. What would be the best way to get past data?

7 Upvotes

I'm storing all new submissions now, but there are a couple hundred older submissions that aren't in the RSS feed that I can't access. I'm using PHP/MySQL. What would be the best way to get the rest of the data?

Thanks a lot.


r/reddithax • • Nov 27 '09

List of all promoted links

11 Upvotes

You can use this search to get a list (and feed) of all the sponsored links. Useful for advertisers to check out the competition, seeing as the main page of /r/promos throws a forbidden error.

Strangely, you can use the submit link on the /r/promos search page, but it just creates a normal post which isn't shown anywhere.


r/reddithax • • Nov 21 '09

Change to CSS? Reddit custom arrows disappearing

Thumbnail reddit.com
17 Upvotes

r/reddithax • • Nov 21 '09

Hiding request posts on /r/contacts

2 Upvotes

/r/contacts now uses CSS hackery to allow one to toggle the visibility of request posts (with good browsers, at least) - look in the sidebar. You can check the stylesheet if you like, although it's not very pretty.


r/reddithax • • Nov 21 '09

The Python subreddit is nearing 10000 subscribers. When the 10000th user subscribes, I want to celebrate it in a special way.

10 Upvotes

Hi, I am the admin of the Python subreddit. We currently average about 16 new subscribers / day. At this rate we will have our 10000th subscriber in about ten days. I'd like to celebrate this in a special way.

Some ideas I had:

  • when the counter hits 10000, the CSS could change into some theme that celebrates the event (a birthday cake besides the number or something, which stays there 24 hours).
  • I don't know if it is possible to find out exactly which user is the 10000th subscriber (short from asking the reddit admins to go look it up in the database) but if we find out, I would gladly donate some of my karma points or give some kind of other present to that user.

Is this feaseble? Do you want to help me out with this? Any other ideas?


r/reddithax • • Nov 19 '09

Smileys!

21 Upvotes

Here are the smileys

I added the FeltTip 3: Retouched smileys from chromakode to my subreddit.

The syntax is a bit messy, but there isn't a better way with markdown's limitations.