diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-07-26 22:19:10 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-07-26 22:19:10 -0700 |
commit | 7f9d3296975ff86a0294cde68be7ba54b93b6f54 (patch) | |
tree | 60c85f4b7ce6c5354b940e876db133ab2b0f9730 /source | |
parent | e68048797483a3e5cc5e1dc114a80a7af8fecbb9 (diff) | |
download | my_new_personal_website-7f9d3296975ff86a0294cde68be7ba54b93b6f54.tar.xz my_new_personal_website-7f9d3296975ff86a0294cde68be7ba54b93b6f54.zip |
rfooter icons: reduce duplication in CSS
Diffstat (limited to 'source')
-rw-r--r-- | source/css/theme.css | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/source/css/theme.css b/source/css/theme.css index b110ded5..9d5b56c2 100644 --- a/source/css/theme.css +++ b/source/css/theme.css @@ -189,13 +189,11 @@ noscript a { float: right; } -.cc-icon { +.rss-icon, .atom-icon, .cc-icon { width: 16px; height: 16px; margin: 0 2px; display: inline-block; - background-image: url("/img/cc-16.png"); - background-image: -webkit-image-set( url("/img/cc-16.png") 1x, url("/img/cc-32.png") 2x ); background-repeat: no-repeat; background-position: center; background-size: 16px; @@ -203,32 +201,21 @@ noscript a { font-size: 0; } +.rss-icon { + background-image: url("/img/rss-16.png"); + background-image: -webkit-image-set( url("/img/rss-16.png") 1x, url("/img/rss-32.png") 2x ); + background-size: 14px; +} + .atom-icon { - width: 16px; - height: 16px; - margin: 0 2px; - display: inline-block; background-image: url("/img/feed-16.png"); background-image: -webkit-image-set( url("/img/feed-16.png") 1x, url("/img/feed-32.png") 2x ); - background-repeat: no-repeat; - background-position: center; background-size: 14px; - vertical-align: middle; - font-size: 0; } -.rss-icon { - width: 16px; - height: 16px; - margin: 0 2px; - display: inline-block; - background-image: url("/img/rss-16.png"); - background-image: -webkit-image-set( url("/img/rss-16.png") 1x, url("/img/rss-32.png") 2x ); - background-repeat: no-repeat; - background-position: center; - background-size: 14px; - vertical-align: middle; - font-size: 0; +.cc-icon { + background-image: url("/img/cc-16.png"); + background-image: -webkit-image-set( url("/img/cc-16.png") 1x, url("/img/cc-32.png") 2x ); } /* blog index */ |