@clay-design-system/email 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/asset-scoring.d.ts.map +1 -1
- package/dist/build/asset-scoring.js +2 -1
- package/dist/build/asset-scoring.js.map +1 -1
- package/dist/build/compile.js +1 -1
- package/dist/build/icon-registry-map.d.ts +2 -2
- package/dist/build/icon-registry-map.d.ts.map +1 -1
- package/dist/build/icon-registry-map.js +1 -1
- package/dist/build/visual-resolver.d.ts +2 -2
- package/dist/build/visual-resolver.js +2 -2
- package/dist/catalog.json +77 -77
- package/dist/emails/component-buttons-icons.html +9 -9
- package/dist/emails/component-buttons-integration.html +9 -9
- package/dist/emails/component-buttons-primary.html +9 -9
- package/dist/emails/component-buttons-secondary.html +9 -9
- package/dist/emails/component-buttons-two-integrations.html +9 -9
- package/dist/emails/component-images-card-280h.html +9 -9
- package/dist/emails/component-images-card-320h.html +9 -9
- package/dist/emails/component-images-card.html +9 -9
- package/dist/emails/component-images-full-bleed-280h.html +9 -9
- package/dist/emails/component-images-full-bleed-400h.html +9 -9
- package/dist/emails/component-images-full-bleed.html +9 -9
- package/dist/emails/component-text-h1.html +9 -9
- package/dist/emails/component-text-h2.html +9 -9
- package/dist/emails/component-text-h3.html +9 -9
- package/dist/emails/component-text-h4.html +9 -9
- package/dist/emails/component-text-h5.html +9 -9
- package/dist/emails/component-text-p2.html +9 -9
- package/dist/emails/component-text-p3.html +11 -11
- package/dist/emails/component-text-p4.html +11 -11
- package/dist/emails/container.html +10 -10
- package/dist/emails/section-changelog-icon-list.html +9 -9
- package/dist/emails/section-divider-line.html +11 -11
- package/dist/emails/section-feature-highlight-reversed.html +9 -9
- package/dist/emails/section-feature-highlight.html +9 -9
- package/dist/emails/section-feature-rows.html +9 -9
- package/dist/emails/section-feature-story-row-reversed.html +11 -11
- package/dist/emails/section-feature-story-row.html +11 -11
- package/dist/emails/section-footer-lifecycle.html +9 -9
- package/dist/emails/section-footer-two-column-minimal.html +11 -11
- package/dist/emails/section-footer.html +15 -15
- package/dist/emails/section-header.html +9 -9
- package/dist/emails/section-hero.html +9 -9
- package/dist/emails/section-icon-feature-list.html +9 -9
- package/dist/emails/section-image-caption-block.html +9 -9
- package/dist/emails/section-image-hero.html +10 -10
- package/dist/emails/section-lesson-card.html +11 -11
- package/dist/emails/section-list-action-items.html +9 -9
- package/dist/emails/section-list-feature-items.html +9 -9
- package/dist/emails/section-list-icon-items.html +13 -13
- package/dist/emails/section-list-numbered-items.html +9 -9
- package/dist/emails/section-logo-header.html +9 -9
- package/dist/emails/section-newsletter-hero.html +10 -10
- package/dist/emails/section-product-ui-hero.html +9 -9
- package/dist/emails/section-promo-banner.html +9 -9
- package/dist/emails/section-qa-block.html +9 -9
- package/dist/emails/section-resource-link-list.html +9 -9
- package/dist/emails/section-signoff.html +9 -9
- package/dist/emails/section-single-column-author.html +9 -9
- package/dist/emails/section-single-column-feature-card.html +9 -9
- package/dist/emails/section-single-column-product-card.html +10 -10
- package/dist/emails/section-single-column-promo-card.html +10 -10
- package/dist/emails/section-spacer-fill.html +12 -12
- package/dist/emails/section-testimonial-dark-card.html +9 -9
- package/dist/emails/section-text-h1-regular.html +9 -9
- package/dist/emails/section-text-h2-regular.html +9 -9
- package/dist/emails/section-text-h3-regular.html +9 -9
- package/dist/emails/section-text-h4-regular.html +9 -9
- package/dist/emails/section-text-h5-regular.html +9 -9
- package/dist/emails/section-text-mixed-heading.html +9 -9
- package/dist/emails/section-text-overline-heading.html +11 -11
- package/dist/emails/section-text-p1-bold.html +9 -9
- package/dist/emails/section-text-p1-regular.html +9 -9
- package/dist/emails/section-text-paragraph.html +9 -9
- package/dist/emails/section-text-quote-card.html +9 -9
- package/dist/emails/section-text-quote.html +9 -9
- package/dist/emails/section-text-small-headline.html +10 -10
- package/dist/emails/section-three-column-content-cards.html +9 -9
- package/dist/emails/section-three-column-icon-cards.html +9 -9
- package/dist/emails/section-three-column-image-grid.html +9 -9
- package/dist/emails/section-three-up-icon-benefits.html +9 -9
- package/dist/emails/section-two-column-feature-cards.html +9 -9
- package/dist/emails/section-two-column-grid.html +9 -9
- package/dist/emails/section-two-column-img-text.html +9 -9
- package/dist/emails/section-two-column-live-tags.html +10 -10
- package/dist/emails/section-two-column-stacked.html +9 -9
- package/dist/emails/section-upsell-cta.html +9 -9
- package/dist/emails/section-value-bullet-list.html +9 -9
- package/dist/generated/email-tokens.d.ts +1 -1
- package/dist/generated/email-tokens.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tokens/build-email-assets.js +1 -1
- package/dist/tokens/build-email-assets.js.map +1 -1
- package/dist/tokens/build-email-tokens.js +10 -10
- package/dist/tokens/build-email-tokens.js.map +1 -1
- package/package.json +2 -2
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
|
|
63
63
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
64
64
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
65
|
-
css-class on the mj-text
|
|
66
|
-
size is the inline fallback if
|
|
65
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
66
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
67
67
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
68
68
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
69
69
|
@media only screen and (max-width: 479px) {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
.clay-h4 > div { font-size: 24px !important; }
|
|
74
74
|
|
|
75
75
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
76
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
76
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
77
77
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
78
78
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
79
79
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
83
83
|
|
|
84
84
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
85
|
-
center-aligned on mobile (
|
|
86
|
-
Targets the inner
|
|
85
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
86
|
+
Targets the inner div MJML wraps text content in. */
|
|
87
87
|
.email-mobile-center > div { text-align: center !important; }
|
|
88
88
|
|
|
89
89
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
95
95
|
|
|
96
96
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
97
|
-
Makes the button's inner
|
|
97
|
+
Makes the button's inner table fill the column width and centers it.
|
|
98
98
|
Matches emaillove .mj-b-full pattern. */
|
|
99
99
|
.email-btn-full > table { width: 100% !important; }
|
|
100
100
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
* email-card: flip a section or column's background to dark.
|
|
123
123
|
*
|
|
124
124
|
* Three selectors cover every compiled MJML structure:
|
|
125
|
-
* 1. .email-card — the outer
|
|
126
|
-
* 2. .email-card > table — the direct child
|
|
125
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
126
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
127
127
|
* 3. .email-card > table > tbody > tr > td
|
|
128
|
-
* — the content
|
|
128
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
129
129
|
* + border-radius when background-color is set on mj-column)
|
|
130
130
|
*
|
|
131
131
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
|
|
71
71
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
72
72
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
73
|
-
css-class on the mj-text
|
|
74
|
-
size is the inline fallback if
|
|
73
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
74
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
75
75
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
76
76
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
77
77
|
@media only screen and (max-width: 479px) {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
.clay-h4 > div { font-size: 24px !important; }
|
|
82
82
|
|
|
83
83
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
84
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
84
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
85
85
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
86
86
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
87
87
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
91
91
|
|
|
92
92
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
93
|
-
center-aligned on mobile (
|
|
94
|
-
Targets the inner
|
|
93
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
94
|
+
Targets the inner div MJML wraps text content in. */
|
|
95
95
|
.email-mobile-center > div { text-align: center !important; }
|
|
96
96
|
|
|
97
97
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
103
103
|
|
|
104
104
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
105
|
-
Makes the button's inner
|
|
105
|
+
Makes the button's inner table fill the column width and centers it.
|
|
106
106
|
Matches emaillove .mj-b-full pattern. */
|
|
107
107
|
.email-btn-full > table { width: 100% !important; }
|
|
108
108
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
* email-card: flip a section or column's background to dark.
|
|
131
131
|
*
|
|
132
132
|
* Three selectors cover every compiled MJML structure:
|
|
133
|
-
* 1. .email-card — the outer
|
|
134
|
-
* 2. .email-card > table — the direct child
|
|
133
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
134
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
135
135
|
* 3. .email-card > table > tbody > tr > td
|
|
136
|
-
* — the content
|
|
136
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
137
137
|
* + border-radius when background-color is set on mj-column)
|
|
138
138
|
*
|
|
139
139
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
>
|
|
297
297
|
|
|
298
298
|
<div
|
|
299
|
-
style="font-family:Poppins, 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:12px;font-weight:400;line-height:1.5;text-align:left;color:#
|
|
299
|
+
style="font-family:Poppins, 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:12px;font-weight:400;line-height:1.5;text-align:left;color:#45454a;"
|
|
300
300
|
><a href="#" style="display:inline-block;background-color:#00BA5F;color:#ffffff;font-size:12px;font-weight:400;line-height:1.5;padding:4px 16px;border-radius:4px;text-decoration:none;mso-padding-alt:4px 16px;">JULY 2026</a></div>
|
|
301
301
|
|
|
302
302
|
</td>
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
|
|
71
71
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
72
72
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
73
|
-
css-class on the mj-text
|
|
74
|
-
size is the inline fallback if
|
|
73
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
74
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
75
75
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
76
76
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
77
77
|
@media only screen and (max-width: 479px) {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
.clay-h4 > div { font-size: 24px !important; }
|
|
82
82
|
|
|
83
83
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
84
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
84
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
85
85
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
86
86
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
87
87
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
91
91
|
|
|
92
92
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
93
|
-
center-aligned on mobile (
|
|
94
|
-
Targets the inner
|
|
93
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
94
|
+
Targets the inner div MJML wraps text content in. */
|
|
95
95
|
.email-mobile-center > div { text-align: center !important; }
|
|
96
96
|
|
|
97
97
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
103
103
|
|
|
104
104
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
105
|
-
Makes the button's inner
|
|
105
|
+
Makes the button's inner table fill the column width and centers it.
|
|
106
106
|
Matches emaillove .mj-b-full pattern. */
|
|
107
107
|
.email-btn-full > table { width: 100% !important; }
|
|
108
108
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
* email-card: flip a section or column's background to dark.
|
|
131
131
|
*
|
|
132
132
|
* Three selectors cover every compiled MJML structure:
|
|
133
|
-
* 1. .email-card — the outer
|
|
134
|
-
* 2. .email-card > table — the direct child
|
|
133
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
134
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
135
135
|
* 3. .email-card > table > tbody > tr > td
|
|
136
|
-
* — the content
|
|
136
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
137
137
|
* + border-radius when background-color is set on mj-column)
|
|
138
138
|
*
|
|
139
139
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
|
|
63
63
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
64
64
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
65
|
-
css-class on the mj-text
|
|
66
|
-
size is the inline fallback if
|
|
65
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
66
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
67
67
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
68
68
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
69
69
|
@media only screen and (max-width: 479px) {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
.clay-h4 > div { font-size: 24px !important; }
|
|
74
74
|
|
|
75
75
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
76
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
76
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
77
77
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
78
78
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
79
79
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
83
83
|
|
|
84
84
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
85
|
-
center-aligned on mobile (
|
|
86
|
-
Targets the inner
|
|
85
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
86
|
+
Targets the inner div MJML wraps text content in. */
|
|
87
87
|
.email-mobile-center > div { text-align: center !important; }
|
|
88
88
|
|
|
89
89
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
95
95
|
|
|
96
96
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
97
|
-
Makes the button's inner
|
|
97
|
+
Makes the button's inner table fill the column width and centers it.
|
|
98
98
|
Matches emaillove .mj-b-full pattern. */
|
|
99
99
|
.email-btn-full > table { width: 100% !important; }
|
|
100
100
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
* email-card: flip a section or column's background to dark.
|
|
123
123
|
*
|
|
124
124
|
* Three selectors cover every compiled MJML structure:
|
|
125
|
-
* 1. .email-card — the outer
|
|
126
|
-
* 2. .email-card > table — the direct child
|
|
125
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
126
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
127
127
|
* 3. .email-card > table > tbody > tr > td
|
|
128
|
-
* — the content
|
|
128
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
129
129
|
* + border-radius when background-color is set on mj-column)
|
|
130
130
|
*
|
|
131
131
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
|
|
71
71
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
72
72
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
73
|
-
css-class on the mj-text
|
|
74
|
-
size is the inline fallback if
|
|
73
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
74
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
75
75
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
76
76
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
77
77
|
@media only screen and (max-width: 479px) {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
.clay-h4 > div { font-size: 24px !important; }
|
|
82
82
|
|
|
83
83
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
84
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
84
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
85
85
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
86
86
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
87
87
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
91
91
|
|
|
92
92
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
93
|
-
center-aligned on mobile (
|
|
94
|
-
Targets the inner
|
|
93
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
94
|
+
Targets the inner div MJML wraps text content in. */
|
|
95
95
|
.email-mobile-center > div { text-align: center !important; }
|
|
96
96
|
|
|
97
97
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
103
103
|
|
|
104
104
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
105
|
-
Makes the button's inner
|
|
105
|
+
Makes the button's inner table fill the column width and centers it.
|
|
106
106
|
Matches emaillove .mj-b-full pattern. */
|
|
107
107
|
.email-btn-full > table { width: 100% !important; }
|
|
108
108
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
* email-card: flip a section or column's background to dark.
|
|
131
131
|
*
|
|
132
132
|
* Three selectors cover every compiled MJML structure:
|
|
133
|
-
* 1. .email-card — the outer
|
|
134
|
-
* 2. .email-card > table — the direct child
|
|
133
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
134
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
135
135
|
* 3. .email-card > table > tbody > tr > td
|
|
136
|
-
* — the content
|
|
136
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
137
137
|
* + border-radius when background-color is set on mj-column)
|
|
138
138
|
*
|
|
139
139
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
|
|
63
63
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
64
64
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
65
|
-
css-class on the mj-text
|
|
66
|
-
size is the inline fallback if
|
|
65
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
66
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
67
67
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
68
68
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
69
69
|
@media only screen and (max-width: 479px) {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
.clay-h4 > div { font-size: 24px !important; }
|
|
74
74
|
|
|
75
75
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
76
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
76
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
77
77
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
78
78
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
79
79
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
83
83
|
|
|
84
84
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
85
|
-
center-aligned on mobile (
|
|
86
|
-
Targets the inner
|
|
85
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
86
|
+
Targets the inner div MJML wraps text content in. */
|
|
87
87
|
.email-mobile-center > div { text-align: center !important; }
|
|
88
88
|
|
|
89
89
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
95
95
|
|
|
96
96
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
97
|
-
Makes the button's inner
|
|
97
|
+
Makes the button's inner table fill the column width and centers it.
|
|
98
98
|
Matches emaillove .mj-b-full pattern. */
|
|
99
99
|
.email-btn-full > table { width: 100% !important; }
|
|
100
100
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
* email-card: flip a section or column's background to dark.
|
|
123
123
|
*
|
|
124
124
|
* Three selectors cover every compiled MJML structure:
|
|
125
|
-
* 1. .email-card — the outer
|
|
126
|
-
* 2. .email-card > table — the direct child
|
|
125
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
126
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
127
127
|
* 3. .email-card > table > tbody > tr > td
|
|
128
|
-
* — the content
|
|
128
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
129
129
|
* + border-radius when background-color is set on mj-column)
|
|
130
130
|
*
|
|
131
131
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
|
|
63
63
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
64
64
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
65
|
-
css-class on the mj-text
|
|
66
|
-
size is the inline fallback if
|
|
65
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
66
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
67
67
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
68
68
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
69
69
|
@media only screen and (max-width: 479px) {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
.clay-h4 > div { font-size: 24px !important; }
|
|
74
74
|
|
|
75
75
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
76
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
76
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
77
77
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
78
78
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
79
79
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
83
83
|
|
|
84
84
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
85
|
-
center-aligned on mobile (
|
|
86
|
-
Targets the inner
|
|
85
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
86
|
+
Targets the inner div MJML wraps text content in. */
|
|
87
87
|
.email-mobile-center > div { text-align: center !important; }
|
|
88
88
|
|
|
89
89
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
95
95
|
|
|
96
96
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
97
|
-
Makes the button's inner
|
|
97
|
+
Makes the button's inner table fill the column width and centers it.
|
|
98
98
|
Matches emaillove .mj-b-full pattern. */
|
|
99
99
|
.email-btn-full > table { width: 100% !important; }
|
|
100
100
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
* email-card: flip a section or column's background to dark.
|
|
123
123
|
*
|
|
124
124
|
* Three selectors cover every compiled MJML structure:
|
|
125
|
-
* 1. .email-card — the outer
|
|
126
|
-
* 2. .email-card > table — the direct child
|
|
125
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
126
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
127
127
|
* 3. .email-card > table > tbody > tr > td
|
|
128
|
-
* — the content
|
|
128
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
129
129
|
* + border-radius when background-color is set on mj-column)
|
|
130
130
|
*
|
|
131
131
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
|
|
77
77
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
78
78
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
79
|
-
css-class on the mj-text
|
|
80
|
-
size is the inline fallback if
|
|
79
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
80
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
81
81
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
82
82
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
83
83
|
@media only screen and (max-width: 479px) {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
.clay-h4 > div { font-size: 24px !important; }
|
|
88
88
|
|
|
89
89
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
90
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
90
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
91
91
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
92
92
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
93
93
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
97
97
|
|
|
98
98
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
99
|
-
center-aligned on mobile (
|
|
100
|
-
Targets the inner
|
|
99
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
100
|
+
Targets the inner div MJML wraps text content in. */
|
|
101
101
|
.email-mobile-center > div { text-align: center !important; }
|
|
102
102
|
|
|
103
103
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
109
109
|
|
|
110
110
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
111
|
-
Makes the button's inner
|
|
111
|
+
Makes the button's inner table fill the column width and centers it.
|
|
112
112
|
Matches emaillove .mj-b-full pattern. */
|
|
113
113
|
.email-btn-full > table { width: 100% !important; }
|
|
114
114
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -136,10 +136,10 @@
|
|
|
136
136
|
* email-card: flip a section or column's background to dark.
|
|
137
137
|
*
|
|
138
138
|
* Three selectors cover every compiled MJML structure:
|
|
139
|
-
* 1. .email-card — the outer
|
|
140
|
-
* 2. .email-card > table — the direct child
|
|
139
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
140
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
141
141
|
* 3. .email-card > table > tbody > tr > td
|
|
142
|
-
* — the content
|
|
142
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
143
143
|
* + border-radius when background-color is set on mj-column)
|
|
144
144
|
*
|
|
145
145
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
|
|
71
71
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
72
72
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
73
|
-
css-class on the mj-text
|
|
74
|
-
size is the inline fallback if
|
|
73
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
74
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
75
75
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
76
76
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
77
77
|
@media only screen and (max-width: 479px) {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
.clay-h4 > div { font-size: 24px !important; }
|
|
82
82
|
|
|
83
83
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
84
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
84
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
85
85
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
86
86
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
87
87
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
91
91
|
|
|
92
92
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
93
|
-
center-aligned on mobile (
|
|
94
|
-
Targets the inner
|
|
93
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
94
|
+
Targets the inner div MJML wraps text content in. */
|
|
95
95
|
.email-mobile-center > div { text-align: center !important; }
|
|
96
96
|
|
|
97
97
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
103
103
|
|
|
104
104
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
105
|
-
Makes the button's inner
|
|
105
|
+
Makes the button's inner table fill the column width and centers it.
|
|
106
106
|
Matches emaillove .mj-b-full pattern. */
|
|
107
107
|
.email-btn-full > table { width: 100% !important; }
|
|
108
108
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
* email-card: flip a section or column's background to dark.
|
|
131
131
|
*
|
|
132
132
|
* Three selectors cover every compiled MJML structure:
|
|
133
|
-
* 1. .email-card — the outer
|
|
134
|
-
* 2. .email-card > table — the direct child
|
|
133
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
134
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
135
135
|
* 3. .email-card > table > tbody > tr > td
|
|
136
|
-
* — the content
|
|
136
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
137
137
|
* + border-radius when background-color is set on mj-column)
|
|
138
138
|
*
|
|
139
139
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
|
|
71
71
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
72
72
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
73
|
-
css-class on the mj-text
|
|
74
|
-
size is the inline fallback if
|
|
73
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
74
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
75
75
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
76
76
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
77
77
|
@media only screen and (max-width: 479px) {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
.clay-h4 > div { font-size: 24px !important; }
|
|
82
82
|
|
|
83
83
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
84
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
84
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
85
85
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
86
86
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
87
87
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
91
91
|
|
|
92
92
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
93
|
-
center-aligned on mobile (
|
|
94
|
-
Targets the inner
|
|
93
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
94
|
+
Targets the inner div MJML wraps text content in. */
|
|
95
95
|
.email-mobile-center > div { text-align: center !important; }
|
|
96
96
|
|
|
97
97
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
103
103
|
|
|
104
104
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
105
|
-
Makes the button's inner
|
|
105
|
+
Makes the button's inner table fill the column width and centers it.
|
|
106
106
|
Matches emaillove .mj-b-full pattern. */
|
|
107
107
|
.email-btn-full > table { width: 100% !important; }
|
|
108
108
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
* email-card: flip a section or column's background to dark.
|
|
131
131
|
*
|
|
132
132
|
* Three selectors cover every compiled MJML structure:
|
|
133
|
-
* 1. .email-card — the outer
|
|
134
|
-
* 2. .email-card > table — the direct child
|
|
133
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
134
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
135
135
|
* 3. .email-card > table > tbody > tr > td
|
|
136
|
-
* — the content
|
|
136
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
137
137
|
* + border-radius when background-color is set on mj-column)
|
|
138
138
|
*
|
|
139
139
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
|
|
332
332
|
<tr>
|
|
333
333
|
<td
|
|
334
|
-
align="center" class="email-btn-full" style="font-size:0px;padding:0;word-break:break-word;"
|
|
334
|
+
align="center" class="email-btn-full email-btn-invert-dark" style="font-size:0px;padding:0;word-break:break-word;"
|
|
335
335
|
>
|
|
336
336
|
|
|
337
337
|
<table
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
|
|
63
63
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
64
64
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
65
|
-
css-class on the mj-text
|
|
66
|
-
size is the inline fallback if
|
|
65
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
66
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
67
67
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
68
68
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
69
69
|
@media only screen and (max-width: 479px) {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
.clay-h4 > div { font-size: 24px !important; }
|
|
74
74
|
|
|
75
75
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
76
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
76
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
77
77
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
78
78
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
79
79
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
83
83
|
|
|
84
84
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
85
|
-
center-aligned on mobile (
|
|
86
|
-
Targets the inner
|
|
85
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
86
|
+
Targets the inner div MJML wraps text content in. */
|
|
87
87
|
.email-mobile-center > div { text-align: center !important; }
|
|
88
88
|
|
|
89
89
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
95
95
|
|
|
96
96
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
97
|
-
Makes the button's inner
|
|
97
|
+
Makes the button's inner table fill the column width and centers it.
|
|
98
98
|
Matches emaillove .mj-b-full pattern. */
|
|
99
99
|
.email-btn-full > table { width: 100% !important; }
|
|
100
100
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
* email-card: flip a section or column's background to dark.
|
|
123
123
|
*
|
|
124
124
|
* Three selectors cover every compiled MJML structure:
|
|
125
|
-
* 1. .email-card — the outer
|
|
126
|
-
* 2. .email-card > table — the direct child
|
|
125
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
126
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
127
127
|
* 3. .email-card > table > tbody > tr > td
|
|
128
|
-
* — the content
|
|
128
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
129
129
|
* + border-radius when background-color is set on mj-column)
|
|
130
130
|
*
|
|
131
131
|
* Apply css-class="email-card" to any mj-section or mj-column that should
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
|
|
245
245
|
<tr>
|
|
246
246
|
<td
|
|
247
|
-
align="left" style="font-size:0px;padding:32px 0 0 0;word-break:break-word;"
|
|
247
|
+
align="left" class="email-btn-invert-dark" style="font-size:0px;padding:32px 0 0 0;word-break:break-word;"
|
|
248
248
|
>
|
|
249
249
|
|
|
250
250
|
<table
|