Skip to content

Commit

Permalink
style:SVG logo for GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
MOxFIVE committed Apr 17, 2016
1 parent 8369277 commit 938b847
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
10 changes: 9 additions & 1 deletion source/css/_partial/customise/social-icon.styl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"新浪微博": #ecc260
"知乎": #0078d8
"豆瓣": #06c611
GitHub: white
V2EX: #e4cdb4
TiddlyWiki: #6283dd
"简书": #e99888
Expand All @@ -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,
Expand Down
Binary file removed source/img/GitHub.png
Binary file not shown.
11 changes: 0 additions & 11 deletions source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.