Skip to content

Commit

Permalink
[#2059] Simplified and improved padding of mail templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Feb 13, 2024
1 parent de23c88 commit 68f026f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/open_inwoner/conf/parts/case_status_notification.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<table border="0" width="100%" class="table-mail">
<table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%" class="table-mail">
<tbody>
<tr>
<td class="td-mail td__padding-all" colspan="6">
Expand Down Expand Up @@ -31,10 +31,10 @@ <h2>{{ type_description }}</h2>
<td class="td-mail td-mail__bg-info td__padding-all" colspan="6">
<div class="td-mail__bg-white">
<p>
<table border="0" width="100%">
<table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="35" class="td-mail td__padding-left align-center">
<img src="/static/img/mail/info_info-blue.jpg" alt="">
<img src="/static/img/mail/info_info-blue.jpg" width="20" height="20" alt="" class="mail__icon">
</td>
<td class="td__padding-top td__padding-right td__padding-bottom">
<p class="text-color__info">De status is gewijzigd naar <span class="status_current"><strong><a href="{{ case_link }}" class="text-color__info">{{ type_description }}</a></strong></span>.</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<table border="0" width="100%" class="table-mail">
<table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%" class="table-mail">
<tbody>
<tr>
<td class="td-mail td__padding-all" colspan="6">
Expand Down Expand Up @@ -29,10 +29,10 @@ <h2>{{ type_description }}</h2>
<td class="td-mail td-mail__bg-danger td__padding-all" colspan="6">
<div class="td-mail__bg-white">
<p>
<table border="0" width="100%">
<table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="35" class="td-mail td__padding-left align-center">
<img src="/static/img/mail/alarm_danger-orange.jpg" alt="">
<img src="/static/img/mail/alarm_danger-orange.jpg" width="20" height="18" alt="" class="mail__icon">
</td>
<td class="td__padding-top td__padding-right td__padding-bottom">
<p class="text-color__danger"><strong>Wij hebben documenten van u nodig</strong><br>
Expand Down
3 changes: 0 additions & 3 deletions src/open_inwoner/static/img/mail/alarm_danger-orange.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/open_inwoner/static/img/mail/info_info-blue.svg

This file was deleted.

4 changes: 4 additions & 0 deletions src/open_inwoner/static/mailcss/email.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ td, .td-mail {
max-width: 600px;
}

.mail__icon {
border-right: 5px solid #FFFFFF;
}

.td-mail h1 {
font-size: 20px;
}
Expand Down
4 changes: 2 additions & 2 deletions src/open_inwoner/templates/mail/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@
<body>

<center>
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="table-mail">
<table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%" class="table-mail">
<tbody>
<tr>
<!-- Do not remove empty TD's !!! -->
<td></td>
<td width="600">
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="table-mail">
<table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%" class="table-mail">
<tr>
<td class="td-mail--accent td-mail__bg-accent" colspan="6" style="background-color: {{ theming.accent_color }};">&nbsp;</td>
</tr>
Expand Down

0 comments on commit 68f026f

Please sign in to comment.