New welcome email (#28883)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
parent
3389c41b58
commit
934cab7508
102 changed files with 619 additions and 318 deletions
|
@ -192,6 +192,18 @@ table + p {
|
|||
}
|
||||
}
|
||||
|
||||
.email-dir-rtl {
|
||||
direction: rtl;
|
||||
|
||||
[dir='rtl'] & {
|
||||
direction: ltr;
|
||||
}
|
||||
}
|
||||
|
||||
.email-dir-ltr {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
.email-padding-24 {
|
||||
padding: 24px;
|
||||
}
|
||||
|
@ -216,6 +228,30 @@ table + p {
|
|||
border-bottom: 1px solid #dfdee3;
|
||||
}
|
||||
|
||||
.email-desktop-flex {
|
||||
font-size: 0;
|
||||
max-width: 740px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
&.email-dir-rtl > .email-desktop-column {
|
||||
direction: ltr;
|
||||
|
||||
[dir='rtl'] & {
|
||||
direction: rtl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.email-desktop-column {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
text-align: start;
|
||||
vertical-align: top;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
// Header
|
||||
.email-header-td {
|
||||
padding: 16px 32px;
|
||||
|
@ -312,6 +348,66 @@ table + p {
|
|||
}
|
||||
}
|
||||
|
||||
.email-header-card-table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
overflow: hidden;
|
||||
border-radius: 12px;
|
||||
background-color: #fff;
|
||||
border: 2px solid #fff;
|
||||
box-shadow: 0 4px 16px 0 rgba(23, 6, 59, 8%);
|
||||
}
|
||||
|
||||
.email-header-card {
|
||||
position: relative;
|
||||
max-height: 100px;
|
||||
}
|
||||
|
||||
.email-header-card-banner-td {
|
||||
border-radius: 12px 12px 0 0;
|
||||
height: 80px;
|
||||
background-color: #f3f2f5 !important;
|
||||
background-position: center !important;
|
||||
background-size: cover !important;
|
||||
}
|
||||
|
||||
.email-header-card-body-td {
|
||||
padding: 12px;
|
||||
|
||||
.email-btn-table {
|
||||
width: 100%;
|
||||
max-width: 212px;
|
||||
}
|
||||
}
|
||||
|
||||
.email-header-card-instance {
|
||||
margin-bottom: 4px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
word-break: break-all;
|
||||
color: #17063b;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
font-weight: 600;
|
||||
|
||||
&:only-of-type {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.email-header-card-description {
|
||||
margin-bottom: 12px;
|
||||
color: #746a89;
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
max-height: 32px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
// To make the design work with images off
|
||||
// we create an empty div that overlaps with
|
||||
// the rest of the content with a dark background.
|
||||
|
@ -336,6 +432,16 @@ table + p {
|
|||
mso-padding-alt: 32px;
|
||||
}
|
||||
|
||||
.email-body-columns-td {
|
||||
border-top: 1px solid #dfdee3;
|
||||
padding: 32px 24px 8px;
|
||||
}
|
||||
|
||||
.email-body-huge-padding-td {
|
||||
padding: 110px 32px 32px;
|
||||
mso-padding-alt: 32px;
|
||||
}
|
||||
|
||||
.email-body-padding-td {
|
||||
& > p {
|
||||
font-size: 14px;
|
||||
|
@ -353,6 +459,30 @@ table + p {
|
|||
}
|
||||
}
|
||||
|
||||
// Texts
|
||||
.email-h2 {
|
||||
margin-bottom: 4px;
|
||||
color: #17063b;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.email-h-sub {
|
||||
margin-bottom: 16px;
|
||||
color: #746a89;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
.email-p {
|
||||
margin-bottom: 16px;
|
||||
color: #746a89;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
// Footer
|
||||
.email-footer-td {
|
||||
padding: 28px 32px 32px;
|
||||
|
@ -539,8 +669,13 @@ table + p {
|
|||
background-color: #fff;
|
||||
}
|
||||
|
||||
.email-checklist-checked {
|
||||
border-color: #c4e6d7;
|
||||
background-color: #eaf6f1;
|
||||
}
|
||||
|
||||
.email-checklist-td {
|
||||
padding: 16px;
|
||||
padding: 16px 16px 6px;
|
||||
}
|
||||
|
||||
.email-checklist-icons-td {
|
||||
|
@ -576,10 +711,15 @@ table + p {
|
|||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 16.8px;
|
||||
|
||||
.email-checklist-checked & {
|
||||
color: #746a89;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 2px;
|
||||
margin: 0 0 12px;
|
||||
color: #746a89;
|
||||
font-size: 14px;
|
||||
line-height: 16.8px;
|
||||
|
@ -597,6 +737,194 @@ table + p {
|
|||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
div + div {
|
||||
margin-inline-start: auto;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
// Welcome email
|
||||
.email-welcome-apps-btns {
|
||||
font-size: 12px;
|
||||
line-height: 44px;
|
||||
}
|
||||
|
||||
.email-column-td {
|
||||
padding: 0 8px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.email-link-with-arrow {
|
||||
color: #6364ff;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 16.8px;
|
||||
|
||||
&:hover {
|
||||
color: #563acc !important;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
.email-column-action-td {
|
||||
padding: 24px 0;
|
||||
color: #6364ff;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 16.8px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
// Follow and hashtags
|
||||
.email-mini-wrapper-td {
|
||||
padding: 4px 0;
|
||||
|
||||
table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
}
|
||||
|
||||
.email-mini-td {
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e8e6eb;
|
||||
background-color: #fff;
|
||||
padding: 15px 16px;
|
||||
}
|
||||
|
||||
.email-mini-follow-img-td {
|
||||
width: 40px;
|
||||
vertical-align: top;
|
||||
|
||||
img {
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.email-mini-follow-text-td {
|
||||
padding-left: 8px;
|
||||
padding-right: 16px;
|
||||
vertical-align: top;
|
||||
|
||||
h3 {
|
||||
color: #17063b;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
p {
|
||||
color: #746a89;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.email-mini-follow-btn-td {
|
||||
width: 68px;
|
||||
vertical-align: top;
|
||||
|
||||
.email-btn-table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.email-btn-td {
|
||||
mso-padding-alt: 10px;
|
||||
}
|
||||
|
||||
.email-btn-a {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.email-mini-hashtag-td {
|
||||
height: 40px;
|
||||
|
||||
td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: #17063b;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
p {
|
||||
color: #746a89;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 16px;
|
||||
word-break: break-all;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
.email-mini-hashtag-img-td {
|
||||
width: 40px;
|
||||
height: 20px;
|
||||
white-space: nowrap;
|
||||
text-indent: -2px;
|
||||
font-size: 0;
|
||||
|
||||
& + td {
|
||||
padding-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.email-mini-hashtag-img-span {
|
||||
display: inline-block;
|
||||
max-width: 12px;
|
||||
font-size: 12px;
|
||||
|
||||
img {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
max-width: none;
|
||||
border: 2px solid #fff;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
// Extra content on light purple background
|
||||
.email-extra-wave {
|
||||
height: 42px;
|
||||
background-image: url('../images/mailer-new/welcome/purple-extra-soft-wave.png');
|
||||
background-position: bottom center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.email-extra-td {
|
||||
padding: 32px 32px 24px;
|
||||
background-color: #f0f0ff;
|
||||
background-image: url('../images/mailer-new/welcome/purple-extra-soft-spacer.png'); // Using an image to maintain the color even in forced dark modes
|
||||
|
||||
.email-column-td {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
// Feature card
|
||||
.email-feature-wrapper-td {
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.email-feature-td {
|
||||
padding: 24px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #e8e6eb;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
// Responsive
|
||||
|
@ -617,4 +945,21 @@ table + p {
|
|||
.email-desktop-flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.email-header-left {
|
||||
padding-right: 32px;
|
||||
}
|
||||
|
||||
.email-header-right {
|
||||
width: 240px;
|
||||
margin-inline-start: auto;
|
||||
}
|
||||
|
||||
.email-desktop-column {
|
||||
max-width: 346px !important;
|
||||
}
|
||||
|
||||
.email-desktop-text-right {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue