Ejemplo n.º 1
0
        public SlideshowStyle(String name, String css)
        {
            this.Name = name;
            RuleCssParser cssRules = new RuleCssParser(css);
            CssRule       body     = cssRules["body"];

            if (body != null)
            {
                Color      = body.colorValue("color");
                Background = body.colorValue("background-color");
                FontSize   = body.intValue("font-size");
            }
            CssRule content = cssRules["#Content"];

            if (content != null)
            {
                marginLeft   = content.intValue("margin-left");
                marginRight  = content.intValue("margin-right");
                marginTop    = content.intValue("margin-top");
                marginBottom = content.intValue("margin-bottom");
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new CSS rule.
 /// </summary>
 internal CSSRule()
 {
     _type = CssRule.Unknown;
 }
Ejemplo n.º 3
0
 public FillOpacity(CssRule value)
 {
     this.Double = null;
     this.Enum   = value;
 }
 public static string ToJson(this CssRule self) => JsonConvert.SerializeObject(self, Blazor.Extensions.MergeStyles.RawConverter.Settings);
Ejemplo n.º 5
0
 /// <summary>
 /// Creates a new CSS rule.
 /// </summary>
 internal CSSRule()
 {
     _type = CssRule.Unknown;
 }