zurb / foundation-icon-fonts

Foundation Icon Fonts
110 stars 41 forks source link

Simplify _foundation-icons.scss? #17

Open imsadhappy opened 9 years ago

imsadhappy commented 9 years ago

Hi. A question concerning _foundation-icons.scss.

Why not use CSS [attribute^=value] selector, rather than enumerate all the .fi-[icon]:before (from line 20 to line 302)? The specification on w3school for this is quite clear. The support is down to IE7.

Like this:

[class^="fi-"]:before {
font-family: "foundation-icons";
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
display: inline-block;
text-decoration: inherit;
}