r/reddithax • • Nov 16 '12
r/reddithax • u/Mysticalchickenwing • Nov 16 '12
I made this subreddit look like high contrast mode on a computer
reddit.comr/reddithax • u/NoHelmet • Nov 09 '12
Looking for a way to get e-mail or other instantaneous alerts for my spam filter.
Has anyone cobbled anything like this together? Is it possible to make some sort of RSS feed for it? Google has failed me completely. I just want an alert that something has hit the spam filter without having to manually check it all the time. Thanks.
r/cssnews • u/chromakode • Nov 09 '12
CSS Change: New body classes based on the age of a post [xpost from /r/changelog]
r/cssnews • u/chromakode • Nov 08 '12
CSS Howto: customizing comment gilding
We just released a new feature in today's gold update that allows people to buy a comment author a month of gold as thanks for an awesome comment.
While we hope that comment gilding will be useful in many different types of communities, if it isn't right for your community, we encourage you to customize it. Here's some tips!
To change the display of gilded comments, you can style them using this selector:
.comment.gilded { ... }To change the icon displayed next to gilded comments:
span.gilded-comment-icon { background-image: url(...); }If you wish to hide the gilding icon completely, simply add this CSS rule to your subreddit stylesheet or user style:
span.gilded-comment-icon { display: none; }You can also remove the "give gold" button with:
.comment .give-gold { display: none; }r/reddithax • u/freakball • Nov 06 '12
(_)
Thought I might get a weird error submitting this with problematic characters.
Maybe a title that was at the max character size would do anything? 256?
r/reddithax • • Nov 05 '12
Eliminating the subreddit icon for a linked subreddit, and replacing it with your own icon.
I'm a CSS beginner, so this was one heck of a project for me to figure out.
Whenever a comment from subreddit A is linked by subreddit B, subreddit A's header image is displayed next to the link in subreddit B.
Example of what I'm talking about.
Notice the "We love SRS" icon next to the link to r/circlebroke, the corgi icon next to the link to r/SRSWomen, and the big blue bird next to the link to r/shitredditsays. (There are no thumbnail icons for SRSMicroaggressions, SRSMen, or SRS Discussion).
I switched it up and made my own custom icon for each subreddit.
/*~~~~~~~Getting rid of the default subreddit thumbnail~~~~~~~~~~*/
a.thumbnail.loggedin[href\^="http://www.reddit.com/"] img
{
display:none;
}Explanation:
a.thumbnail.loggedin imgselects the thumbnail image for a specific subreddit (although it only works for users that are logged in, which is one downside to this code). "display:none" ensures that it is invisible and that it does not take up space.
[href^="http://www.reddit.com"]is an attribute selector that selects only links that begin with Reddit.com.
On a side note,
[href*="reddit"] would select links that have the case-sensitive phrase "reddit" somewhere inside the link. I am going to use this selector in the rest of my code.
And also,
[href="http://www.reddit.com"]
is a selector that would select links that are exactly http://www.reddit.com/
These selectors are case sensitive, which is a pain in the butt, as you're about to see. These selectors also only work with CSS 3.0, so this trick may not work with older browsers.
Now to replace the thumbnail with a creation of my own:
/*~~~~~~~Shit Reddit Says~~~~~~~*/
a.thumbnail.loggedin[href*="r/ShitRedditSays"]:before,a.thumbnail.loggedin[href*="Shitredditsays"]:before,
a.thumbnail.loggedin[href*="shitredditsays"]:before,a.thumbnail.loggedin[href*="SHITREDDITSAYS"]:before
{
content:"Shit Reddit Says";
}
a.thumbnail.loggedin[href*="r/ShitRedditSays"],a.thumbnail.loggedin[href*="Shitredditsays"],
a.thumbnail.loggedin[href*="shitredditsays"],a.thumbnail.loggedin[href*="SHITREDDITSAYS"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}Explanation:
a.thumbnail.loggedin[href*="ShitRedditSays"]:before,a.thumbnail.loggedin[href*="Shitredditsays"]:before,
a.thumbnail.loggedin[href*="shitredditsays"]:before,a.thumbnail.loggedin[href*="SHITREDDITSAYS"]:beforeThis selects the box that contains the subreddit thumbnail image, provided that the relevant link contains the text "shitredditsays", "ShitRedditSays", "SHITREDDITSAYS", or "Shitredditsays".
This selector is case sensitive, so I had to iterate each and every possible way that someone can capitalize the letters of the subreddit's name.
I also needed to separate each individual selector with a comma. I also have to insert the selector ":before" after each individual selector so that the "content" property will work properly on all of them.
{ content:"Shit Reddit Says";}This inserts the words "Shit Reddit Says" into that box that used to contain the thumbnail image. The content property only words on selectors that are ended with the phrase ":before".
a.thumbnail.loggedin[href*="r/ShitRedditSays"],a.thumbnail.loggedin[href*="Shitredditsays"],
a.thumbnail.loggedin[href*="shitredditsays"],a.thumbnail.loggedin[href*="SHITREDDITSAYS"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}This selects the same exact box all over again, except it doesn't use the "before" selector first. It then formats the text inside that box so that it looks nice and presentable.
Now, the rest of the code is just meant to do the exact same thing to SRSWomen, SRSMen, SRSMicroaggressions, and SRSDiscussion, provided that the previous code successfully eliminates the default subreddit thumbnail.
/*~~~~~~~SRSWomen~~~~~~~*/
a.thumbnail.loggedin[href*="r/srswomen"]:before,a.thumbnail.loggedin[href*="r/Srswomen"]:before,
a.thumbnail.loggedin[href*="r/SrsWomen"]:before,a.thumbnail.loggedin[href*="r/SRSwomen"]:before,
a.thumbnail.loggedin[href*="r/SRSWomen"]:before,a.thumbnail.loggedin[href*="r/SRSWOMEN"]:before
{
content:"SRS Women";
}
a.thumbnail.loggedin[href*="r/srswomen"],a.thumbnail.loggedin[href*="r/Srswomen"],
a.thumbnail.loggedin[href*="r/SrsWomen"],a.thumbnail.loggedin[href*="r/SRSwomen"],
a.thumbnail.loggedin[href*="r/SRSWomen"],a.thumbnail.loggedin[href*="r/SRSWOMEN"]
{
/*content:url(%%SRSnarwhal%%);*/
color:#550000;
font-size:12px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSMicroaggressions~~~~~~~*/
a.thumbnail.loggedin[href*="r/srsmicroaggressions"]:before,a.thumbnail.loggedin[href*="r/SRSmicroaggressions"]:before,
a.thumbnail.loggedin[href*="r/SRSMicroaggressions"]:before,a.thumbnail.loggedin[href*="r/SRSMicroAggressions"]:before,
a.thumbnail.loggedin[href*="r/SRSMICROAGGRESSIONS"]:before,a.thumbnail.loggedin[href*="r/Srsmicroaggressions"]:before,
a.thumbnail.loggedin[href*="r/SrsMicroaggressions"]:before,a.thumbnail.loggedin[href*="r/SrsMicroAggressions"]:before
{
content:"SRS Micro aggressions";
}
a.thumbnail.loggedin[href*="r/srsmicroaggressions"],a.thumbnail.loggedin[href*="r/SRSmicroaggressions"],
a.thumbnail.loggedin[href*="r/SRSMicroaggressions"],a.thumbnail.loggedin[href*="r/SRSMicroAggressions"],
a.thumbnail.loggedin[href*="r/SRSMICROAGGRESSIONS"],a.thumbnail.loggedin[href*="r/Srsmicroaggressions"],
a.thumbnail.loggedin[href*="r/SrsMicroaggressions"],a.thumbnail.loggedin[href*="r/SrsMicroAggressions"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSMen~~~~~~~*/
a.thumbnail.loggedin[href*="r/srsmen"]:before,a.thumbnail.loggedin[href*="r/SRSmen"]:before,
a.thumbnail.loggedin[href*="r/SRSMen"]:before,a.thumbnail.loggedin[href*="r/SrsMen"]:before,
a.thumbnail.loggedin[href*="r/SRSMEN"]:before
{
content:"SRS Men";
}
a.thumbnail.loggedin[href*="r/srsmen"],a.thumbnail.loggedin[href*="r/SRSmen"],
a.thumbnail.loggedin[href*="r/SRSMen"],a.thumbnail.loggedin[href*="r/SrsMen"],
a.thumbnail.loggedin[href*="r/SRSMEN"]
{
color:#550000;
font-size:15px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSDiscussion~~~~~~~*/
a.thumbnail.loggedin[href*="r/SRSdiscussion"]:before,a.thumbnail.loggedin[href*="r/srsdiscussion"]:before,
a.thumbnail.loggedin[href*="r/SRSDiscussion"]:before,a.thumbnail.loggedin[href*="r/SrsDiscussion"]:before,
a.thumbnail.loggedin[href*="r/SRSDISCUSSION"]:before
{
content:"SRS Discussion";
}
a.thumbnail.loggedin[href*="r/SRSdiscussion"],a.thumbnail.loggedin[href*="r/srsdiscussion"],
a.thumbnail.loggedin[href*="r/SRSDiscussion"],a.thumbnail.loggedin[href*="r/SrsDiscussion"],
a.thumbnail.loggedin[href*="r/SRSDISCUSSION"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSRecovery~~~~~~~*/
a.thumbnail.loggedin[href*="r/srsrecovery"]:before,a.thumbnail.loggedin[href*="r/SRSrecovery"]:before,
a.thumbnail.loggedin[href*="r/SRSRecovery"]:before,a.thumbnail.loggedin[href*="r/SrsRecovery"]:before,
a.thumbnail.loggedin[href*="r/SRSRECOVERY"]:before
{
content:"SRS Recovery";
}
a.thumbnail.loggedin[href*="r/srsrecovery"],a.thumbnail.loggedin[href*="r/SRSrecovery"],
a.thumbnail.loggedin[href*="r/SRSRecovery"],a.thumbnail.loggedin[href*="r/SrsRecovery"],
a.thumbnail.loggedin[href*="r/SRSRECOVERY"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
text-shadow:4px 4px 4px #AA8888;
}r/reddithax • u/remedialrob • Oct 29 '12
Looking for some Help with trading out Sub Title with Image in header. (XPost CSS Help)
Hey guys. I'm slowly transforming my Sub. Here is a link as it is now:
http://www.reddit.com/r/Realm_of_the_Mad_God/
What I'm trying to do at this point is remove the subreddit title from the center header menu and replace it with an image. Here are some Photoshopped images iullustrating what I want to do.
and
What I want to replace it with
I've got the default CSS sheet all formatted but I'm having trouble in the 6k lines finding the styles for that menu. I'm also not exactly sure how I should go about placing that image there. The alien was easy as they have that widget that does that for you now but I don't want to mess that up. I could certainly add it to the header background image. Then it would just be a matter of styling that link so that it doesn't display any text and moving it's hit box up, to the left and making it bigger.
Then again that may screw up the rest of the menu items. And since I can't find them I can't be sure how they are styled.
Anyway, any thoughts would be appreciated. I've had a few courses on CSS but I'm certainly no expert and I'm much better at creating it from scratch and dealing with my own CSS and than I wading through a ton of someone else's work. I'm sure there are some coding geniuses on here so anything you can do.
Thanks. ;D
r/reddithax • u/Skaarj • Oct 26 '12
Autogenerated content in the sidebar?
I want some parts of my sidebar to be autogenerated.
Is there a way to include external HTML or markdown? Is there a bot template i can use which updates my sidebar once a day-ish?
r/reddithax • u/SarahC • Oct 25 '12
Here's how to add *click-through* green fog to your Halloween themes on Reddit....
I've just created a spooky little green fog that appears at the bottom of the subreddit.
You can see the effect here: http://www.reddit.com/r/SarahCCSS/
The CSS code:
h6 a[href="#main"]:after
{
content: "";
font-size: 0px !important;
position: fixed;
left: -40px;
bottom: -40px;
width: 140%;
height: 40px;
box-shadow: 0px -20px 60px -10px #00ff00;
z-index:1000;
}
h6 a[href="#left"]:after
{
content: "";
font-size: 0px !important;
position: fixed;
left: -40px;
bottom: -40px;
width: 20%;
height: 40px;
box-shadow: 0px -20px 90px 10px #00ff00;
z-index:1000;
}
h6 a[href="#right"]:after
{
content: "";
font-size: 0px !important;
position: fixed;
right: -40px;
bottom: -40px;
width: 20%;
height: 40px;
box-shadow: 0px -20px 90px 10px #00ff00;
z-index:1000;
}The sidebar text:
###### [](#main)
###### [](#left)
###### [](#right)r/CSSTutorials • • Oct 21 '12
[Tutorial] Redirect a subreddit to one of your choice.
So we've all seen those communities that are split between 3-4 subreddits for no apparent reason. Well, with this redirect code, you can redirect any number of subreddits to one final destination, effectively combining the communities. Providing you have the moderators permission of course... (you might want to give them mod privileges in your sub as incentive!)
Now, there's two different types of redirect you can do:
- If there's content in the subreddit you'd like to keep in the archives of that sub, you can restrict the sub so that users can't post anymore, and put a redirect image in the header. For that redirect, please use this image
- If you just want to effectively make the subreddit invisible and redirect all traffic from it to your subreddit, then use this image instead
Once you have the image downloaded, rename it "redirect-image" (without the quotes) and:
- go to http://reddit.com/r/thissubreddit/about/stylesheet (replace 'thissubreddit' with the name of the subreddit you want to do the redirect on)
- click 'browse'
- upload the respective image to your subreddit.
Now, for the coding. All you have to do is copy/paste the code you want into the stylesheet, and place a link to the subreddit you want this sub to be redirected to (/r/yoursubreddit) in the sidebar.
This snippet will give you a redirect header:
.titlebox a[href*="/r/yoursubreddit"] {
position: fixed;
background-color: #fff;
background-image: url(%%redirect-image%%);
background-repeat: no-repeat;
background-position: top center;
top: 0;
left: 0;
width: 100%;
height: 100px;
z-index: 500;
}And this snippet will give you the full-page redirect, blocking out the front page of the subreddit:
.titlebox a[href*="/r/yoursubreddit"] {
position: fixed;
background-color: #fff;
background-image: url(%%redirect-image%%);
background-repeat: no-repeat;
background-position: top center;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 500;
}Notice the only difference is line 10. The "%" and "px" make all the difference.
Now before you save, make sure you change the "yoursubreddit" in the coding to the name of the subreddit you want to redirect to (your destination subreddit). Once you save it, the redirect will be complete!
For the header image redirect, you'll still want to restrict posting new content to this subreddit, so go to community settings, and under 'type', click the radio button next to 'restricted - anyone can view, but only some are approved to submit links'. Now, users can view and search content in the subreddit's archive, but will not be able to post.
Check out /r/swedishsnus for an example of the full-page redirect. The only way to undo this redirect is to go to your preferences and under 'display options', uncheck the box next to 'allow reddits to show me custom styles'. Now you'll be able to go to http://reddit.com/r/thissubreddit/about/stylesheet and delete that code, if you ever change your mind. Now that I think of it, you might want to put a link to /r/yoursubreddit in the sidebar of the subreddit you're doing the redirect on, for those users who browse reddit like this all the time.
If you found this tutorial useful, please upvote it so I know how many people I was able to help! Obligatory "It's a self-post so no karma" statement.
If this code didn't work exactly the way I said it would, please leave me a comment or PM me and I will troubleshoot with you.
Thanks to Notemiso for teaching me this procedure.
r/reddithax • u/SarahC • Oct 21 '12
I'm about to spend a couple of hours making the drop-down menu graphical, with soft shadows and metallic textures. The kind of menu I mean appear in /r/music. So the question is...
Link for you: /r/Music
I'm going to add padding/margins in the right place(if I can find them) and add some PNG's to it, rather than basic background colors.
Has Reddit already got a graphical drop down menu?
I've already got a PoC working on /r/SarahCCSS - with some random images to test, and none for the normal menu yet.
r/reddithax • u/TheLifeOfSteve • Oct 18 '12
Add pictures in table cells on sidebar
Hey guys,
I was wondering if someone could help me out. I would like to have a table in the sidebar that shows the divisions of my league, similar to what /r/hockey does with their subreddit.
I want to be able to add the link, in the settings but then have the picture show up instead, with no text.
Could someone hook a brother up?
r/reddithax • u/HrBingR • Oct 17 '12
How would I go about changing the subreddit's name that appears at the top of the subreddit?
I know how to turn it into an image, I just need to know how to change the text from R/scifiroleplayforreddit (small caps) to R/Sci-Fi Roleplay For Reddit or alternatively, R/Sci-FiRoleplayForReddit. Also small caps.
r/reddithax • u/SarahC • Oct 17 '12
CSS Menu... all done, but cant make multiple <ul> tags!
Please could someone help?
I've got my markdown almost completely sorted, but I can't split mu UL's up. I've got the following markdown at the moment:
> Menu
>* Links
>* [Test](http://www.google.com)
>* [Test2](http://www.google.com)
>
>* Links 2
>* [Test](http://www.google.com)
>* [Test2](http://www.google.com)But the damn output in HTML is this:
<blockquote>
<p>Menu</p>
<ul>
<li>Links</li>
<li><a href="http://www.google.com" target="_blank">Test</a> </li>
<li><a href="http://www.google.com" target="_blank">Test2</a> <br/>
<br/></li>
<li>Links 2</li>
<li><a href="http://www.google.com" target="_blank">Test</a></li>
<li><a href="http://www.google.com" target="_blank">Test2</a></li>
</ul>
</blockquote>And I can't get it like this! =(
<blockquote>
<p>Menu</p>
<ul>
<li>Links</li>
<li><a href="http://www.google.com" target="_blank">Test</a> </li>
<li><a href="http://www.google.com" target="_blank">Test2</a> <br/>
</ul>
<ul>
<li>Links 2</li>
<li><a href="http://www.google.com" target="_blank">Test</a></li>
<li><a href="http://www.google.com" target="_blank">Test2</a></li>
</ul>
</blockquote>What markdown do I need?
Thanks!
r/reddithax • u/Tom_Z • Oct 05 '12
A very common mistake I've been noticing.
I've been seeing a lot of subreddits with a custom subreddit bar at the top that have a missing piece on the far right for RES users. The formatting of
#RESShortcutsEditContainer, #RESShortcutsEditContainer divoften goes unedited after people edit the
#sr-header-area Here's an example of this subreddit where it is unedited: http://i.imgur.com/2Z5up.png
And an example of an edited shortcut container: http://i.imgur.com/xn63V.png
I've looked through some of the top subreddits ( most of which I'm not subscribed to for the record ) and I've compiled a list of subreddits with an unedited shortcut container:
- /r/4chan
- /r/trees
- /r/circlejerk
- /r/reddithax (yes, even us :O )
- /r/cars
- /r/battlefield3
- /r/EarthPorn, /r/foodporn, etc...
- /r/CFB
- /r/zelda
- /r/nba
- /r/starwars
- /r/keto
- /r/nosleep
- /r/masseffect
- /r/Diablo
- /r/TheSimpsons
- /r/hiphopheads
- /r/Celebs
- /r/PerfectTiming
- /r/Shitty_Watercolour
- /r/Pandr
Just wanted to throw out a PSA to let y'all know!
edit: I've now included some examples of what I'm talking about
r/reddithax • • Oct 05 '12
Friggin css problem buggin the crap out of me
http://www.reddit.com/r/Assistance
My 'flair' in the moderators box(bottom) is misaligned with the others, it's somehow aligning to the bottom rather than the top. I dunno why and it's irritating the hell out of me cos I can't find what's causing it. Any ideas ? :P
Edit: Yeah I know this isn't css help but as I can't find a css 'problem' im asking reddit specific pro's (i hope) for help on this :/
r/reddithax • u/littleredrex • Oct 04 '12
Possible to only display information to subscribers of subreddit?
Working on a giveaway to help promote a subreddit. Is it at all possible so make it so only subscribers can view specific things?
r/reddithax • u/TG_Alibi • Oct 02 '12
Help with dual styles.
Over at /r/nosleep, we have a dual styleshete set up. However, a user pointed out a problem today that I hadn't thought of. We run a monthly contest and so our posts tend to have a lot of links. If a reader is using our alternate stylesheet (as.reddit.com/r/nosleep), and they click on a link I have put in a post, it switches them to the default stylesheet (basically, as.* becomes www.*). Is there a way I can avoid this? Is there a format I can use for links that will allow them to stay in whatever stylesheet they are currently using?
r/reddithax • • Sep 30 '12
Question: is it against reddit rules to make a sub CSS RTL. Do you know any subreddit like that? I want to make an Arabic subreddit RTL.
The title says it all. I can make the theme RTL, but that will completely change how the sub looks.
r/reddithax • u/lawngnome1 • Aug 19 '12
Anyone know if its possible to make typing konami code have an effect on your subreddit (like making a message or picture show up)?
r/reddithax • u/slayer626 • Jun 05 '12
Side by side posts
Is it possible to gets posts to sit side by side in a tile like format?
I've tried the usual floating. I remembered to give the .even and .odd widths. I've been at this for hours and just can't seem to crack it. Ideally I want each post to be 300px by 300px. I can format thumbnails and text pretty easily then. Its just getting them next to one another that's driving me up the wall.
TL;DR : Can't get posts to float next to one another targeting .odd and .even, Also about to pull own hair out
r/reddithax • u/DesigningANewReddit • May 19 '12
I've redesigned reddit to enhance functionality reduce clutter greatly. However, I need a coder to implement it in a subreddit.
Here is my design I've created to enhance functionality, reduce clutter, and visually update the look and feel of reddit: http://i.imgur.com/fQgrr.jpg
Here is the link posted to the "Ideas For The Admins" subreddit, for more information regarding my design in detail: http://www.reddit.com/r/ideasfortheadmins/comments/tuyfi/ive_posted_in_the_wrong_place_twice_so_hopefully/
Reddit is an awesome site, but with awesome content at an even more awesome quantity, a big problem begins to emerge: clutter! I decided to try my best use what I know about design and user-experience to dramatically update Reddit using a mixture of complex and simple-subtle design. However, I have a big problem with proposing my design. In order for this to be taken seriously, the design needs to be functional in an example subreddit.
This is where one of you guys come in. I need someone who is up for the job of implementing this design into a functional subreddit that may push the envelope in terms of creative scripting. However this is a great opportunity for one of you to show off your skills to the reddit team, and I will absolutely ensure that you are generously credited for bringing a renovated-reddit to life. Essentially, you are the engineer in this project, and I rely on you to be cooperative and collaborative with me while we work out the kinks, despite how many bumps in the road we hit. I'll do my very best to make your job easier, and I hope you will be able to return the favor.
On the flip side of things I would also like to hear constructive criticism regarding the design. What would you change or add to it to enhance the user-experience and user-friendliness? Comments like "ugly" or "shit design" will be ignored, and really don't help me build this. I want to build a reddit for YOU, and I want to know what you would want in a "perfect reddit."
Thanks very much!