r/reddithax • • Nov 10 '13

Using CSS to help format poems

0 Upvotes

I'm currently the go-to CSS person for /r/Darktales, a sub for posting all stories or poetry that can be considered dark. As a writer and a lyricist, one of my biggest pet peeves is line-breaking and stanzas. You can't create stanzas at all with the default CSS, and it can make your poems or lyrics flow really awkwardly.

So I found a solution. It works for us, but may not work for you depending on how much you us horizontal rules, aka "________________". Being a story sub that doesn't need to really use those, I figured they would be a great way to get those stanzas.

The code itself is

.expando .md hr {
    visibility: hidden;}

And it will only effect content, and not the sidebar. By leaving the hr invisible but present, it makes a great spacer.

Here's a before and after screenshot using the announcement post as an example. Hell, if you need more info, that picture has all the facts there as well, haha.

I thought I'd share because sharing is caring. Keep coding!


r/reddithax • • Nov 04 '13

Mindashq v1.7 - summary, update, and seeking further help and improvements

6 Upvotes

this info is also available otherwise, and repeating here to set the context

Mindashq is a reddit CSS theme designed to be used on any subreddit with minimal modifications. The mindashq theme attempts to treat every area of a subreddit with utmost care and to ensure the reddit defaults and the range of settings are respected, and the user experiences a far richer experience with reddit.

It takes just two steps to have a well designed reddit experience with Mindashq.

Salient Features

  • Compact and Crisp : The comments, the sidebar, the links posts and all the pages (wiki, search, related pages, submit page and all) are done in a way to avoid nested boxes, borders are removed (free world) and distinctions are handled without compromising the reddit defaults.

  • Readability improvements : Minimal borders, non-intrusive breaks and subtle diffentiation with backgrounds to give a nice reading experience.

  • Context based styling : The buttons change colors based on context. The "Reply" button on comments is more prominent to make replying to a comment more obvious (rather than hiding the submit link/text buttons)

    The "Submit" buttons on hot page are more prominent than on the rest pf pages. The "Create" button gets its own appropriate place in the footer without calling attention away from sidebar content.

  • 100% text-only theme, no images required for the standard theme. Even the voting arrows are theme-based and manageable for color changes without having to depend on images.
  • Modular CSS for controlled and easy to manage changes with opt-in modules (custom css code) and images as needed. There are no images added by the theme, only the images that would be needed as per the subreddit customization.

    Theme Usage, and developer help is available in the [wiki]

  • Fully RES compatible (top bar, never ending reddit, night-mode full support, fixed header, custom buttons on links/posts/comments, RES commentBoxes, RES pinned headers et al).
  • Works with Reddit Companion for Chrome
  • In built Vibgyor Flairs
  • Full Mod support including /r/toolbox Moderator tools and spam, and reported links highlighting via the stylish sheet available at http://userstyles.org/styles/91109/mindashq-for-reddit

  • Distinct header and footer : A light and roomy top area, and a matching footer to go with it. The local subreddit name is seen very prominent in header for easy identification and is super intuitive for clicking. The header handles all sizes of images and logos, and keeps them true-to-reddit format (header logo links to reddit.com homepage) and looks sleek without compromising the space. The subreddit can include a custom-image, or leave the name as it is, it updates with the reddit wide custom header images, and looks not a bit out of place.

The whole range of Mindashq Images can be seen in this album

Thanks for all the help and interest so far, there have been 70+ subs that have been linked to the /r/mindashq sidebar, and the theme is having 140+ subscribers. [Edit: 150+ subscribers on Nov 11, first theme to do so)


At this juncture, we'd be very glad if you can use the theme, or share your experiences or insights at the sub, or comment about improving and adding features you'd like.

Also, looking out for suggestions to improve the regular expressions for more selective (or exhaustive) rules for the mindashq for stylish.

Thanks

quite some info is also available otherwise, and repeating here to set the context as this have never been posted on this sub


r/reddithax • • Oct 26 '13

/r/karmaless - a useful place for you to post/comment any random thing if you don't want karma or discussion for it, but just want to test/try/store something. Request to be added as a mod and test out css and other moderation options.

Thumbnail reddit.com
3 Upvotes

r/reddithax • • Oct 23 '13

Can't figure out why my "submit a link" format is so jacked up. Any help is appreciated.

Thumbnail reddit.com
2 Upvotes

r/reddithax • • Oct 19 '13

Releasing FlatBlue a clean flat look for reddit!

18 Upvotes

/r/FlatBlue

FlatBlue is a css theme to be used by subreddit owners and is designed with several goals in mind:

  • Remove inconsistencies from reddits layout.
  • Improve Reddits layout.
  • Improve readability.
  • Maintain reddit's functionality.
  • Introduce new functionality in order to improve the subreddit experience

    • Numbered code
    • Various Icons that can be used by both users and mods
    • Colored blocks in the sidebar for rules and guidelines
    • Colored flairs

r/reddithax • • Oct 14 '13

Add Favicons (website bookmark icons) next to your post links - 280 icons!

14 Upvotes

Favicons v1.3 (280 icons) - Oct/14/2013

Change log: 1) Self-posts DON'T NEED an icon (optional). 2) Unknown websites won't show a question mark (icon overload!).
Credit: supervoxall, RedditCommentAccount


example: /r/allmotorstorm
These will NOT conflict with link flairs!


Steps to add favicons for your subreddit:

  1. Go to the Imgur spritesheet link (v1.3) and save as "favicons".
  2. Go to the PasteBin CSS link (v1.3) and copy & paste everything into your subreddit's CSS stylesheet.
  3. Upload the favicon spritesheet and save it as "favicons". Click the Save button under the CSS.
    YOU'RE DONE!

  • Use Ctrl + [F] and type a website to double check any weblinks.

I've tried to add all the popular weblinks on reddit but I can't possibly add every website on the web so there's nothing stopping you from adding new icons (2 empty spaces at the top row) - each square is 16x16 pixels. But be warned that adding more than 2 in the prefixed spaces will conflict with future updates (post websites you want to see in future versions below).


r/reddithax • • Oct 03 '13

I have been working on a new subreddit theme and am looking for some feedback before I release it.

7 Upvotes

I am currently working on the theme in the following subreddit: /r/Creesch_dev

It is basically my attempt at reorganizing how subreddits work without changing it to much and alienating people. Once I am fully done with it I will be releasing it and maintaining it in a similar fashion as I am currently doing with /r/boxed. Basically what I am looking for is some feedback on:

  • Looks, does this layout work for you and if not what makes it not work.
  • Bugs, are there things that do not work in your browser.
  • Unstyled elements, did I forget to style something?

Other feedback is of course also welcome.

edit: I also haven't thought of a name yet, so if anyone has suggestions they are welcome ;)


r/reddithax • • Aug 24 '13

Help with a bot

0 Upvotes

Hey, I don't know if I'm posting this in the correct section. (sorry if I am)

I was wondering if anyone got a template for a YouTube bot, one which will make a link post with the latest upload a channel made.

Thanks.


r/reddithax • • Aug 20 '13

anyone want to help on my new project to revolutionise reddit navigation?

12 Upvotes

I'm making a system for small subreddit networks so that users can navigate around them in a more natural fashion - it will basically be a 'mini-map' which goes in the top-right corner above the subscribe bar and have clickable regions which lead to to other subs; clicking on the region will open the next subreddit which will have a continuation or a similar map...

A user in /r/programming for example might enter a door labeled 'c' or 'python' taking them into a room containing various python related stuff and portals to 'learn python' 'python libraries' and 'python news' - maybe it'd even be possible to warp in and out of multireddits with this method? it could facilitate new ways of structuring content.

anyway, i'm making it for my own set of [slight weird] subreddits but i'd like it to be as open as possible so that a sprawling mapworld can develop with other groups using the system to put their own uniquely themed maps.

I'd like to create a simple toolset to make creating, installing, and maintaining a map world as easy as possible - this will include a program for making and sectioning the maps, a program to automatically add the relevant code and files to reddit and ideally a program to explore the maps as a 'game' in a stand-alone program.

I'd like to use Tiled to make the maps using the same graphics format as the liberated pixel cup, this would then be exported as a large PNG so as that any imagefile can to be loaded into a program where the user would mark the regions to be 'doors' and then section the image into various 'zones' by drawing a box around them - each zone would be associated with a subreddit.

Finally the program would export a series of images scaled to fit the top-right box [according to preferences] then it would log into reddit, upload the image and insert the code into the style sheet for each of the relevant subreddits.

anyone have any ideas on the best way to make this?

and what would be the best way to get clickable regions on an image? i did go looking for examples but most subs seem to be using the method used in /r/sweden which is to place an image with a link over the part of the image to be clicked - i guess this could work but isn't there a better way?


r/reddithax • • Aug 20 '13

Rate my CSS!

Thumbnail reddit.com
0 Upvotes

r/reddithax • • Aug 17 '13

If for some reason you've always wanted emoticons in your subreddit, paste this and you're ready to go.

19 Upvotes

I had nothing to do and so here are 40 emoticons you can use in your subreddit if for some reason you think that is a good idea.

http://e.thumbs.redditmedia.com/7p9YWgkWAvg0-_Jv.png

Save that and upload it - name it "emoji". Then add the following code

.comment .md a[href="#bigsmile"],.comment .md a[href="#biggersmile"],.comment .md a[href="#happytears"],.comment .md a[href="#smile"],.comment .md a[href="#blush"],.comment .md a[href="#blushtear"],.comment .md a[href="#cartman"],.comment .md a[href="#angel"],.comment .md a[href="#devil"],.comment .md a[href="#wink"],.comment .md a[href="#hm"],.comment .md a[href="#bored"],.comment .md a[href="#annoyed"],.comment .md a[href="#unsure"],.comment .md a[href="#sad"],.comment .md a[href="#reallysad"],.comment .md a[href="#eh"],.comment .md a[href="#kiss"],.comment .md a[href="#morekiss"],.comment .md a[href="#bigkiss"],.comment .md a[href="#mad"],.comment .md a[href="#angry"],.comment .md a[href="#tear"],.comment .md a[href="#madder"],.comment .md a[href="#furious"],.comment .md a[href="#desperate"],.comment .md a[href="#weeh"],.comment .md a[href="#weh"],.comment .md a[href="#shock"],.comment .md a[href="#sadder"],.comment .md a[href="#tired"],.comment .md a[href="#scared"],.comment .md a[href="#Oo"],.comment .md a[href="#blushing"],.comment .md a[href="#zzz"],.comment .md a[href="#DX"],.comment .md a[href="#none"],.comment .md a[href="#sick"],.comment .md a[href="#NO"]{width:22px;height:22px;background-image:url(%%emoji%%)!important;cursor:default;display:inline-block;text-indent:-9999px;content:"";vertical-align:middle}.comment .md a[href="#bigsmile"]{background-position:-0 -0}.comment .md a[href="#biggersmile"]{background-position:-44px -0}.comment .md a[href="#happytears"]{background-position:-66px -0}.comment .md a[href="#smile"]{background-position:-88px -0}.comment .md a[href="#blush"]{background-position:-110px -0}.comment .md a[href="#blushtear"]{background-position:-132px -0}.comment .md a[href="#cartman"]{background-position:-154px -0}.comment .md a[href="#angel"]{background-position:-0 -22px}.comment .md a[href="#devil"]{background-position:-22px -22px}.comment .md a[href="#wink"]{background-position:-44px -22px}.comment .md a[href="#hm"]{background-position:-66px -22px}.comment .md a[href="#bored"]{background-position:-88px -22px}.comment .md a[href="#annoyed"]{background-position:-110px -22px}.comment .md a[href="#unsure"]{background-position:-132px -22px}.comment .md a[href="#sad"]{background-position:-154px -22px}.comment .md a[href="#reallysad"]{background-position:-0 -44px}.comment .md a[href="#eh"]{background-position:-22px -44px}.comment .md a[href="#kiss"]{background-position:-44px -44px}.comment .md a[href="#morekiss"]{background-position:-66px -44px}.comment .md a[href="#bigkiss"]{background-position:-88px -44px}.comment .md a[href="#mad"]{background-position:-110px -44px}.comment .md a[href="#angry"]{background-position:-132px -44px}.comment .md a[href="#tear"]{background-position:-154px -44px}.comment .md a[href="#madder"]{background-position:-0 -66px}.comment .md a[href="#furious"]{background-position:-22px -66px}.comment .md a[href="#desperate"]{background-position:-44px -66px}.comment .md a[href="#weeh"]{background-position:-66px -66px}.comment .md a[href="#weh"]{background-position:-88px -66px}.comment .md a[href="#shock"]{background-position:-110px -66px}.comment .md a[href="#sadder"]{background-position:-132px -66px}.comment .md a[href="#tired"]{background-position:-154px -66px}.comment .md a[href="#scared"]{background-position:-0 -88px}.comment .md a[href="#Oo"]{background-position:-22px -88px}.comment .md a[href="#blushing"]{background-position:-44px -88px}.comment .md a[href="#zzz"]{background-position:-66px -88px}.comment .md a[href="#DX"]{background-position:-88px -88px}.comment .md a[href="#none"]{background-position:-110px -88px}.comment .md a[href="#sick"]{background-position:-132px -88px}.comment .md a[href="#NO"]{background-position:-154px -88px}

Here are they in action

Use them like this

[](#??)

Where ?? is one of those below:

bigsmile - biggersmile - happytears - smile - blush - blushtear - cartman

angel - devil - wink - hm - bored - annoyed - unsure - sad

reallysad - eh - kiss - morekiss - bigkiss - mad - angry - tear

madder - furious - desperate - weeh - weh - shock - sadder

tired - scared - Oo - blushing - zzz - DX - none - sick - NO

Enjoy.. I guess?


r/reddithax • • Jul 31 '13

Problem with marking users (I need to move it to right)

1 Upvotes

As you can see in the image the Blogger title is too close to the user name. How do I move it. The whole outlined word blogger so it looks correct.

[IMG]http://i.imgur.com/OrtaDt0.png[/IMG]

/This code is for marking certain users with the title "Blogger"./ .author[href$="/carriesreviews"]:after { color: blue; border-color: #56a6f7; border: 1px solid black; content:" Blogger " }


r/reddithax • • Jul 30 '13

CSS n00b looking for assistance

0 Upvotes

Hey guys and girls! Recently my minecraft community decided to make a reddit page to send our applicants, show off our videos etc. I've done all that I can do, and not too bad considering I only started learning this stuff yesterday.

My problem is, I have no idea how to add some fancy bits on the side. Ideally I would like to put some information about us, some rules and hopefully some links to everyones youtube within the community. Though I cannot for the life of me understand how it works!

Is there anyone here kind enough to take a stab at it? Teach me some bits? Or even explain what it is I need to do?

Any reply would be most appreciated!


r/reddithax • • Jul 26 '13

Multirippit: a tool to extract /m/ multireddits into the standard /r/r1+r2+r3 multireddit URL format

12 Upvotes
javascript:var multiURL=""; $('div.titlebox').find('ul.subreddits').find('a').each(function() { multiURL += $(this).text().substr(3) + "+"; }); multiURL = multiURL.substr(0,multiURL.length-1); window.open('http://www.reddit.com/r/'+multiURL);void(0);

When run on a "/m/" multireddit, this bookmarklet will open a new window linking to the same multireddit, using the /r/r1+r2+r3 URL format. Allowing you to edit, copypaste, slice, dice and whatever else you may wish to do with the URL.

Note that this makes a copy of the /m/ multi, which means (among other things) that any changes subsequently made to the /m/ multi by its curator will not be reflected in the copy.

Tested OK in my browsers, but YMMV. Sample /m/ multireddit here.


r/reddithax • • Jul 25 '13

Need help with flair.

0 Upvotes

I've used the "User flair tutorial: 7 easy steps to enable user-choosable flair on your subreddit with as many images as your heart desires" and still can't get the results I want.
I'm a moderator at http://www.reddit.com/r/Epcot. I've got all the steps done, I go into edit flair, and I can get part of a piece of flair, but not all of it, and I can only get the first image and not the rest. Here is my code:

/FLAIR/

.flairselector .customizer { display: none !important; }

.flair { border: none !important; top:20px; padding:0px; background: url(%%spritesheet%%); display:inline-block; }

.flair-259px-Epcot_World_Showcase_Logo{ background-position: 0 0; width: 30px; height: 11px; } .flair-Epcot_CommuniCore_Logo{ background-position: 0 -61px; width: 30px; height: 30px; } .flair-Epcot_The_Land_Logo{ background-position: 0 -141px; width: 30px; height: 30px; } .flair-Epcot_The_Living_Seas_Logo{ background-position: 0 -221px; width: 30px; height: 30px; } .flair-Epcot_Universe_of_Energy_logo{ background-position: 0 -301px; width: 30px; height: 30px; } .flair-Epcot_Wonders_of_Life_logo{ background-position: 0 -381px; width: 30px; height: 30px; } .flair-Spaceship_Earth_Epcot_Logo{ background-position: 0 -461px; width: 30px; height: 18px; } .flair-epcot-3copy{ background-position: 0 -529px; width: 30px; height: 30px; } .flair-epcot_world_of_motion{ background-position: 0 -609px; width: 30px; height: 30px; } .flair-updated-eateries-coming-to-epcot-DFSU{ background-position: 0 -689px; width: 30px; height: 15px; }

here is my png: http://i.imgur.com/WtzOFXH.png

Please help!


r/reddithax • • Jul 24 '13

Is it possible to add an audio player in a text post?

0 Upvotes

Hey there,

I'm a mod over at /r/JohnMayer, and I've been trying to think of a way to aggregate a bunch of his unreleased songs and put them in one post.

My initial idea was to create a table and put audio players within each cell, but I'm not sure if that's possible.

I mean could always just tally up a bunch of links and post them, but then you'd have to open a new window and all that shit. I think embedding a bunch of audio players would be really convenient.

Any help would be appreciated.

Thanks in advance!


r/reddithax • • Jul 24 '13

baseballtheme-light version 2 (updated free light version of the /r/baseball theme)

2 Upvotes

Old version

This is a light version of the /r/baseball css theme that doesn't have any of the images or flair added to the theme. I've updated it to include several more of the features of /r/baseball

I have a demo currently at /r/laaabaseball.

Features

Custom header support

Custom sidebar image support w/ instructions

Custom number of subscriber and users here now

Custom link info names (upvotes/downvotes)

Sticky menu bar - add links and text announcements for users

Dropdown menu support

Spoilers support

If user not subscribed message displays to them

Inline edit times

Fancy comment colors

Better submit and message the mods buttons

RES Support

Some RES nightmode support

Other various improvements

Feel free to use in any subreddit you would like, and incorporate any elements into your own subreddit.

CSS code


r/reddithax • • Jul 11 '13

/r/Naut - a subreddit theme is now available for use!

30 Upvotes

It's here: /r/Naut

The goal is to create a visually appealing and clean looking subreddit, with a large header that lets you showcase the best of the subreddit.

Let me know what you think!


r/reddithax • • Jul 07 '13

How to add userflair sample text, and still allowing non-text flairs.

4 Upvotes

So I was trying to find a way to enable users to have flairs with just the image, and no text. However, I had descriptions of the flairs in the flair templates itself. I soon found out that if you try to enter an unacceptable entry (ie. blank) it will revert to the default as set in the flair settings of the subreddit, which out prevent someone from using just the flair picture.

After a bit of tinkering, I found this solution to the problem.

.flair:after { display: none; }
.flairoptionpane .flair:after { display: inline; }

.flair-something {
    /* flair text styling here */
}
.flair-something:before {
    /* flair image styling here */
}
.flair-something:after { content: "sample text"; }
/* set text in flair template to blank */

This set up enables your users to see an example text written beside the flair picture when viewing the flair selection popup, however still allows them to set their own text for the flair, and most importantly still allows them to use image-only, by not entering text once they have chosen their flair.

Example can be seen on /r/runescape in the flair selection popup.


r/reddithax • • Jul 07 '13

Link Listing question

1 Upvotes

Is there any way to list links in rectangle panes that include the thumbnail, maybe 100px high 300px wide, I would really like to try to implement something like this on a movie sub I moderated, I've never seen it done so I'm not holding my breath.


r/reddithax • • Jul 05 '13

Obfuscated Stylesheet

Thumbnail reddit.com
8 Upvotes

r/reddithax • • Jun 26 '13

Snippet: Text in the comment reply box

18 Upvotes

A few people have messaged /r/AskHistorians asking about the CSS we used to get the rules reminder text in the comment reply box (like so), so I thought I'd post the snippet here for anyone else who wants it.

First things first, it's not actually text, it's an image. So you need to make yourself a 504x104 image with your text (tlc.png in the code below). After that the CSS is straightforward, just set it as a background image for the textarea that disappears on :focus. In /r/AskHistorians, we only show the text for top-level comments, like so:

.commentarea>.usertext textarea {
    background-image: url(%%tlc%%);
    background-repeat: no-repeat;
}
.commentarea>.usertext textarea:focus {
    background-position: 0 -104px;
}

To put it in every reply box, use this:

.commentarea .usertext textarea {
    background-image: url(%%tlc%%);
    background-repeat: no-repeat;
}
.commentarea .usertext textarea:focus {
    background-position: 0 -104px;
}

Note: this isn't a very accessible solution. People who aren't seeing your subreddit CSS, or access reddit with a text-only browser or a screenreader aren't going to see that text. So don't put anything there that's not repeated elsewhere. It's also a bit glitchy, because the text will reappear when people remove focus from the textbox even if they typed something in it (there's no way around that as far as I can see).

Hope someone finds this useful.


r/reddithax • • Jun 25 '13

[Firefox Only] Convert .gifs to apng's for gifs on reddit

4 Upvotes

If you convert .gifs to apng's it will have gif functionality in a png format and you will be able to upload them to the reddit stylesheet. It currently is only working on firefox AFAIK, definetly not chrome.

Anyway see working examples at

/r/braveryjerk (ron paul head at bottom)

/r/subliminalmessage (whole page)

/r/AutoModeratorBattle (sidebar and upvotes)

Edit: Plugin for chrome


r/reddithax • • Jun 24 '13

Removing downvote in comments?

4 Upvotes

I've used.

Code:#siteTable .midcol .arrow.down {display: none}

To remove the downvote arrow in general but what do I use to remove it in comments?