TerrenceRyan.com

I'm a 35 year old redhead geek from Philly.
I'm currently a Developer Evangelist for Adobe.
Also the author of Driving Technical Change

Github Ribbons in CSS

5 Comments

Github has these cool ribbon images that you can use if you want to encourage forking your project on your site. They're great and I wanted to use them on a little project I am working on. However, one of my goals was not to use any images, but rather produce all display elements with CSS.

It was a little bit of trial and error but I got it working. Basically you do the following:

This creates a square display area that won't show things that stretch out past the bounds of the box.

Issues:

I'm not sure if I'm going to use this. I'll sound judgmental here, but the fact that it doesn't show up on IE less than 9 seems like a good thing. Do I want a developer on my project that isn't using the latest browser? Probably not.

Demo
See the live demo here.

Update

A couple people pointed out that there was a weird doubling of the letters on their browser (Chrome on Windows, and Safari on iPad.) Looks like it was caused by a slight text-shadow I had on the text. The text on the original banner has some anti-aliasing going on, and on some browsers, the text shadow helps it look a little smoother, but on others you get that doubling. So I've removed the text shadow.  Display should be a little more consistent. 

5 responses so far ↓

  • 1 Raymond Camden

    The demo version has a 'doubling' effect on the text. I can send a screen shot if you want. It's a small effect, but very obvious.
  • 2 tpryan

    Should be fixed now Ray. Explanation has been added to the post as an update.
  • 3 Adam Tuttle

    Good for you for figuring it out, but you should've googled it first. ;)

    http://www.hagenburger.net/BLOG/3d-Github-badge-with-pure-CSS3.html
  • 4 tpryan

    I like mine better. No extraneous spans. Plus mine had edges.
  • 5 Raymond Camden

    By that logic Adam no one would build things for fun/learning. ;)

Leave a Comment









Categories

Monthly Archives

Tag Cloud

coldfusion web development flex coldfusion builder appearances squidhead coldfusion builder extensions higher ed flash builder air mobile android html5 adobe apptacular driving technical change running a coldfusion shop adobemax06 movable type flash catalyst flash blackberry adobemax07 adobemax08 hero finicky css adobemax09 holy crap i’m a mobile developer centaur basecamp cfc unfuddle motorola metablog irrational characters ios git evangelism devices code reviews ant wharton subversion security phonegap philly philadelphia multidevice knowledge@wharton jobs browserlab adobemax10 adobe tv unfuddlecfc svnauth.cfc semantic html semantic html responsive web design qnx nlb linux jquery mobile java it github flexorg fireworks edge eclipse dreamweaver apps apple adobemax11