Skip to content

trenton-telge/gh-buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS-Only GitHub Buttons (Unofficial)

While trying to create an AMP webpage, I ran into the problem of not being able to use the JavaScript dependant GitHub buttons implementations currently available. So I created a CSS-only variant using GitHub's octicons and layered backgrounds in CSS3.

Usage

  1. Just copy the text in here to your <style amp-custom> tag.
  2. And add a class="gh-button" to any a or button you want.
  3. Don't forget to add text!

It should look like <a class="gh-button">View on GitHub</a>.

Example

Find an example of the buttons at https://trenton-telge.github.io/gh-buttons

About

AMP compatible, css-only buttons for GitHub. An unofficial implementation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages