Refactor
This commit is contained in:
parent
fb5779cfad
commit
53552e7008
3 changed files with 29 additions and 54 deletions
27
src/mjml/parts/head.mjml
Normal file
27
src/mjml/parts/head.mjml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<mj-attributes>
|
||||
<mj-all font-family="Raleway, sans-serif"
|
||||
font-size="12pt"
|
||||
/>
|
||||
<mj-body background-color="#f4f4f4" />
|
||||
<mj-text line-height="1.6" />
|
||||
<mj-button align="left"
|
||||
background-color="#6435c9"
|
||||
font-weight="700"
|
||||
/>
|
||||
|
||||
<mj-class name="segment"
|
||||
background-color="#fff"
|
||||
border="1px solid rgba(34,36,38,.15)"
|
||||
/>
|
||||
</mj-attributes>
|
||||
|
||||
<mj-font name="Raleway" href="https://fonts.googleapis.com/css?family=Raleway" />
|
||||
|
||||
<mj-style>
|
||||
a {
|
||||
color: #6435c9;
|
||||
}
|
||||
.segment {
|
||||
box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
|
||||
}
|
||||
</mj-style>
|
|
@ -1,32 +1,6 @@
|
|||
<mjml>
|
||||
<mj-head>
|
||||
<mj-attributes>
|
||||
<mj-all font-family="Raleway, sans-serif"
|
||||
font-size="12pt"
|
||||
/>
|
||||
<mj-body background-color="#f4f4f4" />
|
||||
<mj-text line-height="1.6" />
|
||||
<mj-button align="left"
|
||||
background-color="#6435c9"
|
||||
font-weight="700"
|
||||
/>
|
||||
|
||||
<mj-class name="segment"
|
||||
background-color="#fff"
|
||||
border="1px solid rgba(34,36,38,.15)"
|
||||
/>
|
||||
</mj-attributes>
|
||||
|
||||
<mj-font name="Raleway" href="https://fonts.googleapis.com/css?family=Raleway" />
|
||||
|
||||
<mj-style>
|
||||
a {
|
||||
color: #6435c9;
|
||||
}
|
||||
.segment {
|
||||
box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
|
||||
}
|
||||
</mj-style>
|
||||
<mj-include path="parts/head.mjml" />
|
||||
</mj-head>
|
||||
<mj-body>
|
||||
<mj-section><mj-column></mj-column></mj-section>
|
||||
|
|
|
@ -1,32 +1,6 @@
|
|||
<mjml>
|
||||
<mj-head>
|
||||
<mj-attributes>
|
||||
<mj-all font-family="Raleway, sans-serif"
|
||||
font-size="12pt"
|
||||
/>
|
||||
<mj-body background-color="#f4f4f4" />
|
||||
<mj-text line-height="1.6" />
|
||||
<mj-button align="left"
|
||||
background-color="#6435c9"
|
||||
font-weight="700"
|
||||
/>
|
||||
|
||||
<mj-class name="segment"
|
||||
background-color="#fff"
|
||||
border="1px solid rgba(34,36,38,.15)"
|
||||
/>
|
||||
</mj-attributes>
|
||||
|
||||
<mj-font name="Raleway" href="https://fonts.googleapis.com/css?family=Raleway" />
|
||||
|
||||
<mj-style>
|
||||
a {
|
||||
color: #6435c9;
|
||||
}
|
||||
.segment {
|
||||
box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
|
||||
}
|
||||
</mj-style>
|
||||
<mj-include path="parts/head.mjml" />
|
||||
</mj-head>
|
||||
<mj-body>
|
||||
<mj-section><mj-column></mj-column></mj-section>
|
||||
|
|
Loading…
Reference in a new issue