santycss 1.0.0 → 1.2.0

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.
@@ -0,0 +1,192 @@
1
+ /* ═══════════════════════════════════════════════════════════════════════════
2
+ SANTY EMAIL — Email-safe CSS for HTML email templates
3
+ Compatible with: Gmail, Outlook, Apple Mail, Yahoo Mail, Thunderbird
4
+ ═══════════════════════════════════════════════════════════════════════════ */
5
+
6
+ /* ── Reset & Base ── */
7
+ .email-html, .email-body { margin: 0; padding: 0; width: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
8
+ .email-wrapper { width: 100%; table-layout: fixed; background-color: #f4f4f5; }
9
+ .email-container { max-width: 600px; margin: 0 auto; background-color: #ffffff; }
10
+
11
+ /* ── Preheader (hidden preview text) ── */
12
+ .email-preheader { display: none; max-height: 0; max-width: 0; overflow: hidden; opacity: 0; visibility: hidden; mso-hide: all; font-size: 1px; color: transparent; }
13
+
14
+ /* ── Table Layout (email-safe) ── */
15
+ .email-table { border-spacing: 0; border-collapse: collapse; width: 100%; }
16
+ .email-cell { padding: 0; vertical-align: top; word-break: break-word; }
17
+ .email-cell-middle { vertical-align: middle; }
18
+ .email-cell-bottom { vertical-align: bottom; }
19
+ .email-row { width: 100%; }
20
+ .email-col-half { width: 50%; vertical-align: top; }
21
+ .email-col-third { width: 33.33%; vertical-align: top; }
22
+ .email-col-two-thirds { width: 66.66%; vertical-align: top; }
23
+
24
+ /* ── Header ── */
25
+ .email-header { background-color: #1e293b; padding: 24px 32px; text-align: center; }
26
+ .email-header-light { background-color: #ffffff; padding: 20px 32px; border-bottom: 1px solid #e5e7eb; }
27
+ .email-logo { max-width: 160px; height: auto; display: block; margin: 0 auto; }
28
+ .email-logo-left { margin: 0; }
29
+
30
+ /* ── Body Wrapper ── */
31
+ .email-body-wrap { background-color: #ffffff; padding: 40px 32px; }
32
+ .email-body-wrap-gray { background-color: #f9fafb; padding: 32px; }
33
+ .email-section { padding: 24px 0; }
34
+ .email-section-bordered { border-bottom: 1px solid #e5e7eb; padding: 24px 0; }
35
+
36
+ /* ── Footer ── */
37
+ .email-footer { background-color: #f9fafb; padding: 24px 32px; text-align: center; border-top: 1px solid #e5e7eb; }
38
+ .email-footer-dark { background-color: #0f172a; border-top-color: #1e293b; }
39
+
40
+ /* ── Typography ── */
41
+ .email-h1 { font-size: 28px; font-weight: 700; color: #111827; margin: 0 0 16px 0; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
42
+ .email-h2 { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 12px 0; line-height: 1.3; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
43
+ .email-h3 { font-size: 18px; font-weight: 600; color: #1e293b; margin: 0 0 10px 0; line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
44
+ .email-p { font-size: 15px; line-height: 1.7; color: #374151; margin: 0 0 16px 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
45
+ .email-p-lead { font-size: 18px; line-height: 1.6; color: #374151; margin: 0 0 20px 0; }
46
+ .email-small { font-size: 12px; color: #6b7280; line-height: 1.5; }
47
+ .email-muted { color: #9ca3af; font-size: 13px; }
48
+ .email-link { color: #3b82f6; text-decoration: underline; }
49
+ .email-link:hover { color: #2563eb; }
50
+ .email-text-center { text-align: center; }
51
+ .email-text-left { text-align: left; }
52
+ .email-text-right { text-align: right; }
53
+ .email-bold { font-weight: 700; }
54
+ .email-semibold { font-weight: 600; }
55
+
56
+ /* ── Buttons ── */
57
+ .email-btn { display: inline-block; padding: 13px 28px; background-color: #3b82f6; color: #ffffff !important; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; mso-padding-alt: 0; }
58
+ .email-btn-sm { padding: 9px 20px; font-size: 13px; }
59
+ .email-btn-lg { padding: 16px 36px; font-size: 17px; }
60
+ .email-btn-outline { display: inline-block; padding: 11px 26px; background-color: transparent; color: #3b82f6 !important; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; border: 2px solid #3b82f6; }
61
+ .email-btn-dark { background-color: #1e293b; color: #ffffff !important; }
62
+ .email-btn-success { background-color: #22c55e; color: #ffffff !important; }
63
+ .email-btn-danger { background-color: #ef4444; color: #ffffff !important; }
64
+ .email-btn-warning { background-color: #f59e0b; color: #ffffff !important; }
65
+ .email-btn-center { text-align: center; padding: 24px 0; }
66
+ .email-btn-full { display: block; text-align: center; }
67
+
68
+ /* ── Dividers ── */
69
+ .email-divider { border: none; border-top: 1px solid #e5e7eb; margin: 24px 0; }
70
+ .email-divider-dark { border-top-color: #334155; }
71
+ .email-divider-thick { border-top: 3px solid #3b82f6; }
72
+
73
+ /* ── Cards & Callouts ── */
74
+ .email-card { background-color: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 24px; }
75
+ .email-card-gray { background-color: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 24px; }
76
+ .email-callout { background-color: #eff6ff; border-left: 4px solid #3b82f6; padding: 16px 20px; margin: 0 0 16px 0; }
77
+ .email-callout-success { background-color: #f0fdf4; border-left: 4px solid #22c55e; padding: 16px 20px; margin: 0 0 16px 0; }
78
+ .email-callout-warning { background-color: #fffbeb; border-left: 4px solid #f59e0b; padding: 16px 20px; margin: 0 0 16px 0; }
79
+ .email-callout-danger { background-color: #fef2f2; border-left: 4px solid #ef4444; padding: 16px 20px; margin: 0 0 16px 0; }
80
+ .email-highlight { background-color: #fef9c3; padding: 2px 6px; border-radius: 3px; }
81
+
82
+ /* ── Hero Section ── */
83
+ .email-hero { padding: 48px 32px; text-align: center; background-color: #1e40af; }
84
+ .email-hero-light { padding: 48px 32px; text-align: center; background-color: #eff6ff; }
85
+ .email-hero-gradient { padding: 48px 32px; text-align: center; background: linear-gradient(135deg, #1e40af, #7c3aed); }
86
+
87
+ /* ── Images ── */
88
+ .email-img { max-width: 100%; height: auto; display: block; }
89
+ .email-img-rounded { border-radius: 8px; max-width: 100%; height: auto; display: block; }
90
+ .email-img-circle { border-radius: 50%; }
91
+ .email-img-center { margin: 0 auto; display: block; }
92
+ .email-img-full { width: 100%; height: auto; display: block; }
93
+
94
+ /* ── Avatar ── */
95
+ .email-avatar-sm { width: 32px; height: 32px; border-radius: 50%; }
96
+ .email-avatar-md { width: 48px; height: 48px; border-radius: 50%; }
97
+ .email-avatar-lg { width: 64px; height: 64px; border-radius: 50%; }
98
+
99
+ /* ── List / Items ── */
100
+ .email-list { padding: 0 0 0 20px; margin: 0 0 16px 0; }
101
+ .email-list li { font-size: 15px; line-height: 1.7; color: #374151; margin-bottom: 6px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
102
+ .email-check-list { list-style: none; padding: 0; margin: 0 0 16px 0; }
103
+ .email-check-list li { font-size: 15px; line-height: 1.7; color: #374151; margin-bottom: 8px; padding-left: 24px; position: relative; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
104
+ .email-check-list li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: 700; }
105
+
106
+ /* ── Product / Feature Rows ── */
107
+ .email-product-img { width: 80px; height: 80px; border-radius: 8px; }
108
+ .email-product-name { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 4px 0; }
109
+ .email-product-desc { font-size: 13px; color: #6b7280; margin: 0; }
110
+ .email-product-price { font-size: 16px; font-weight: 700; color: #111827; }
111
+
112
+ /* ── Badges ── */
113
+ .email-badge { display: inline-block; padding: 3px 10px; border-radius: 9999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
114
+ .email-badge-blue { background-color: #dbeafe; color: #1d4ed8; }
115
+ .email-badge-green { background-color: #dcfce7; color: #15803d; }
116
+ .email-badge-red { background-color: #fee2e2; color: #dc2626; }
117
+ .email-badge-yellow { background-color: #fef9c3; color: #a16207; }
118
+ .email-badge-purple { background-color: #f3e8ff; color: #7e22ce; }
119
+ .email-badge-gray { background-color: #f3f4f6; color: #374151; }
120
+ .email-badge-new { background-color: #3b82f6; color: #ffffff; }
121
+
122
+ /* ── Stat Blocks ── */
123
+ .email-stat-value { font-size: 32px; font-weight: 700; color: #111827; line-height: 1; margin: 0 0 4px 0; }
124
+ .email-stat-label { font-size: 13px; color: #6b7280; margin: 0; }
125
+
126
+ /* ── Code Block ── */
127
+ .email-code { display: block; background-color: #1e293b; color: #e2e8f0; padding: 16px 20px; border-radius: 8px; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 1.6; }
128
+ .email-code-inline { background-color: #f1f5f9; color: #e11d48; padding: 2px 6px; border-radius: 4px; font-family: 'Courier New', Courier, monospace; font-size: 13px; }
129
+
130
+ /* ── Spacers ── */
131
+ .email-spacer-4 { height: 4px; line-height: 4px; font-size: 4px; display: block; }
132
+ .email-spacer-8 { height: 8px; line-height: 8px; font-size: 8px; display: block; }
133
+ .email-spacer-16 { height: 16px; line-height: 16px; font-size: 16px; display: block; }
134
+ .email-spacer-24 { height: 24px; line-height: 24px; font-size: 24px; display: block; }
135
+ .email-spacer-32 { height: 32px; line-height: 32px; font-size: 32px; display: block; }
136
+ .email-spacer-48 { height: 48px; line-height: 48px; font-size: 48px; display: block; }
137
+ .email-spacer-64 { height: 64px; line-height: 64px; font-size: 64px; display: block; }
138
+
139
+ /* ── Social Links ── */
140
+ .email-social-wrap { text-align: center; padding: 16px 0; }
141
+ .email-social-link { display: inline-block; margin: 0 6px; width: 36px; height: 36px; border-radius: 50%; background-color: #e5e7eb; text-align: center; line-height: 36px; text-decoration: none; font-size: 14px; color: #374151; }
142
+ .email-social-link-blue { background-color: #dbeafe; color: #1d4ed8; }
143
+ .email-social-link-dark { background-color: #334155; color: #e2e8f0; }
144
+ .email-social-text-link { display: inline-block; margin: 0 8px; font-size: 13px; color: #6b7280; text-decoration: underline; }
145
+
146
+ /* ── Unsubscribe / Legal ── */
147
+ .email-legal { font-size: 11px; color: #9ca3af; line-height: 1.6; text-align: center; }
148
+ .email-address { font-size: 11px; color: #9ca3af; line-height: 1.6; }
149
+ .email-unsubscribe { font-size: 12px; color: #9ca3af; text-decoration: underline; }
150
+
151
+ /* ── Responsive (Mobile) ── */
152
+ @media screen and (max-width: 600px) {
153
+ .email-container { width: 100% !important; max-width: 100% !important; }
154
+ .email-body-wrap { padding: 24px 20px !important; }
155
+ .email-header { padding: 20px !important; }
156
+ .email-footer { padding: 20px !important; }
157
+ .email-hero { padding: 32px 20px !important; }
158
+ .email-h1 { font-size: 22px !important; }
159
+ .email-h2 { font-size: 18px !important; }
160
+ .email-h3 { font-size: 16px !important; }
161
+ .email-p-lead { font-size: 16px !important; }
162
+ .email-btn, .email-btn-outline { display: block !important; text-align: center !important; }
163
+ .email-col-half, .email-col-third, .email-col-two-thirds { width: 100% !important; display: block !important; }
164
+ .email-mobile-hidden { display: none !important; max-height: 0 !important; overflow: hidden !important; }
165
+ .email-mobile-visible { display: block !important; }
166
+ .email-mobile-full { width: 100% !important; }
167
+ .email-mobile-center { text-align: center !important; }
168
+ .email-mobile-padding { padding: 16px !important; }
169
+ .email-stat-value { font-size: 24px !important; }
170
+ }
171
+
172
+ /* ── Dark Mode (Apple Mail, Outlook 2019+, Hey) ── */
173
+ @media (prefers-color-scheme: dark) {
174
+ .email-wrapper, .email-body { background-color: #0f172a !important; }
175
+ .email-container { background-color: #1e293b !important; }
176
+ .email-body-wrap { background-color: #1e293b !important; }
177
+ .email-body-wrap-gray { background-color: #0f172a !important; }
178
+ .email-header-light { background-color: #1e293b !important; border-bottom-color: #334155 !important; }
179
+ .email-footer { background-color: #0f172a !important; border-top-color: #1e293b !important; }
180
+ .email-h1, .email-h2, .email-h3 { color: #f1f5f9 !important; }
181
+ .email-p, .email-list li, .email-check-list li { color: #cbd5e1 !important; }
182
+ .email-p-lead { color: #e2e8f0 !important; }
183
+ .email-card { background-color: #1e293b !important; border-color: #334155 !important; }
184
+ .email-card-gray { background-color: #0f172a !important; border-color: #334155 !important; }
185
+ .email-divider { border-top-color: #334155 !important; }
186
+ .email-code { background-color: #0f172a !important; }
187
+ .email-code-inline { background-color: #334155 !important; color: #f472b6 !important; }
188
+ .email-stat-value { color: #f1f5f9 !important; }
189
+ .email-product-name { color: #f1f5f9 !important; }
190
+ .email-product-price { color: #f1f5f9 !important; }
191
+ .email-social-link { background-color: #334155 !important; color: #e2e8f0 !important; }
192
+ }