Example #1
0
        private static string GetStyle()
        {
            var hrefButtonCssSet = new CssSet("href-open-button-style");
            hrefButtonCssSet.AddElement(new CssElement(".href-open-button")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute(HtmlTextWriterStyle.Height, "100%"),
                    new StyleAttribute(HtmlTextWriterStyle.Color, "black"),
                    new StyleAttribute(HtmlTextWriterStyle.Display, "block"),
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none"),
                    new StyleAttribute(HtmlTextWriterStyle.Padding, "2px")
				}
            });
            hrefButtonCssSet.AddElement(new CssElement(".href-open-button:hover")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute("filter", "alpha(opacity=85)"),
					new StyleAttribute("-moz-opacity", "0.85"),
					new StyleAttribute("opacity", ".85"),
                    new StyleAttribute(HtmlTextWriterStyle.Color, "black"),
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none !important")
				}
            });
            return hrefButtonCssSet.ToString();
        }
Example #2
0
        private static string GetStyle()
        {
            var barCssSet = new CssSet("footer-style");
            barCssSet.AddElement(new CssElement(".report-footer")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute(HtmlTextWriterStyle.Position, "relative"),
                    new StyleAttribute("bottom", "0"),
					new StyleAttribute(HtmlTextWriterStyle.FontSize, "15px")
				}
            });
            return barCssSet.ToString();
        }
Example #3
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();
        }
Example #4
0
        private static string GetStyle()
        {
            var titleCssSet = new CssSet("title-style");
            titleCssSet.AddElement(new CssElement(".report-title")
            {
                StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Width, "90%"),
					new StyleAttribute(HtmlTextWriterStyle.Display, "inline-block"),
					new StyleAttribute(HtmlTextWriterStyle.FontSize, "30px"),
					new StyleAttribute(HtmlTextWriterStyle.PaddingTop, "30px"),
					new StyleAttribute(HtmlTextWriterStyle.PaddingBottom, "30px")
				}
            });
            return titleCssSet.ToString();
        }
Example #5
0
        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", Colors.Bullet),
                    new StyleAttribute(HtmlTextWriterStyle.Display, "inline-block")
				}
            });
            return mainInfoCssSet.ToString();
        }
        public static string GetStyle()
        {
            var mainInfoCssSet = new CssSet("main-information-style");
            mainInfoCssSet.AddElement(new CssElement(_id)
            {
                StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Margin, "1% 0% 0% 0%"),
					new StyleAttribute(HtmlTextWriterStyle.Padding, "1% 2% 2% 2%"),
					new StyleAttribute(HtmlTextWriterStyle.BackgroundColor, "white"), 
					new StyleAttribute(HtmlTextWriterStyle.Width, "80%"), 
					new StyleAttribute(HtmlTextWriterStyle.Height, "20%"), 
					new StyleAttribute(HtmlTextWriterStyle.MarginLeft, "10%"), 
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none") 
				}
            }); 
            mainInfoCssSet.AddElement(new CssElement(_id + "h1")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute("font", "22px/36px Arial, sans-serif")
				}
            });
            mainInfoCssSet.AddElement(new CssElement(_id + "p")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute(HtmlTextWriterStyle.Margin, "10px 0"),
                    new StyleAttribute("font", "15px/19px Arial, sans-serif")
				}
            });
            mainInfoCssSet.AddElement(new CssElement(_id + "span")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute(HtmlTextWriterStyle.Color, "#4f4f4f"),
                    new StyleAttribute("font", "italic 11px/12px Georgia, Arial, sans-serif")
				}
            });
            return mainInfoCssSet.ToString();
        }
Example #7
0
        public static string GetStyle()
		{
			var testCssSet = new CssSet("testcase-element");
			testCssSet.AddElement(new CssElement("#" + Id)
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Width, "100%"),
					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("box-sizing", "border-box"),
					new StyleAttribute(HtmlTextWriterStyle.Overflow, "auto"),
					new StyleAttribute(HtmlTextWriterStyle.BackgroundColor, Colors.White),
					new StyleAttribute(HtmlTextWriterStyle.Top, "0%"),
					new StyleAttribute(HtmlTextWriterStyle.Height, "100%"),
					new StyleAttribute(HtmlTextWriterStyle.Padding, "10px"),
					new StyleAttribute("border", "10px solid " + Colors.ModalBorderColor),
					new StyleAttribute(HtmlTextWriterStyle.Position, "fixed")
				}
            });
			return testCssSet.ToString();
		}
Example #8
0
        private static string GetStyle()
        {
            var hrefButtonCssSet = new CssSet("href-button-style");
            hrefButtonCssSet.AddElement(new CssElement(".href-button")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute(HtmlTextWriterStyle.Color, "black"),
                    new StyleAttribute(HtmlTextWriterStyle.Display, "block"),
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none")
				}
            });
            hrefButtonCssSet.AddElement(new CssElement(".href-button:hover")
            {
                StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Color, "red"),
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none !important")
				}
            });
            return hrefButtonCssSet.ToString();
        }
Example #9
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();
        }
Example #10
0
		public static string GetStyle()
		{
			var treeCssSet = new CssSet("tests-tree-style");
			treeCssSet.AddElement(new CssElement(IdString + "ul, " + IdString + "li")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Margin, "0"),
					new StyleAttribute(HtmlTextWriterStyle.Padding, "0"),
					new StyleAttribute("list-style", "none")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "input")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Position, "absolute"),
					new StyleAttribute("opacity", "0")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "a")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "a:hover")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "underline")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "input + label + ul")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Margin, "0 0 0 22px"),
					new StyleAttribute(HtmlTextWriterStyle.Display, "none")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "label, " + IdString + "label::before")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Cursor, "pointer")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "input:disabled + label")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Cursor, "default"),
					new StyleAttribute("opacity", ".6")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "input:checked:not(:disabled) + label + ul")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Display, "block")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "label, " + IdString + "a, " + IdString + "label::before")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.Display, "block")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "label")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute("background-position", "18px 0")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "label::before")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute("content", "\"\""),
					new StyleAttribute(HtmlTextWriterStyle.Width, "16px"),
					new StyleAttribute(HtmlTextWriterStyle.Margin, "0 22px 0 0"),
					new StyleAttribute(HtmlTextWriterStyle.VerticalAlign, "middle"),
					new StyleAttribute("background-position", "0 -32px")
				}
			});
			treeCssSet.AddElement(new CssElement(IdString + "input:checked + label::before")
			{
				StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute("background-position", "0 -16px")
				}
			});
			return treeCssSet.ToString();
		}
Example #11
0
        private static string GetStyleString()
        {
            var barCssSet = new CssSet("reportmenu-style");
            barCssSet.AddElement(new CssElement(".reportmenu")
            {
                StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.MarginBottom, "10%")
				}
            });
            barCssSet.AddElement(new CssElement(".reportmenu .tab")
            {
                StyleFields = new List<StyleAttribute>
				{
					new StyleAttribute(HtmlTextWriterStyle.FontSize, "25px"),
					new StyleAttribute(HtmlTextWriterStyle.PaddingTop, "0.25em"),
					new StyleAttribute(HtmlTextWriterStyle.PaddingLeft, "10.25em"),
                    new StyleAttribute(HtmlTextWriterStyle.Color, "black"),
                    new StyleAttribute(HtmlTextWriterStyle.Display, "block"),
					new StyleAttribute(HtmlTextWriterStyle.Height, "35px"),
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none")
				}
            });
            barCssSet.AddElement(new CssElement(".reportmenu .tab-close")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute(HtmlTextWriterStyle.Color, "black"),
					new StyleAttribute(HtmlTextWriterStyle.Margin, "1% 2% 3% 97%"),
					new StyleAttribute(HtmlTextWriterStyle.PaddingBottom, "1%"),
                    new StyleAttribute(HtmlTextWriterStyle.Display, "block"),
					new StyleAttribute(HtmlTextWriterStyle.Height, "35px"),
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none")
				}
            });
            barCssSet.AddElement(new CssElement(".reportmenu .reportmenu-tab")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute(HtmlTextWriterStyle.Display, "block"),
					new StyleAttribute(HtmlTextWriterStyle.Height, "35px"),
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none")
				}
            });
            barCssSet.AddElement(new CssElement(".reportmenu .tab:hover,.reportmenu div:target .tab")
            {
                StyleFields = new List<StyleAttribute>
				{
                    new StyleAttribute("-o-transition", "0.5s ease-out, background 0.5s ease-in"),
                    new StyleAttribute("-ms-transition", "0.5s ease-out, background 0.5s ease-in"),
                    new StyleAttribute("-moz-transition:color", "0.5s ease-out, background 0.5s ease-in"),
                    new StyleAttribute("-webkit-transition", "0.5s ease-out, background 0.5s ease-in"),
                    new StyleAttribute("transition", "0.5s ease-out, background 0.5s ease-in"),
					new StyleAttribute("background", Colors.ReportMenuHoverBackground),
					new StyleAttribute(HtmlTextWriterStyle.PaddingTop, "0.25em"),
					new StyleAttribute(HtmlTextWriterStyle.PaddingLeft, "10.75em"),
					new StyleAttribute(HtmlTextWriterStyle.TextDecoration, "none")
				}
            });
            return barCssSet.ToString();
        }