public void WriteFontFace(FontFaceBlock fontface) { _wrapped.Write("@font-face"); StartClass(); foreach (var rule in fontface.Properties.Cast <NameValueProperty>()) { WriteRule(rule); } EndClass(); }
public void WriteFontFace(FontFaceBlock fontface) { _wrapped.Write("@font-face"); StartClass(); var properties = fontface.Properties.Cast <NameValueProperty>(); var firstN = properties.Take(properties.Count() - 1); var last = properties.LastOrDefault(); foreach (var rule in firstN) { WriteRule(rule, lastRule: false); } if (last != null) { WriteRule(last, lastRule: true); } EndClass(); }