deanshot1: (Default)
deanshot1 ([personal profile] deanshot1) wrote in [community profile] style_system2017-05-12 01:11 am

Use of Tiny Icons, Problem Solved

 Hi there,

I was wondering if there was a way to use Tiny Icon Images instead of  text like Location, Current Music, Mood. 

Any help would be most appreciated. 

Problem Solved
syntheid: [Elementary] Watson drinking tea looking contemplative (Default)

[personal profile] syntheid 2017-05-12 07:15 pm (UTC)(link)
You could add in your CSS something like:

/* this hides the text visually, note this hides it on all of them, so if you want to only replace some headers, make sure to use their specific class like .metadata-label-mood instead of just .metadata-label */
.metadata-label {
  border: 0;
  font: 0/0 a;
  text-shadow: none;
  color: transparent;
}
/* this adds a pseudo element to put an image into */
.metadata-label:before {
  content: '';
  display: inline-block;
}
/* these define the image replacements, make sure to use the width/height of your image */
.metadata-label-mood:before {
  background: url(http://yourimage.jpg);
  width: 20px;
  height: 20px;
}
.metadata-label-music:before {
  background: url(http://yourimage.jpg);
  width: 20px;
  height: 20px;
}
.metadata-label-location:before {
  background: url(http://yourimage.jpg);
  width: 20px;
  height: 20px;
}
Edited 2017-05-12 19:17 (UTC)
syntheid: [Elementary] Watson drinking tea looking contemplative (Default)

[personal profile] syntheid 2017-05-13 05:37 am (UTC)(link)
Um, it looks like tags are not part of metadata, so the structure's slightly different. But you should be able to: