Repository navigation
v2.1.0
Behaviour changes to review before upgrading: see UPGRADING.md.
Added
container_gutterspacing token (16px) and$am-container-gutter: the first
and last column of a row carry it as an outer, border-box, inlined padding;
nested columns do not repeat it.<title>in the layout head, set to the message subject (new
layouts/activemail/_document_headpartial).- Quality rules, on by default and disableable:
title,anchor_href,
placeholder(BuiltinRules::PLACEHOLDER),unsupported_color,
text_entities. Quality::Configuration#allow_declinedand theallow_declined:option of
Guard#violations,Guard#valid?,assert_email_qualityand
be_a_valid_email.Quality::Configuration#rule_exemptions(by preview name orpreview#email) and
theskip:option ofGuard#violations,Guard#valid?,assert_email_quality
andbe_a_valid_email: exempt a preview from named rules, built-in or custom,
without disabling them for every preview.mso-padding-alton the button cell so Outlook keeps the padding.- Below the container width, stacked columns take the container gutter on both
sides in clients that keep media queries.
Changed
- A nested
<columns>ghost cell andmax-widthare computed against the
content box of the enclosing columns (their share minus their padding)
instead of the container. - The MSO ghost cell of a column wraps it in its own
<table><tr>(the<th>
used to sit directly in a<td>). - Conditional comments use
<!--[if mso]>instead of<!--[if mso | IE]>. <button>and<cta>: the fill and the radius live on the cell only; the
<a>carriesdisplay:inline-block, the body font and a1.25line height.
The dark-mode fill targets the cell.<center>renders a<center align="center" class="float-center">and no
longer rewrites its children.- A mailer that declines to send (
NullMail) is adeclinedviolation unless
allowed. - The generated layouts render the same
_document_head,_headand_footer
partials as the gem layout. - With Premailer the parsed framework CSS is cached per stylesheet fingerprint
(a FIFO of 16) instead of being re-parsed for every email.
Removed
- The
.columns.first.lastSCSS rule: a lone column now takes both container
gutters through.firstand.last.