From 09ba859d9a6f95db49ef923395ea457b64439290 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Fri, 8 Jan 2016 17:42:32 -0800 Subject: Site design refresh part II: icon font Use slimmed icon font packaged by http://fontello.com/. I only need two glyphs: RSS and CC. I ended up picking the glyphs from the Entypo v2.0 family (https://github.com/danielbruce/entypo), licensed under SIL. I actually like the Font Awesome glyphs slightly better, but fontello currently only supports FA v4.3.0, which doesn't include the circular CC glyph I need. Old web fonts are kept for now. They will be removed after a while. See \#9. Open Sans is still in place and will be addressed later when the logo is attacked. The entire fontello package I downloaded, including the license, will be added to this repo as source/fonts/fontello/ later when I have implemented an exclude list in pyblog to prevent the directory from being copied to the deployment tree. --- source/css/theme.css | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) (limited to 'source/css/theme.css') diff --git a/source/css/theme.css b/source/css/theme.css index 83ceacb2..5909f7ab 100644 --- a/source/css/theme.css +++ b/source/css/theme.css @@ -226,27 +226,35 @@ noscript a { } .rss-icon, .atom-icon, .cc-icon { - position: relative; text-decoration: none; } .rss-icon, .atom-icon { - font-size: 16px; - margin: 0 2px; - top: 1px; -} - -/* fix problematic baseline shift in Firefox */ -@-moz-document url-prefix() { - .rss-icon { - top: 0; - } + margin: 0 3px; } .cc-icon { margin: 0 1px; } +.rss-icon:before, .atom-icon:before { + content: "\e800"; + font-family: fontello; + font-size: 105%; +} + +.rss-icon:before { + display: inline-block; + transform: scale(-1,1); + -webkit-transform: scale(-1,1); +} + +.cc-icon:before { + content: "\e801"; + font-family: fontello; + font-size: 95%; +} + /* blog index */ .blog-index-year-title { -- cgit v1.2.1