6 ms·
Disqus uses this technique to inherit the font color of the embedding page, To accommodate this wide range of design scenarios, we decided to use our own c
by tantalor 15y ago
Disqus uses this technique to inherit the font color of the embedding page,
To accommodate this wide range of design scenarios, we decided to use our own
custom web font via @font-face instead of traditional raster-based icons. This
provides us with the flexibility of inheriting font color and size from a site’s
existing aesthetic at an incredibly small file size (5kb). Since font-faces are
vector-based, we are able to serve these icons at any size without consequence.
http://blog.disqus.com/post/2944356158/introducing-houdini-the-new-look-of-disqus http://blog.disqus.com/post/2944356158/introducing-houdini-t...
- drivebyacct2 15y agoDisqus is already using a load of JavaScript, I don't understand why they couldn't grok for the color and then set it as a background color for some transparent icons, or some such.
- tantalor 15y agoAn SVG icon would probably work. My best guess is they couldn't reliably determine the correct background color to use.