Esempio n. 1
0
        public static string GetStyle()
        {
            var tooltipCssSet = new CssSet("tooltip-style");

            tooltipCssSet.AddElement(new CssElement(".tooltip")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.Width, "100%")
                }
            });
            tooltipCssSet.AddElement(new CssElement("#tooltip-item-inner-text")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.TextAlign, "center"),
                    new StyleAttribute(HtmlTextWriterStyle.Width, "100%")
                }
            });
            tooltipCssSet.AddElement(new CssElement(".tooltip:after")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute("background", Colors.TooltipBackground),
                    new StyleAttribute("-webkit-box-shadow", "3px 3px 5px 0px rgba(166,166,166,0.75)"),
                    new StyleAttribute("-moz-box-shadow", "3px 3px 5px 0px rgba(166,166,166,0.75)"),
                    new StyleAttribute("box-shadow", "3px 3px 5px 0px rgba(166,166,166,0.75)"),
                    new StyleAttribute(HtmlTextWriterStyle.Color, "white"),
                    new StyleAttribute("content", "attr(data-tooltip)"),
                    new StyleAttribute(HtmlTextWriterStyle.MarginTop, "50px"),
                    new StyleAttribute(HtmlTextWriterStyle.Left, "-9999px"),
                    new StyleAttribute("opacity", "0"),
                    new StyleAttribute(HtmlTextWriterStyle.Padding, "10px 15px"),
                    new StyleAttribute(HtmlTextWriterStyle.Position, "absolute"),
                    new StyleAttribute(HtmlTextWriterStyle.Visibility, "hidden"),
                    new StyleAttribute("transition", "all 0.5s ease-out")
                }
            });
            tooltipCssSet.AddElement(new CssElement(".tooltip:hover:after")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute("opacity", "1"),
                    new StyleAttribute(HtmlTextWriterStyle.Left, "20%"),
                    new StyleAttribute(HtmlTextWriterStyle.Visibility, "visible")
                }
            });
            return(tooltipCssSet.ToString());
        }
        public static string GetStyle()
        {
            var mainInfoCssSet = new CssSet("main-information-style");

            mainInfoCssSet.AddElement(new CssElement("em.bullet")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute("border-radius", "3px"),
                    new StyleAttribute(HtmlTextWriterStyle.Width, "7px"),
                    new StyleAttribute(HtmlTextWriterStyle.Height, "7px"),
                    new StyleAttribute(HtmlTextWriterStyle.Margin, "0 5px"),
                    new StyleAttribute("background", ReportColors.Bullet),
                    new StyleAttribute(HtmlTextWriterStyle.Display, "inline-block")
                }
            });
            return(mainInfoCssSet.ToString());
        }
Esempio n. 3
0
        private static string GetStyle()
        {
            var barCssSet = new CssSet("bar-style");

            barCssSet.AddElement(new CssElement(".horizontal-bar")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.BackgroundColor, "white"),
                    new StyleAttribute(HtmlTextWriterStyle.Width, "94%"),
                    new StyleAttribute(HtmlTextWriterStyle.Padding, "1% 3% 1% 3%"),
                    new StyleAttribute(HtmlTextWriterStyle.Display, "table"),
                    new StyleAttribute("table-layout", "fixed")
                }
            });
            barCssSet.AddElement(new CssElement("#horizontal-bar-item")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute("-webkit-box-shadow", "0px 5px 5px 0px rgba(166,166,166,0.75)"),
                    new StyleAttribute("-moz-box-shadow", "0px 5px 5px 0px rgba(166,166,166,0.75)"),
                    new StyleAttribute("box-shadow", "0px 5px 5px 0px rgba(166,166,166,0.75)"),
                    new StyleAttribute(HtmlTextWriterStyle.Display, "table-cell"),
                    new StyleAttribute(HtmlTextWriterStyle.Height, "35px")
                }
            });
            barCssSet.AddElement(new CssElement("#horizontal-bar-item:hover")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute("-webkit-box-shadow", "0px 10px 10px 0px rgba(166,166,166,0.75)"),
                    new StyleAttribute("-moz-box-shadow", "0px 10px 10px 0px rgba(166,166,166,0.75)"),
                    new StyleAttribute("box-shadow", "0px 10px 10px 0px rgba(166,166,166,0.75)"),
                    new StyleAttribute(HtmlTextWriterStyle.MarginBottom, "10px"),
                    //new StyleAttribute("opacity", "0.75")
                }
            });
            return(barCssSet.ToString());
        }
Esempio n. 4
0
        public static string GetStyle()
        {
            var testCssSet = new CssSet("testcase-element");

            testCssSet.AddElement(new CssElement("#" + Id)
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.Margin, "0"),
                    new StyleAttribute(HtmlTextWriterStyle.Padding, "0"),
                    new StyleAttribute(HtmlTextWriterStyle.FontSize, "16px")
                }
            });
            testCssSet.AddElement(new CssElement("#" + Id + " b")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.Width, "100%"),
                    new StyleAttribute(HtmlTextWriterStyle.Margin, "0"),
                    new StyleAttribute(HtmlTextWriterStyle.Padding, "0"),
                    new StyleAttribute(HtmlTextWriterStyle.FontSize, "18px")
                }
            });
            testCssSet.AddElement(new CssElement(".test-window")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.Width, "100%"),
                    new StyleAttribute(HtmlTextWriterStyle.Overflow, "auto"),
                    new StyleAttribute(HtmlTextWriterStyle.Top, "0%"),
                    new StyleAttribute(HtmlTextWriterStyle.Position, "absolute")
                }
            });
            testCssSet.AddElement(new CssElement(".tabs-menu")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.ListStyleType, "none")
                }
            });
            testCssSet.AddElement(new CssElement(".tabs-menu li")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.BackgroundColor, Colors.TestBorderColor),
                    new StyleAttribute(HtmlTextWriterStyle.Height, "30px"),
                    new StyleAttribute("float", "left"),
                    new StyleAttribute("margin-right", "10px")
                }
            });
            testCssSet.AddElement(new CssElement(".tabs-menu li.current")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.BackgroundColor, Colors.White),
                    new StyleAttribute(HtmlTextWriterStyle.ZIndex, "5")
                }
            });
            testCssSet.AddElement(new CssElement(".tabs-menu li a")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.Color, "black"),
                    new StyleAttribute(HtmlTextWriterStyle.Padding, "10px"),
                    new StyleAttribute("text-decoration", "none")
                }
            });
            testCssSet.AddElement(new CssElement(".test-tab")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.BackgroundColor, Colors.White),
                    new StyleAttribute(HtmlTextWriterStyle.Width, "100%"),
                    new StyleAttribute("float", "left"),
                    new StyleAttribute("margin-bottom", "20px")
                }
            });
            testCssSet.AddElement(new CssElement(".tab-content")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.Width, "100%"),
                    new StyleAttribute(HtmlTextWriterStyle.Display, "none")
                }
            });
            testCssSet.AddElement(new CssElement("#test-screenshots-href")
            {
                StyleFields = new List <StyleAttribute>
                {
                    new StyleAttribute(HtmlTextWriterStyle.Display, "block")
                }
            });
            return(testCssSet.ToString());
        }