From 1d98a784894658ff3292a7f8de8dbde05e83cbab Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Sat, 17 Mar 2012 10:44:22 +0800 Subject: add github button --- sass/parts/_header.scss | 7 +++++++ source/_includes/header.html | 3 +++ source/images/github.png | Bin 0 -> 1205 bytes 3 files changed, 10 insertions(+) create mode 100644 source/images/github.png diff --git a/sass/parts/_header.scss b/sass/parts/_header.scss index 67ebf84..d740f9f 100644 --- a/sass/parts/_header.scss +++ b/sass/parts/_header.scss @@ -199,6 +199,13 @@ header{ border: 1px solid darken(#55CFF8, 10%); } } + &.github{ + background: image-url('github.png') center no-repeat rgb(175,182,202); + border: 1px solid rgb(175,182,202); + &:hover{ + border: 1px solid darken(rgb(175,182,202), 10%); + } + } &.rss{ background: image-url('rss.png') center no-repeat #EF7522; border: 1px solid #EF7522; diff --git a/source/_includes/header.html b/source/_includes/header.html index d8cd357..dbb5510 100644 --- a/source/_includes/header.html +++ b/source/_includes/header.html @@ -15,6 +15,9 @@ {% if site.twitter_user %} Twitter {% endif %} + {% if site.github_user %} + GitHub + {% endif %} {% if site.subscribe_rss %} RSS {% endif %} diff --git a/source/images/github.png b/source/images/github.png new file mode 100644 index 0000000..6962c9d Binary files /dev/null and b/source/images/github.png differ -- cgit v1.1-2-g2b99