123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986 |
- @import 'fonts/inter';
- body {
- accent-color: #6364ff;
- word-break: break-word;
- margin: 0;
- background-color: #f3f2f5;
- padding: 0;
- -webkit-text-size-adjust: none;
- text-size-adjust: none;
- }
- p,
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- margin: 0;
- background-color: transparent;
- padding: 0;
- border: none;
- font-family: Inter, 'Lucida Grande', sans-serif;
- }
- img {
- max-width: 100%;
- height: auto;
- border: none;
- text-indent: 0;
- vertical-align: middle;
- color: inherit;
- font-family: inherit;
- }
- table {
- border: none;
- }
- table + p {
- margin-top: 16px;
- }
- .email {
- min-width: 280px;
- font-family: Inter, 'Lucida Grande', sans-serif;
- word-break: break-word;
- color: #17063b;
- background-color: #f3f2f5;
- }
- .email-container {
- max-width: 740px;
- margin: 0 auto;
- width: 100%;
- }
- // Outer email card
- .email-card-table {
- border-collapse: collapse;
- width: 100%;
- }
- .email-card-td {
- overflow: hidden;
- box-shadow: 0 4px 16px 0 rgba(23, 6, 59, 4%);
- background-color: #fff;
- }
- // Inner email card
- .email-inner-card-table {
- border-collapse: separate;
- width: 100%;
- border-radius: 12px;
- }
- .email-inner-card-td-without-padding,
- .email-inner-card-td {
- border-radius: 12px;
- overflow: hidden;
- box-shadow: 0 4px 16px 0 rgba(23, 6, 59, 8%);
- background-color: #fff;
- border: 1px solid #dfdee3;
- }
- .email-inner-card-td {
- padding: 24px;
- }
- // Account
- .email-account-banner-table {
- background-color: #f3f2f5;
- border-top-left-radius: 12px;
- border-top-right-radius: 12px;
- }
- .email-account-banner-td {
- border-top-left-radius: 12px;
- border-top-right-radius: 12px;
- height: 140px;
- vertical-align: bottom;
- background-position: center !important;
- background-size: cover !important;
- }
- .email-account-banner-inner-td {
- padding: 24px 24px 0;
- mso-padding-alt: 24px;
- }
- .email-account-banner-overlap-div {
- max-height: 42px;
- }
- .email-account-banner-icon-table {
- width: auto;
- margin: 0;
- overflow: hidden;
- border-radius: 8px;
- border-collapse: separate;
- background-color: #fff;
- border: 2px solid #fff;
- img {
- display: block;
- max-width: 100%;
- border: none;
- border-radius: 6px;
- }
- }
- .email-account-body-td {
- padding: 56px 24px 24px;
- mso-padding-alt: 24px;
- }
- .email-account-name {
- font-size: 16px;
- font-weight: 600;
- line-height: 24px;
- color: #17063b;
- }
- .email-account-handle {
- font-size: 14px;
- line-height: 20px;
- color: #746a89;
- }
- .email-account-stats-table {
- td {
- padding-right: 16px;
- font-size: 14px;
- line-height: 20px;
- color: #746a89;
- }
- b {
- font-weight: 600;
- color: #17063b;
- }
- span {
- white-space: nowrap;
- }
- }
- // Utility classes
- .email-w-full {
- table-layout: fixed;
- width: 100%;
- }
- .email-prose {
- p {
- color: #17063b;
- font-size: 14px;
- line-height: 20px;
- &:not(:last-child) {
- margin-bottom: 16px;
- }
- a:not([class]) {
- color: #6364ff;
- text-decoration: none;
- &:hover {
- color: #563acc !important;
- }
- }
- }
- }
- .email-dir-rtl {
- direction: rtl;
- [dir='rtl'] & {
- direction: ltr;
- }
- }
- .email-dir-ltr {
- direction: ltr;
- }
- .email-padding-24 {
- padding: 24px;
- }
- .email-padding-top-24 {
- padding-top: 24px;
- }
- .email-padding-top-16 {
- padding-top: 16px;
- }
- .email-padding-top-0 {
- padding-top: 0;
- }
- .email-border-top {
- border-top: 1px solid #dfdee3;
- }
- .email-border-bottom {
- 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;
- background-color: #1b001f;
- background-image: url('../images/mailer-new/common/header-bg-start.png');
- background-position: left top;
- background-repeat: repeat;
- }
- .email-header-logo-table {
- width: auto;
- margin: 0;
- }
- .email-header-logo-td {
- padding: 16px 0;
- font-size: 0;
- img {
- color: #fff;
- font-size: 16px;
- font-weight: bold;
- max-height: 40px;
- }
- }
- .email-header-logo-a {
- display: inline-block;
- img {
- display: inline-block;
- color: #fff;
- }
- }
- .email-header-logo-div {
- max-height: 0;
- }
- .email-header-logo-p {
- word-break: break-all;
- padding-left: 40px;
- padding-top: 26px;
- font-size: 11px;
- line-height: 13px;
- color: #8d808f;
- text-align: left;
- }
- .email-header-logo-span {
- display: block;
- text-align: right;
- }
- .email-header-heading-td {
- padding: 16px 0;
- }
- .email-header-heading-img-td {
- width: 56px;
- text-align: left;
- vertical-align: top;
- img {
- width: 56px;
- height: 56px;
- border-radius: 12px;
- }
- }
- .email-header-heading-txt-td {
- vertical-align: middle;
- padding-left: 16px;
- padding-right: 16px;
- h1 {
- margin-bottom: 5px;
- color: #fff;
- font-size: 24px;
- line-height: 28px;
- font-weight: 600;
- }
- p {
- color: #a399a5;
- font-size: 18px;
- line-height: 21.6px;
- font-weight: 500;
- }
- &:only-child {
- padding-left: 0;
- padding-right: 0;
- }
- }
- .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;
- width: 236px;
- 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.
- .email-header-after-div {
- max-height: 0;
- }
- .email-header-after-inside-div {
- height: 30px;
- background-color: #1b001f;
- }
- // Body content
- .email-body-td {
- background-image: url('../images/mailer-new/common/header-bg-end.png');
- background-position: left top;
- background-repeat: no-repeat;
- }
- .email-body-padding-td {
- padding: 0 32px 32px;
- 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;
- line-height: 20px;
- color: #17063b;
- a {
- color: #6364ff;
- text-decoration: none;
- &:hover {
- color: #563acc !important;
- }
- }
- }
- }
- // 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;
- text-align: center;
- }
- .email-footer-logo-a {
- display: inline-block;
- }
- .email-footer-p {
- color: #9b94ab;
- text-align: center;
- font-size: 12px;
- line-height: 20px;
- a {
- color: #9b94ab;
- text-decoration: underline;
- }
- &:first-child {
- margin-bottom: 12px;
- }
- }
- // Button
- .email-btn-table {
- margin: 0;
- max-width: 100%;
- border-collapse: separate;
- border-radius: 8px;
- background-color: #6364ff;
- }
- .email-btn-td {
- height: 40px;
- text-align: center;
- mso-padding-alt: 0 35px;
- word-break: normal;
- }
- .email-btn-a {
- display: block;
- border-radius: 8px;
- padding-left: 35px;
- padding-right: 35px;
- padding-top: 10px;
- padding-bottom: 10px;
- text-align: center;
- font-family: Inter, 'Lucida Grande', sans-serif;
- font-size: 14px;
- font-weight: 600;
- line-height: 20px;
- color: #fff;
- text-decoration: none;
- transition: background-color 0.3s ease-in-out;
- }
- // Status
- .email-status-header-img {
- vertical-align: top;
- width: 48px;
- img {
- width: 48px;
- height: 48px;
- border-radius: 8px;
- overflow: hidden;
- }
- }
- .email-status-header-text {
- padding-left: 16px;
- padding-right: 16px;
- vertical-align: middle;
- }
- .email-status-header-name {
- font-size: 16px;
- font-weight: 600;
- line-height: 24px;
- color: #17063b;
- }
- .email-status-header-handle {
- font-size: 14px;
- line-height: 20px;
- color: #746a89;
- }
- .email-status-content {
- padding-top: 24px;
- }
- .email-status-spoiler {
- color: #746a89;
- font-style: italic;
- margin-bottom: 8px;
- }
- .email-status-prose {
- p {
- font-size: 14px;
- line-height: 20px;
- margin-bottom: 20px;
- color: #17063b;
- white-space: pre-wrap;
- unicode-bidi: plaintext;
- }
- a {
- color: #6364ff;
- text-decoration: none;
- &:hover {
- color: #563acc !important;
- }
- }
- .invisible {
- font-size: 0;
- line-height: 0;
- display: inline-block;
- width: 0;
- height: 0;
- position: absolute;
- }
- .ellipsis {
- &::after {
- content: '…';
- }
- }
- }
- .email-status-media {
- margin-top: 16px;
- font-size: 14px;
- line-height: 20px;
- color: #17063b;
- img {
- border-radius: 8px;
- }
- a {
- color: #6364ff;
- text-decoration: none;
- &:hover {
- color: #563acc !important;
- }
- }
- }
- .email-status-footer {
- margin-top: 16px;
- font-size: 12px;
- line-height: 16px;
- color: #746a89;
- a {
- color: #746a89;
- }
- a:hover {
- color: #746a89 !important;
- text-decoration: underline !important;
- }
- }
- // Purple frame for emphasis
- .email-frame-table {
- background-color: #efefff;
- border-radius: 8px;
- }
- .email-frame-td {
- padding: 16px;
- }
- .email-frame-wrapper-td {
- padding-bottom: 16px;
- }
- .email-frame-td > p {
- text-align: center;
- font-size: 16px;
- line-height: 24px;
- }
- // Checklist item
- .email-checklist-wrapper-td {
- padding: 4px 0;
- }
- .email-checklist-table {
- border-radius: 12px;
- border-width: 1px;
- border-style: solid;
- border-color: #efefff;
- background-color: #fff;
- }
- .email-checklist-checked {
- border-color: #c4e6d7;
- background-color: #eaf6f1;
- }
- .email-checklist-td {
- padding: 16px 16px 6px;
- }
- .email-checklist-icons-td {
- width: 84px;
- vertical-align: top;
- }
- .email-checklist-icons-checkbox-td {
- width: 20px;
- vertical-align: middle;
- img {
- max-width: 100%;
- width: 20px;
- }
- }
- .email-checklist-icons-step-td {
- width: 64px;
- text-align: center;
- vertical-align: middle;
- img {
- max-width: 100%;
- width: 40px;
- }
- }
- .email-checklist-text-td {
- h3 {
- margin: 0 0 4px;
- color: #17063b;
- font-size: 14px;
- font-weight: 600;
- line-height: 16.8px;
- .email-checklist-checked & {
- color: #746a89;
- text-decoration: line-through;
- }
- }
- p {
- margin: 0 0 12px;
- color: #746a89;
- font-size: 14px;
- line-height: 16.8px;
- }
- .email-btn-table {
- width: 100px;
- }
- .email-btn-td {
- mso-padding-alt: 10px;
- }
- .email-btn-a {
- 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
- /* stylelint-disable-next-line media-feature-range-notation -- Basic media queries have better support across email clients. */
- @media only screen and (min-width: 740px) {
- .email-desktop-p-8 {
- padding: 32px !important;
- }
- .email-desktop-rounded-16px {
- border-radius: 16px !important;
- }
- .email-header-td {
- border-radius: 16px 16px 0 0 !important;
- }
- .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;
- }
- }
|