예제 #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");
            }
        }
예제 #2
0
 /// <summary>
 /// Creates a new CSS rule.
 /// </summary>
 internal CSSRule()
 {
     _type = CssRule.Unknown;
 }
예제 #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);
예제 #5
0
 /// <summary>
 /// Creates a new CSS rule.
 /// </summary>
 internal CSSRule()
 {
     _type = CssRule.Unknown;
 }