diff --git a/static/style.css b/static/style.css index 46d604b152..14c7fee082 100644 --- a/static/style.css +++ b/static/style.css @@ -1,8 +1,33 @@ +@font-face {font-family: "iconfont-home"; + src: url('//at.alicdn.com/t/font_1431765342_6775353.eot'); /* IE9*/ + src: url('//at.alicdn.com/t/font_1431765342_6775353.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('//at.alicdn.com/t/font_1431765342_6775353.woff') format('woff'), /* chrome銆乫irefox */ + url('//at.alicdn.com/t/font_1431765342_6775353.ttf') format('truetype'), /* chrome銆乫irefox銆乷pera銆丼afari, Android, iOS 4.2+*/ + url('//at.alicdn.com/t/font_1431765342_6775353.svg#iconfont') format('svg'); /* iOS 4.1- */ +} +.iconfont-home { + font-family:"iconfont-home" !important; + font-size:16px; + font-style:normal; + -webkit-font-smoothing: antialiased; + -webkit-text-stroke-width: 0.2px; + -moz-osx-font-smoothing: grayscale; +} +.icon-tag:before { content: "\e607"; } +.icon-lego:before { content: "\e600"; } +.icon-all:before { content: "\e601"; } +.icon-chevron:before { content: "\e602"; } +.icon-externallink:before { content: "\e603"; } +.icon-download:before { content: "\e604"; } +.icon-github:before { content: "\e605"; } +.icon-code:before { content: "\e606"; } + html { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } + html, body { height: 100%; } @@ -1042,7 +1067,7 @@ footer ul li > a { } .code-box-title:before { - font-family: iconfont; + font-family: iconfont-home; content: "\e607"; font-size: 16px; vertical-align: middle; diff --git a/theme/templates/code.html b/theme/templates/code.html index 87e1d75131..6bf1ba25f9 100644 --- a/theme/templates/code.html +++ b/theme/templates/code.html @@ -8,6 +8,6 @@
{{ post.meta.description }}
- + diff --git a/theme/templates/layout.html b/theme/templates/layout.html index ccee9248d7..6904689698 100644 --- a/theme/templates/layout.html +++ b/theme/templates/layout.html @@ -65,7 +65,7 @@