| 1 |
package notification::email::templates::style; |
| 2 |
|
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
|
| 6 |
use Exporter qw(import); |
| 7 |
|
| 8 |
our @EXPORT_OK = qw(get_css); |
| 9 |
|
| 10 |
sub get_css { |
| 11 |
return q{ |
| 12 |
<style type="text/css"> |
| 13 |
#outlook a { |
| 14 |
padding: 0; |
| 15 |
} |
| 16 |
|
| 17 |
.ReadMsgBody { |
| 18 |
width: 100%; |
| 19 |
} |
| 20 |
|
| 21 |
.ExternalClass { |
| 22 |
width: 100%; |
| 23 |
} |
| 24 |
|
| 25 |
.ExternalClass * { |
| 26 |
line-height: 100%; |
| 27 |
} |
| 28 |
|
| 29 |
body { |
| 30 |
margin: 0; |
| 31 |
padding: 0; |
| 32 |
-webkit-text-size-adjust: 100%; |
| 33 |
-ms-text-size-adjust: 100%; |
| 34 |
} |
| 35 |
|
| 36 |
table, |
| 37 |
td { |
| 38 |
border-collapse: collapse; |
| 39 |
mso-table-lspace: 0pt; |
| 40 |
mso-table-rspace: 0pt; |
| 41 |
} |
| 42 |
|
| 43 |
img { |
| 44 |
border: 0; |
| 45 |
height: auto; |
| 46 |
line-height: 100%; |
| 47 |
outline: none; |
| 48 |
text-decoration: none; |
| 49 |
-ms-interpolation-mode: bicubic; |
| 50 |
} |
| 51 |
|
| 52 |
p { |
| 53 |
display: block; |
| 54 |
margin: 13px 0; |
| 55 |
} |
| 56 |
</style><!--[if !mso]><!--> |
| 57 |
<style type="text/css"> |
| 58 |
@media only screen and (max-width:480px) { |
| 59 |
@-ms-viewport { |
| 60 |
width: 320px; |
| 61 |
} |
| 62 |
|
| 63 |
@viewport { |
| 64 |
width: 320px; |
| 65 |
} |
| 66 |
} |
| 67 |
</style><!--<![endif]--><!--[if mso]> |
| 68 |
<xml> |
| 69 |
<o:OfficeDocumentSettings> |
| 70 |
<o:AllowPNG/> |
| 71 |
<o:PixelsPerInch>96</o:PixelsPerInch> |
| 72 |
</o:OfficeDocumentSettings> |
| 73 |
</xml> |
| 74 |
<![endif]--><!--[if lte mso 11]> |
| 75 |
<style type="text/css"> |
| 76 |
.outlook-group-fix { width:100% !important; } |
| 77 |
</style> |
| 78 |
<![endif]--><!--[if !mso]><!--> |
| 79 |
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700" rel="stylesheet" type="text/css"> |
| 80 |
<style type="text/css"> |
| 81 |
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700); |
| 82 |
</style><!--<![endif]--> |
| 83 |
<style type="text/css"> |
| 84 |
@media only screen and (min-width:480px) { |
| 85 |
.mj-column-per-100 { |
| 86 |
width: 100% !important; |
| 87 |
max-width: 100%; |
| 88 |
} |
| 89 |
|
| 90 |
.mj-column-per-20 { |
| 91 |
width: 20% !important; |
| 92 |
max-width: 20%; |
| 93 |
} |
| 94 |
|
| 95 |
.mj-column-per-60 { |
| 96 |
width: 60% !important; |
| 97 |
max-width: 60%; |
| 98 |
} |
| 99 |
|
| 100 |
.mj-column-per-33 { |
| 101 |
width: 33.333333333333336% !important; |
| 102 |
max-width: 33.333333333333336%; |
| 103 |
} |
| 104 |
} |
| 105 |
</style> |
| 106 |
<style type="text/css"> |
| 107 |
@media only screen and (max-width:480px) { |
| 108 |
table.full-width-mobile { |
| 109 |
width: 100% !important; |
| 110 |
} |
| 111 |
|
| 112 |
td.full-width-mobile { |
| 113 |
width: auto !important; |
| 114 |
} |
| 115 |
} |
| 116 |
</style> |
| 117 |
<style type="text/css"> |
| 118 |
.notification-box { |
| 119 |
color: #333; |
| 120 |
padding: 20px; |
| 121 |
border: 1px solid #ccc; |
| 122 |
background-color: #f9f9f9; |
| 123 |
margin: 0 auto !important; |
| 124 |
} |
| 125 |
|
| 126 |
.header { |
| 127 |
background-color: <TMPL_VAR NAME="backgroundColor" >; |
| 128 |
padding: 0px; |
| 129 |
margin-bottom: 15px !important; |
| 130 |
} |
| 131 |
|
| 132 |
.font-header div { |
| 133 |
font-size: 24px !important; |
| 134 |
color: <TMPL_VAR NAME="textColor" > !important; |
| 135 |
} |
| 136 |
|
| 137 |
@media (max-width:480px) { |
| 138 |
.font-header div { |
| 139 |
font-size: 15px !important; |
| 140 |
} |
| 141 |
} |
| 142 |
|
| 143 |
.content { |
| 144 |
margin-top: 0px; |
| 145 |
padding: 0px 0px !important; |
| 146 |
} |
| 147 |
|
| 148 |
.status { |
| 149 |
color: <TMPL_VAR NAME="stateColor" >; |
| 150 |
font-weight: bold; |
| 151 |
font-size: 20px; |
| 152 |
} |
| 153 |
|
| 154 |
.status-info { |
| 155 |
padding: 5px; |
| 156 |
margin: 10px 0; |
| 157 |
background-color: white; |
| 158 |
border-left: 3px solid <TMPL_VAR NAME="stateColor" >; |
| 159 |
} |
| 160 |
|
| 161 |
.info-resources { |
| 162 |
background-color: #ddd; |
| 163 |
padding: 0px; |
| 164 |
color: #666; |
| 165 |
} |
| 166 |
|
| 167 |
p { |
| 168 |
padding: 0px; |
| 169 |
margin-bottom: 0px; |
| 170 |
margin-top: 0px; |
| 171 |
color: black; |
| 172 |
} |
| 173 |
|
| 174 |
.dynamic { |
| 175 |
padding-top: 0px; |
| 176 |
font-weight: bold; |
| 177 |
margin-bottom: 10px; |
| 178 |
color: black; |
| 179 |
} |
| 180 |
|
| 181 |
.button a { |
| 182 |
display: inline-block; |
| 183 |
padding: 5px 10px; |
| 184 |
border-radius: 5px; |
| 185 |
width: 100%; |
| 186 |
} |
| 187 |
|
| 188 |
@media (max-width:480px) { |
| 189 |
.button a { |
| 190 |
font-size: 9px !important; |
| 191 |
} |
| 192 |
} |
| 193 |
|
| 194 |
.graph-container { |
| 195 |
background-color: #f9f9f9; |
| 196 |
border: 1px solid #ccc; |
| 197 |
padding: 15px; |
| 198 |
margin-top: 20px; |
| 199 |
} |
| 200 |
</style> |
| 201 |
}; |
| 202 |
} |
| 203 |
|
| 204 |
1; |