Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simonwhitaker/github-fork-ribbon-css

A CSS-only, resolution-independent "Fork me on GitHub" ribbon.
https://github.com/simonwhitaker/github-fork-ribbon-css

Last synced: 3 months ago
JSON representation

A CSS-only, resolution-independent "Fork me on GitHub" ribbon.

Awesome Lists containing this project

README

        

# *Fork me on GitHub* CSS ribbon

This is a recreation of the [Fork me on GitHub ribbon](https://github.com/blog/273-github-ribbons)
in CSS, hence resolution-independent.

## Using with Bower

You can install the CSS files using [Bower](https://github.com/bower/bower).

```bower install github-fork-ribbon-css```

## Using with npm

You can also install the CSS files using [npm](https://www.npmjs.com/).

```npm install --save github-fork-ribbon-css```

## Using "Fork me on GitHub" CSS ribbon with a CDN

You can use github-fork-ribbon-css without installation via [cdnjs.com](https://cdnjs.com/libraries/github-fork-ribbon-css).

Copy the following code into the `` of your page:

```html

```

And this into the `` of your page:

```html
Fork me on GitHub
```

## Styling

Set the background colour using the `::before` selector. For example:

```html
.github-fork-ribbon:before { background-color: #333; }
```

See 'em in action!

Feel free to fork, tweak and send me a pull request.

Note: this project is not sponsored or in any way endorsed by GitHub.