So yeah, that dude in the top right corner is pretty much it. Nothing revolutionary, but if you want a dynamic, customizable, and easy to use banner without an extra http request then have at it.
It's also designed to be mobile first, so you'll get a fork icon on phones and the full banner on everything else. Resize your browser or view on a phone to see it in action.
<div class="fork-me-wrapper">
<div class="fork-me">
<a class="fork-me-link" href="[your repo url]">
<span class="fork-me-text">Fork Me On GitHub</span>
</a>
</div>
</div>
.fork-me {
background-color: #000;
}
<div class="fork-me-wrapper fork-me-left">
...
</div>
<div class="fork-me-wrapper fork-me-fixed">
...
</div>
<div class="fork-me fork-me-dark">
...
</div>
bower install fork-me-on-github --save
git clone https://github.com/edull24/fork-me-on-github.git
<link rel="stylesheet" href="[path to fork.css]">
<div class="fork-me-wrapper">
<div class="fork-me">
<a class="fork-me-link" href="[your repo url]">
<span class="fork-me-text">Fork Me On GitHub</span>
</a>
</div>
</div>
For example, this site has overridden the default banner background color:
.fork-me {
background-color: #000;
}
@import '[path to _fork.scss]';
For example, this site has overridden the default banner border:
$fork-text-border: 1px dotted #fff;
Inspect the banner on this page or try out this pen.
If you benefit from this project, please consider donating to one of the following charities: