diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-11 17:27:52 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-11 17:27:52 +0800 |
commit | 7cab923ef6c93a22c3f9983831f3f07795d8f118 (patch) | |
tree | 91b446387045fddaa0be41723fdac5c4265275ff | |
parent | 9347a9d2f4c5225dc486f0c64fdf702725fba227 (diff) |
feat: add instagram icon
merge from original theme ahonn/hexo-theme-even@c91e68825dbf624e3398509c6856f644955a3129
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | src/css/_partial/_iconfont.scss | 22 |
2 files changed, 15 insertions, 8 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index bd7b946..b7c3061 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -86,6 +86,7 @@ copyright = "" # default: author.name ↓ # 默认为下面配 j-douban = "http://localhost:1313" k-pocket = "http://localhost:1313" l-tumblr = "http://localhost:1313" + m-instagram = "http://localhost:1313" # 将下面这段配置取消注释可以使 hugo 生成 .md 文件 # Uncomment these options to make hugo output .md files. diff --git a/src/css/_partial/_iconfont.scss b/src/css/_partial/_iconfont.scss index 3f3c794..cf8c967 100644 --- a/src/css/_partial/_iconfont.scss +++ b/src/css/_partial/_iconfont.scss @@ -4,11 +4,11 @@ @font-face { font-family: 'iconfont'; /* project id 96542 */ - src: url('//at.alicdn.com/t/font_96542_d5q5xyswt0kq33di.eot'); - src: url('//at.alicdn.com/t/font_96542_d5q5xyswt0kq33di.eot?#iefix') format('embedded-opentype'), - url('//at.alicdn.com/t/font_96542_d5q5xyswt0kq33di.woff') format('woff'), - url('//at.alicdn.com/t/font_96542_d5q5xyswt0kq33di.ttf') format('truetype'), - url('//at.alicdn.com/t/font_96542_d5q5xyswt0kq33di.svg#iconfont') format('svg'); + src: url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.eot'); + src: url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.eot?#iefix') format('embedded-opentype'), + url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.woff') format('woff'), + url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.ttf') format('truetype'), + url('//at.alicdn.com/t/font_96542_ixz9jngnf1sb57b9.svg#iconfont') format('svg'); } .iconfont { @@ -20,6 +20,12 @@ cursor: pointer; } +.icon-instagram:before { + font-size: .95em; + content: "\e611"; + position: relative; + top: -1px; +} .icon-douban:before { content: "\e610"; } @@ -80,13 +86,13 @@ /* Generic Icon */ .icon-heart:before { - content: "\e608"; + content: "\e608"; } -.icon-right:before { +.icon-right:before { content: "\e60a"; } .icon-left:before { - content: "\e60b"; + content: "\e60b"; } .icon-up:before { content: "\e60c"; |