Skip to content

Commit 8ee2fe3

Browse files
committed
inline css in html emails
1 parent bb77f62 commit 8ee2fe3

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

templates/email_html_body.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@
7777
"unsubscribediscussionlink": "https://example.com/mod/discussion/subscribe.php?id=2&d=2"
7878
}
7979
}}
80-
<table class="moodleoverflowpost border-0 p-1">
80+
<table class="moodleoverflowpost" style="border:none;">
8181
<tr class="header">
82-
<td class="picture left w-25 align-top">
82+
<td class="picture left" style="vertical-align:top; width:35px; padding:3px;">
8383
{{{ authorpicture }}}
8484
</td>
85-
<td class="topic {{#firstpost}}starter{{/firstpost}}">
85+
<td class="topic {{#firstpost}}starter{{/firstpost}}" style="padding:3px;">
8686
<div class="subject">
8787
{{{ subject }}}
8888
</div>
@@ -97,15 +97,15 @@
9797
</td>
9898
</tr>
9999
<tr>
100-
<td class="left side align-top">
100+
<td class="left side" style="vertical-align:top; padding:3px;">
101101
{{#grouppicture}}
102102
{{{ grouppicture }}}
103103
{{/grouppicture}}
104104
{{^grouppicture}}
105105
&nbsp;
106106
{{/grouppicture}}
107107
</td>
108-
<td class="content">
108+
<td class="content" style="padding:3px;">
109109
{{{ message }}}
110110

111111
<div class="commands">

templates/email_rejected_html.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@
101101
<hr/>
102102
<br>
103103

104-
<table class="border-0 p-1 moodleoverflowpost">
104+
<table class="moodleoverflowpost" style="border:none;">
105105
<tr class="header">
106-
<td class="picture left align-top w-25">
106+
<td class="picture left" style="vertical-align:top; width:35px; padding:3px;">
107107
{{{ authorpicture }}}
108108
</td>
109-
<td class="topic {{#firstpost}}starter{{/firstpost}}">
109+
<td class="topic {{#firstpost}}starter{{/firstpost}}" style="padding:3px;">
110110
<div class="subject">
111111
{{{subject}}}
112112
</div>
@@ -121,15 +121,15 @@
121121
</td>
122122
</tr>
123123
<tr>
124-
<td class="left side align-top">
124+
<td class="left side" style="vertical-align:top; padding:3px;">
125125
{{#grouppicture}}
126126
{{{grouppicture}}}
127127
{{/grouppicture}}
128128
{{^grouppicture}}
129129
&nbsp;
130130
{{/grouppicture}}
131131
</td>
132-
<td class="content">
132+
<td class="content" style="padding:3px;">
133133
{{{message}}}
134134
</td>
135135
</tr>

templates/email_review_needed_html.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@
8989

9090
<a href="{{{permalink}}}"><h3>{{#str}}review_needed, mod_moodleoverflow{{/str}}</h3></a>
9191

92-
<table class="moodleoverflowpost b-0 p-1">
92+
<table class="moodleoverflowpost" style="border:none;">
9393
<tr class="header">
94-
<td class="picture left w-25 align-top">
94+
<td class="picture left" style="vertical-align:top; width:35px; padding:3px;">
9595
{{{ authorpicture }}}
9696
</td>
97-
<td class="topic {{#firstpost}}starter{{/firstpost}}">
97+
<td class="topic {{#firstpost}}starter{{/firstpost}}" style="padding:3px;">
9898
<div class="subject">
9999
{{{ subject }}}
100100
</div>
@@ -109,15 +109,15 @@
109109
</td>
110110
</tr>
111111
<tr>
112-
<td class="left side align-top">
112+
<td class="left side" style="vertical-align:top; padding:3px;">
113113
{{#grouppicture}}
114114
{{{ grouppicture }}}
115115
{{/grouppicture}}
116116
{{^grouppicture}}
117117
&nbsp;
118118
{{/grouppicture}}
119119
</td>
120-
<td class="content">
120+
<td class="content" style="padding:3px;">
121121
{{{ message }}}
122122
<div class="link">
123123
<a target="_blank" href="{{{ permalink }}}">

0 commit comments

Comments
 (0)