From 7f9d3296975ff86a0294cde68be7ba54b93b6f54 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sun, 26 Jul 2015 22:19:10 -0700 Subject: rfooter icons: reduce duplication in CSS --- source/css/theme.css | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) (limited to 'source/css') 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 */ -- cgit v1.2.1