@clay-design-system/email 0.2.0 → 0.2.2
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/placeholder.d.ts +79 -0
- package/dist/build/placeholder.d.ts.map +1 -0
- package/dist/build/placeholder.js +148 -0
- package/dist/build/placeholder.js.map +1 -0
- package/dist/build/visual-resolver.d.ts +20 -3
- package/dist/build/visual-resolver.d.ts.map +1 -1
- package/dist/build/visual-resolver.js +69 -5
- package/dist/build/visual-resolver.js.map +1 -1
- 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 +13 -13
- 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 +5 -3
|
@@ -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
|
|
@@ -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
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
|
|
65
65
|
/* Mobile heading step-down — one-notch scale at the DS phone-only breakpoint
|
|
66
66
|
@media(max-width:479px) (h1 56→48, h2 48→40, h3 40→32, h4 32→24). Keyed off the clay-h*
|
|
67
|
-
css-class on the mj-text
|
|
68
|
-
size is the inline fallback if
|
|
67
|
+
css-class on the mj-text td; targets the inner div where MJML places font-size. Desktop
|
|
68
|
+
size is the inline fallback if style is dropped. Per production emails, only the primary/
|
|
69
69
|
hero heading opts in — add css-class="clay-hN" (alongside mj-class) to the hero heading's
|
|
70
70
|
mj-text; secondary content headings keep mj-class alone and stay at desktop size. */
|
|
71
71
|
@media only screen and (max-width: 479px) {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
.clay-h4 > div { font-size: 24px !important; }
|
|
76
76
|
|
|
77
77
|
/* Mobile H-padding utilities — apply as css-class on mj-wrapper or mj-section to reduce
|
|
78
|
-
the 40px horizontal padding to the source breakpoint value when columns stack (
|
|
78
|
+
the 40px horizontal padding to the source breakpoint value when columns stack (below 480px).
|
|
79
79
|
Source: emaillove export mobile CSS (.b98-68 → 24px, .d9b-0c → 16px, .fb5-e8 → 24px).
|
|
80
80
|
Targets the outer td MJML generates with inline padding-left/padding-right. */
|
|
81
81
|
.email-mobile-px-24 > table > tbody > tr > td { padding-right: 24px !important; padding-left: 24px !important; }
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
.email-mobile-pt-0 > table > tbody > tr > td { padding-top: 0 !important; }
|
|
85
85
|
|
|
86
86
|
/* Mobile text centering — apply as css-class on mj-text elements whose content should be
|
|
87
|
-
center-aligned on mobile (
|
|
88
|
-
Targets the inner
|
|
87
|
+
center-aligned on mobile (below 480px). Matches the source emaillove .s0>div{text-align:center}.
|
|
88
|
+
Targets the inner div MJML wraps text content in. */
|
|
89
89
|
.email-mobile-center > div { text-align: center !important; }
|
|
90
90
|
|
|
91
91
|
/* Mobile image centering — apply css-class="email-mobile-center-img" on mj-image.
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
.email-mobile-center-img > table { margin: 0 auto !important; }
|
|
97
97
|
|
|
98
98
|
/* Full-width button on mobile — apply css-class="email-btn-full" to mj-button.
|
|
99
|
-
Makes the button's inner
|
|
99
|
+
Makes the button's inner table fill the column width and centers it.
|
|
100
100
|
Matches emaillove .mj-b-full pattern. */
|
|
101
101
|
.email-btn-full > table { width: 100% !important; }
|
|
102
102
|
.email-btn-full > table > tbody > tr > td { text-align: center !important; }
|
|
@@ -124,10 +124,10 @@
|
|
|
124
124
|
* email-card: flip a section or column's background to dark.
|
|
125
125
|
*
|
|
126
126
|
* Three selectors cover every compiled MJML structure:
|
|
127
|
-
* 1. .email-card — the outer
|
|
128
|
-
* 2. .email-card > table — the direct child
|
|
127
|
+
* 1. .email-card — the outer div (mj-section or mj-column)
|
|
128
|
+
* 2. .email-card > table — the direct child table (mj-section has inline bg here)
|
|
129
129
|
* 3. .email-card > table > tbody > tr > td
|
|
130
|
-
* — the content
|
|
130
|
+
* — the content td inside mj-column (carries inline bg-color
|
|
131
131
|
* + border-radius when background-color is set on mj-column)
|
|
132
132
|
*
|
|
133
133
|
* 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
|
|
@@ -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
|
|
@@ -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
|