-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexample.mjml
79 lines (77 loc) · 2.83 KB
/
example.mjml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<mjml>
<mj-head>
<!-- You should always include this attributes section for accessibility
reasons. See https://github.com/premail/mjml-bullet-list#mjml-head -->
<mj-html-attributes>
<mj-selector path=".list table table">
<mj-html-attribute name="role">list</mj-html-attribute>
</mj-selector>
<mj-selector path=".list table table > tbody">
<mj-html-attribute name="role">presentation</mj-html-attribute>
</mj-selector>
</mj-html-attributes>
<!-- This sets attributes for the entire email. See
https://documentation.mjml.io/#mj-attributes -->
<mj-attributes>
<mj-all
font-size="16px"
color="#333"
font-family="-apple-system, BlinkMacSystemFont, Segoe UI, Liberation Sans, Helvetica, Arial, sans-serif"
/>
</mj-attributes>
<!-- These CSS styles will be automatically applied and inlined by MJML.
See https://documentation.mjml.io/#mj-style -->
<!-- prettier-ignore -->
<mj-style inline="inline">
.list {
}
.list-item {
}
</mj-style>
</mj-head>
<mj-body>
<mj-section>
<mj-column>
<mj-text>
<p>
Examples of the custom "mj-list" and "mj-li" tags. Here is a list
with an option set on the entire list:
</p>
</mj-text>
<mj-list background-color="#ddd">
<mj-li>List item one.</mj-li>
<mj-li>List item two.</mj-li>
<mj-li>List item three.</mj-li>
<mj-li>List item four.</mj-li>
</mj-list>
<mj-text>
<p>And here's a list with options set on individual list items:</p>
</mj-text>
<mj-list>
<mj-li
>List item one. Lorem ipsum dolor sit amet, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.</mj-li
>
<mj-li color="blue"
>List item two, customized color for the entire list item.</mj-li
>
<mj-li>List item three.</mj-li>
<mj-li bullet-color="red" padding-left="40px"
>List item four, customized bullet color and left padding. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.</mj-li
>
<mj-li gutter="20px">List item five, custom gutter size.</mj-li>
<mj-li>List item six.</mj-li>
<mj-li text-color="green"
>List item seven, customized text (only) color. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
ea commodo consequat.</mj-li
>
</mj-list>
</mj-column>
</mj-section>
</mj-body>
</mjml>