public cssEntryDefinition CreateAlternative(cssSelectorEnum selector)
        {
            cssEntryDefinition output = new cssEntryDefinition();

            output.name = name.add(selector.ToCSS(), " ");
            return(output);
        }
示例#2
0
        public cssEntryDefinition AddVariation(cssEntryDefinition from, cssSelectorEnum selector)
        {
            cssEntryDefinition output = from.CreateAlternative(selector);

            Set(output, cssEntryPolicy.merge);

            return(this[output.name]);
        }
示例#3
0
 public static String ToCSS(this cssSelectorEnum input)
 {
     return(":" + input.ToString().Replace("d_", ":"));
 }