Skip to content

Instantly share code, notes, and snippets.

@jacobhq
Created March 2, 2021 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobhq/cfe010546f1429197a8bfd26890b909e to your computer and use it in GitHub Desktop.
Save jacobhq/cfe010546f1429197a8bfd26890b909e to your computer and use it in GitHub Desktop.
The stylesheet used on all post emails
/* Reset */
a,
table,
td {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
table,
td {
mso-table-lspace: 0;
mso-table-rspace: 0;
}
table {
border-collapse: collapse !important;
}
/* Default */
* {
margin: 0;
}
* + * {
margin-top: 12px;
}
* + h2,
* + h3,
* + h4,
* + h5,
* + h6 {
margin: 28px 0 -4px 0;
}
a {
color: #006796;
font-weight: 500;
text-decoration: none;
}
br,
td,
th,
thead,
tr {
margin: 0 !important;
}
h1 {
font-size: 45px;
line-height: 48px;
font-weight: 900;
}
h2 {
font-size: 32px;
line-height: 36px;
font-weight: 700;
}
h3 {
font-size: 23px;
line-height: 32px;
font-weight: 700;
}
h4 {
font-size: 18px;
line-height: 20px;
font-weight: 500;
}
h5 {
font-size: 16px;
line-height: 24px;
font-weight: 600;
}
h6 {
font-size: 13px;
line-height: 24px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
margin-top: 5px;
margin-bottom: 25px;
color: #737373;
}
hr {
border: 0 none;
border-bottom: 1px solid #022c43;
}
img {
-ms-interpolation-mode: bicubic;
border: 0;
display: block;
height: auto;
line-height: 100%;
max-width: 100%;
min-width: auto;
outline: none;
text-decoration: none;
width: 100%;
}
li {
margin-top: 4px;
padding: 0;
}
li > * {
margin: 0 !important;
}
pre {
padding: 12px;
background-color: #e4eaea;
white-space: pre-wrap;
}
pre,
code {
font-size: 14px;
line-height: 20px;
font-weight: 400;
font-family: 'SF Mono', Consolas, Menlo, Courier, monospace;
}
ul {
list-style-type: square;
}
ul,
ol,
table,
hr,
img,
pre {
margin: 32px 0 32px 0;
}
ul,
ol {
list-style-position: outside;
margin-left: -2em;
padding-left: 2em;
}
table {
border-collapse: collapse;
font-size: 15px;
font-variant-numeric: tabular-nums;
table-layout: auto;
width: 100%;
}
th,
td {
border-bottom: 1px solid #022c43;
margin: 0;
padding: 4px;
text-align: left;
}
th {
border-bottom-width: 2px;
}
tr {
vertical-align: top;
}
blockquote,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
p,
table,
ul {
font-family: system-ui, BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto,
Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol';
}
blockquote {
background: #fff;
border-left: 4px solid #808876;
font-size: 15px;
margin: 24px 0;
padding: 1em;
}
blockquote > * {
margin-top: 0;
}
.twitter-tweet {
border-color: #3da1d9;
}
/* Local */
.scribe {
-moz-osx-font-smoothing: grayscale;
-ms-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
background-color: #f7f9f9;
color: #022c43;
font-size: 17px;
font-variant-numeric: tabular-nums;
font-weight: 400;
line-height: 28px;
margin: 0;
overflow-x: hidden;
width: 100%;
word-wrap: break-word;
overflow-wrap: break-word;
}
article {
margin: 0 auto;
max-width: 600px;
min-width: 320px;
padding: 40px 24px;
}
.full-bleed {
background-color: rgba(183, 169, 161, 0.25);
margin: 0 -50% 0 -50%;
padding: 1px 50% 24px 50%;
}
/* Add your styles ↓ */
small {
color: #737373;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment