public cssEntryDefinition CreateAlternative(cssSelectorEnum selector) { cssEntryDefinition output = new cssEntryDefinition(); output.name = name.add(selector.ToCSS(), " "); return(output); }
public cssEntryDefinition AddVariation(cssEntryDefinition from, cssSelectorEnum selector) { cssEntryDefinition output = from.CreateAlternative(selector); Set(output, cssEntryPolicy.merge); return(this[output.name]); }
public static String ToCSS(this cssSelectorEnum input) { return(":" + input.ToString().Replace("d_", ":")); }