0.01
No commit activity in last 3 years
No release in over 3 years
A 3d Github badge as Compass extension
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.0

Runtime

>= 0.10.0
>= 3.1.0.alpha.214
 Project Readme

github-badge

A 3d Github badge as Compass extension (original blog post)

Usage

Make sure, you’re using Sass and Compass.

gem install github-badge

config.rb

require "github-badge"

HTML:

<a id="github" href="https://github.com/hagenburger">
  <span>Fork me on GitHub!</span>
  <span>Get free lemonade!</span>
</a>

SCSS:

@import "compass";
@import "github-badge";

#github {
  @include github-badge;
}

Customization

@import "compass";
@import "github-badge";

#github {
  @include github-badge(
    $background: image-url("background.png"),
    $backside-backround: blue,
    $text-color: #00f,
    $backside-text-color: rgba(white, 0.5)
  );
}

Dependencies

  • Sass 3.1 (3.0 is not supported)
  • Compass 0.10 and 0.11

Licence

Released under the MIT License. See MIT-LICENSE for details.

© Nico Hagenburger 2011

Follow Nico on Twitter or Github.