-
Notifications
You must be signed in to change notification settings - Fork 1
Newsletter Template
Yuwen Song edited this page Aug 6, 2014
·
2 revisions
<title>devo.ps Email Template</title>
<style>
/* -------------------------------------
GLOBAL
------------------------------------- */
* {
margin: 0;
padding: 0;
font-family: "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
font-size: 100%;
line-height: 1.6;
}
</style>
img {
max-width: 100%;
}
body {
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none;
width: 100%!important;
height: 100%;
}
/* -------------------------------------
ELEMENTS
------------------------------------- */
a {
color: #1f8dd6;
text-decoration: none;
}
.btn-primary {
text-decoration: none;
color: #fff;
background-color: #50cd84;
border: 1px solid #48b876;
text-transform: uppercase;
line-height: 2;
font-size: 11px;
padding: 10px 60px;
margin-right: 10px;
text-align: center;
cursor: pointer;
display: inline-block;
border-radius: 2px;
}
.btn-secondary {
text-decoration: none;
color: #fff;
background-color: #1f8dd6;
border: 1px solid #1b7ec0;
text-transform: uppercase;
font-size: 11px;
line-height: 2;
padding: 8px 40px;
margin-right: 10px;
text-align: center;
cursor: pointer;
display: inline-block;
border-radius: 2px;
}
.last {
margin-bottom: 0;
}
.first {
margin-top: 0;
}
.padding {
padding: 10px 0;
}
/* -------------------------------------
BODY
------------------------------------- */
table.body-wrap {
width: 100%;
padding: 20px;
}
table.body-wrap .container {
color: #a5adb3;
}
/* -------------------------------------
FOOTER
------------------------------------- */
table.footer-wrap {
width: 100%;
clear: both!important;
}
.footer-wrap .container p {
font-size: 12px;
color: #a5adb3;
}
table.footer-wrap a {
color: #a5adb3;
text-decoration: underline;
}
/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
h1, h2, h3 {
color: #203442;
line-height: 1.1;
margin-bottom: 15px;
margin: 40px 0 10px;
line-height: 1.2;
font-weight: 200;
}
h1 {
font-size: 36px;
}
h2 {
font-size: 28px;
}
h3 {
font-size: 22px;
}
p, ul, ol {
margin-bottom: 10px;
font-weight: normal;
font-size: 14px;
}
ul li, ol li {
margin-left: 5px;
list-style-position: inside;
}
hr {
border: none;
height: 1px;
background-color: #ddd;
}
/* ---------------------------------------------------
RESPONSIVENESS
Nuke it from orbit. It's the only way to be sure.
------------------------------------------------------ */
/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
.container {
display: block!important;
max-width: 600px!important;
margin: 0 auto!important; /* makes it centered */
clear: both!important;
}
/* Set the padding on the td rather than the div for Outlook compatibility */
.body-wrap .container {
padding: 20px;
}
/* This should also be a block element, so that it will fill 100% of the .container */
.content {
max-width: 600px;
margin: 0 auto;
display: block;
}
/* Let's make sure tables in the content area are 100% wide */
.content table {
width: 100%;
}
|
|