aboutsummaryrefslogtreecommitdiff
path: root/source/css/theme.css
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2016-01-08 17:42:32 -0800
committerZhiming Wang <zmwangx@gmail.com>2016-01-08 17:42:32 -0800
commit09ba859d9a6f95db49ef923395ea457b64439290 (patch)
treedea03dcbdc6af49c3e3c6d9933edc16b1e6b5016 /source/css/theme.css
parent7db0f99db806560475be747f720986cbef4b4d4b (diff)
downloadmy_new_personal_website-09ba859d9a6f95db49ef923395ea457b64439290.tar.xz
my_new_personal_website-09ba859d9a6f95db49ef923395ea457b64439290.zip
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.
Diffstat (limited to 'source/css/theme.css')
-rw-r--r--source/css/theme.css30
1 files changed, 19 insertions, 11 deletions
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 {