Hi, there,
I'm looking forward to improve my site's speed. Accordingly to Google's PageSpeed recommendations, I need to combine the [choices'] social media icons into a single CSS sprite.
The good: - I've found a nice tool for making the CSS sprites ( http://spritepad.wearekiss.com/ ), and I was able to select the social icons from choices theme that I'm actually using (twitter, facebook, Gplus, LinkedIn, RSS, and mail), drag them into the tool's canvas and combine them into a single CSS sprite.
The bad: Unfortunately, the CSS code automatically provided by that tool (not surprisingly) doesn't take into account responsive design. It has provided me the following code:
.icon-facebook, .icon-rss, .icon-mail, .icon-gplus, .icon-linkedin, .icon-twitter{
background: url(sprites.png) no-repeat;
}
.icon-facebook{
background-position: -43.5px 0;
width: 42px;
height: 84px;
}
.icon-rss{
background-position: -173px 0;
width: 42px;
height: 84px;
}
.icon-mail{
background-position: -216px 0;
width: 42px;
height: 84px;
}
.icon-gplus{
background-position: -87px 0;
width: 42px;
height: 84px;
}
.icon-linkedin{
background-position: -130px 0;
width: 42px;
height: 84px;
}
.icon-twitter{
background-position: 0 0;
width: 42px;
height: 84px;
}
QUESTION: Is there an relatively easy fix to adapt the CSS code above to work on choices' responsive layout? If yes, how could I do that?
Thank you very much!
Angelo














