Permalink
Browse files

style:SVG logo for GitHub

  • Loading branch information...
MOxFIVE committed Apr 17, 2016
1 parent 8369277 commit 938b8470b32097e40281cfc64a2a8f9bc79fcb36
Showing with 9 additions and 12 deletions.
  1. +9 −1 source/css/_partial/customise/social-icon.styl
  2. BIN source/img/GitHub.png
  3. +0 −11 source/js/main.js
@@ -23,7 +23,6 @@
"新浪微博": #ecc260
"知乎": #0078d8
"豆瓣": #06c611
GitHub: white
V2EX: #e4cdb4
TiddlyWiki: #6283dd
"简书": #e99888
@@ -39,6 +38,15 @@
#{name}
background: url(root-url + '/img/' + name + '.png') center no-repeat color
.GitHub:before
content '\f18a'
color transparent
#GitHub
background: url(//cdn.bootcss.com/logos/0.2.0/github-octocat.svg) no-repeat white
background-size: 90%
background-position 50% 100%
// icon from Font Awesome
font-logo = RSS f09e #ef7522,
Google f1a0 #c83d20,
View
Binary file not shown.
View
@@ -169,15 +169,4 @@ require([], function (){
});
}
if ($("#GitHub").length) {
$.ajax({
url: yiliaConfig.rootUrl + 'img/GitHub.png',
type: 'HEAD',
error: function() {
var setUrl = "url(" + yiliaConfig.rootUrl + "img/github.png)"
$("#header #GitHub").css("background-image", setUrl);
}
});
}
});

0 comments on commit 938b847

Please sign in to comment.