Align text left on newsletter cards for Outlook
This commit is contained in:
@@ -406,6 +406,7 @@
|
|||||||
}
|
}
|
||||||
.card-info-container {
|
.card-info-container {
|
||||||
padding-left: 4px;
|
padding-left: 4px;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
.card-instance.movie .card-info-container,
|
.card-instance.movie .card-info-container,
|
||||||
.card-instance.show .card-info-container{
|
.card-instance.show .card-info-container{
|
||||||
@@ -414,7 +415,7 @@
|
|||||||
.card-instance.album .card-info-container {
|
.card-instance.album .card-info-container {
|
||||||
height: 152px;
|
height: 152px;
|
||||||
}
|
}
|
||||||
.card-info-container > table {
|
.card-info-container .card-info-container-table {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.card-info-title {
|
.card-info-title {
|
||||||
@@ -648,8 +649,8 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="card-info-container" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 14px;vertical-align: top;padding-left: 4px;height: 227px;">
|
<td class="card-info-container" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 14px;vertical-align: top;padding-left: 4px;text-align: left;height: 227px;">
|
||||||
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate;mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 100%;height: 100%;">
|
<table border="0" cellpadding="0" cellspacing="0" class="card-info-container-table" style="border-collapse: separate;mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 100%;height: 100%;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="card-info-title nowrap" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 0.9rem;vertical-align: top;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;border-bottom: 1px solid rgba(255, 255, 255, .1);line-height: 1.2rem;padding: 5px;">
|
<td class="card-info-title nowrap" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 0.9rem;vertical-align: top;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;border-bottom: 1px solid rgba(255, 255, 255, .1);line-height: 1.2rem;padding: 5px;">
|
||||||
@@ -757,8 +758,8 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="card-info-container" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 14px;vertical-align: top;padding-left: 4px;height: 227px;">
|
<td class="card-info-container" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 14px;vertical-align: top;padding-left: 4px;text-align: left;height: 227px;">
|
||||||
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate;mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 100%;height: 100%;">
|
<table border="0" cellpadding="0" cellspacing="0" class="card-info-container-table" style="border-collapse: separate;mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 100%;height: 100%;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="card-info-title nowrap" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 0.9rem;vertical-align: top;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;border-bottom: 1px solid rgba(255, 255, 255, .1);line-height: 1.2rem;padding: 5px;">
|
<td class="card-info-title nowrap" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 0.9rem;vertical-align: top;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;border-bottom: 1px solid rgba(255, 255, 255, .1);line-height: 1.2rem;padding: 5px;">
|
||||||
@@ -893,8 +894,8 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="card-info-container" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 14px;vertical-align: top;padding-left: 4px;height: 152px;">
|
<td class="card-info-container" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 14px;vertical-align: top;padding-left: 4px;text-align: left;height: 152px;">
|
||||||
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate;mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 100%;height: 100%;">
|
<table border="0" cellpadding="0" cellspacing="0" class="card-info-container-table" style="border-collapse: separate;mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 100%;height: 100%;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="card-info-title nowrap" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 0.9rem;vertical-align: top;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;border-bottom: 1px solid rgba(255, 255, 255, .1);line-height: 1.2rem;padding: 5px;">
|
<td class="card-info-title nowrap" style="font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 0.9rem;vertical-align: top;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;border-bottom: 1px solid rgba(255, 255, 255, .1);line-height: 1.2rem;padding: 5px;">
|
||||||
|
@@ -406,6 +406,7 @@
|
|||||||
}
|
}
|
||||||
.card-info-container {
|
.card-info-container {
|
||||||
padding-left: 4px;
|
padding-left: 4px;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
.card-instance.movie .card-info-container,
|
.card-instance.movie .card-info-container,
|
||||||
.card-instance.show .card-info-container{
|
.card-instance.show .card-info-container{
|
||||||
@@ -414,7 +415,7 @@
|
|||||||
.card-instance.album .card-info-container {
|
.card-instance.album .card-info-container {
|
||||||
height: 152px;
|
height: 152px;
|
||||||
}
|
}
|
||||||
.card-info-container > table {
|
.card-info-container .card-info-container-table {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.card-info-title {
|
.card-info-title {
|
||||||
@@ -649,7 +650,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="card-info-container">
|
<td class="card-info-container">
|
||||||
<table border="0" cellpadding="0" cellspacing="0">
|
<table border="0" cellpadding="0" cellspacing="0" class="card-info-container-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="card-info-title nowrap">
|
<td class="card-info-title nowrap">
|
||||||
@@ -758,7 +759,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="card-info-container">
|
<td class="card-info-container">
|
||||||
<table border="0" cellpadding="0" cellspacing="0">
|
<table border="0" cellpadding="0" cellspacing="0" class="card-info-container-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="card-info-title nowrap">
|
<td class="card-info-title nowrap">
|
||||||
@@ -894,7 +895,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td class="card-info-container">
|
<td class="card-info-container">
|
||||||
<table border="0" cellpadding="0" cellspacing="0">
|
<table border="0" cellpadding="0" cellspacing="0" class="card-info-container-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="card-info-title nowrap">
|
<td class="card-info-title nowrap">
|
||||||
|
@@ -417,7 +417,7 @@ class Newsletter(object):
|
|||||||
with open(newsletter_file_fp, 'wb') as n_file:
|
with open(newsletter_file_fp, 'wb') as n_file:
|
||||||
for line in self.newsletter.encode('utf-8').splitlines():
|
for line in self.newsletter.encode('utf-8').splitlines():
|
||||||
if '<!-- IGNORE SAVE -->' not in line:
|
if '<!-- IGNORE SAVE -->' not in line:
|
||||||
n_file.write(line)
|
n_file.write(line + '\r\n')
|
||||||
|
|
||||||
logger.info(u"Tautulli Newsletters :: %s newsletter saved to %s" % (self.NAME, newsletter_file))
|
logger.info(u"Tautulli Newsletters :: %s newsletter saved to %s" % (self.NAME, newsletter_file))
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
Reference in New Issue
Block a user