jenkins - add text in my css and display it in the html page email -
I was thinking that there is a way to add "text" to CSS so that the HTML page can write it. The reason for this is that the HTML page can not be able to handle my in-committers ($ {var}). I'm using the Jenkins Editable Email plugin
So I have my CSS:
& style; Style type = "text / css" & gt; A {color: # 4a72af} body {background color: # e4e4e4} body, p {margin: 0; Padding: IMG {Display: Block} H1, H2, H3, H4, H5, H6 {margin: 0.8mm}} h3 {font-size: 28px; Color: # 444! Important; Font-family: aerial, helvetica, non-serif} h4 {font-size: 22px; Color: # 4a72af! Important; Font-family: aerial, helvetica, non-serif} h5 {font-size: 18px; Color: # 444! Important; Font-family: aerial, helvetica, non-serif} p {font-size: 12px; Color: # 444! Important; Font-family: "Lucida Grande", "Lucida Suns", "Lucida Suns Unicode", Non-Serif, Line-height: 1.5} OIL IIGI {Display: Inline; Height: 20px} / * Divy Style * /. News {Text-align: center; Padding-top: 15px;} .content {width: 720px; Margin: 0 auto; Background color: white}. Round_border {margin-down: 5px; -Winkit-boundary-radius: 6px; -max-boundary-radius: 6px; Range radius: 6px; Margin-top: 0; Font-size: 14px; Padding: 6px; Border: 1px solid #ccc} .stats {background color: <% = $ {MyVar} == "Open"? 'Green': 'red'% & gt; Font-size: 28px; Font-weight: bold; color white; Width: 720px; Height: 52px; Margin-down: 18px; Text-align: center; Vertical-Alignment: Medium; Degradation: collapse; Background-Repeat: Do not Repeat Any;) Fixed .info {Color: White! Important; Text-Shadow: 0x -1 RGBA (0,0,0,0.3); Font-size: 32px; Line-height: 36px; Padding: 8px 0}. Main IMG {width: 38px; Margin-right: 16px; Height: 38px} .man table {font-size: 14px;}. My table {text-align: true;} Bottom-message {width: 720px; Cellpadding: 5px; Cell spacing: 0px}. Bottom-message. Message {font-size: 13px; Color: # AAA; Line-height: 18px; Text-align: center} .bottom-message .designed {font-size: 13px; Color: #aaa; Line-height: 18px; Font-style: italic; Text-align: correct} & lt; / Style & gt; & Lt; Body & gt; & Lt; Div class = "content round_border" & gt; & Lt; Div class = "condition" & gt; & Lt; P class = "info" & gt; Test & lt; / P & gt; & Lt; / Div & gt; & Lt ;! - Status - & gt; & Lt; div class = "main round_border" & gt; & Lt; Table & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Th & gt; Name: & lt; / Th & gt; & Lt; Td> Here's where the text should be & lt; / Td> & Lt; / TR & gt; .... As you can see in my lesson, I got $ {MyVar} in CSS. It works just fine but now I need another $ {MyVar2}, which has a string that I would like to go here:
& lt; Td> Here's where the text should be & lt; / Td> Because I can not write
& lt; Td> $ {MyVar2} & lt; / Td> This error will occur
so I would like to use it some way
.test $ {MyVar2} and after that it
& lt; Td class = "test" & gt; & Lt; / Td> Add to Is there any way to do this?
OK, you can use :: or :: after pseudo elements and their contents Can set:
div :: after {content: 'hello!'; }
Comments
Post a Comment