Giter VIP home page Giter VIP logo

r-ainbow-flags's Introduction

LGBT-Themed Flair for Reddit communities

This project contains 15 flags and the CSS necessary to implement them as flair for a subreddit, as we have done over at /r/ainbow.

Instructions

Steps 1-2 will happen on this page: http://www.reddit.com/r/yoursubreddit/about/stylesheet

Steps 3-4 will happen on this page: http://www.reddit.com/r/yoursubreddit/about/flair/

  1. Under the "images" section, upload each of the PNG's in this folder. Reddit will suggest a name in the "new image name" box. Keep that name, or you'll have to change the CSS a bit.
  2. Paste the CSS from "flags.css" into the bottom of your stylesheet.
  3. Go to the flair page mentioned above, and click on the "Edit Flair Templates" tab. There are 16 CSS classes to enter by default; all will have an empty "flair text" box, and "user can edit?" unchecked. You can use any order, and that will be the order they appear in the sidebar flair picker. The class names are listed below.
  4. (optional) Check off the "allow users to assign their own flair" box atop the page if you want people to be able to select their own flags.

Congratulations, you're done!

CSS Class Names

These are the CSS classes you will add to the flair template page. For reference, this is /r/ainbow's order as of March 2012:

  • ainbow
  • trans
  • bi
  • ace
  • genderqueer
  • pan
  • ally
  • none
  • trans-ainbow
  • trans-pan
  • trans-bi
  • trans-ace
  • genderqueer-ainbow
  • genderqueer-pan
  • genderqueer-bi
  • genderqueer-ace

Notes

"None" at position 8 looks good, as it puts all the blended flags into a second column. The CSS class names are invisible to the end user.

Also, our implementation is lazy and doesn't support text + flags, it's just one or the other. As such, enabling "user can edit?" is discouraged.

Blended flags were designed by reddit user WTFcannuck; thanks so much!

If you have any questions or issues, message joeycastillo on reddit.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.