mailer.scss 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. @import 'fonts/inter';
  2. body {
  3. accent-color: #6364ff;
  4. word-break: break-word;
  5. margin: 0;
  6. background-color: #f3f2f5;
  7. padding: 0;
  8. -webkit-text-size-adjust: none;
  9. text-size-adjust: none;
  10. }
  11. p,
  12. h1,
  13. h2,
  14. h3,
  15. h4,
  16. h5,
  17. h6 {
  18. margin: 0;
  19. background-color: transparent;
  20. padding: 0;
  21. border: none;
  22. font-family: Inter, 'Lucida Grande', sans-serif;
  23. }
  24. img {
  25. max-width: 100%;
  26. height: auto;
  27. border: none;
  28. text-indent: 0;
  29. vertical-align: middle;
  30. color: inherit;
  31. font-family: inherit;
  32. }
  33. table {
  34. border: none;
  35. }
  36. table + p {
  37. margin-top: 16px;
  38. }
  39. .email {
  40. min-width: 280px;
  41. font-family: Inter, 'Lucida Grande', sans-serif;
  42. word-break: break-word;
  43. color: #17063b;
  44. background-color: #f3f2f5;
  45. }
  46. .email-container {
  47. max-width: 740px;
  48. margin: 0 auto;
  49. width: 100%;
  50. }
  51. // Outer email card
  52. .email-card-table {
  53. border-collapse: collapse;
  54. width: 100%;
  55. }
  56. .email-card-td {
  57. overflow: hidden;
  58. box-shadow: 0 4px 16px 0 rgba(23, 6, 59, 4%);
  59. background-color: #fff;
  60. }
  61. // Inner email card
  62. .email-inner-card-table {
  63. border-collapse: separate;
  64. width: 100%;
  65. border-radius: 12px;
  66. }
  67. .email-inner-card-td-without-padding,
  68. .email-inner-card-td {
  69. border-radius: 12px;
  70. overflow: hidden;
  71. box-shadow: 0 4px 16px 0 rgba(23, 6, 59, 8%);
  72. background-color: #fff;
  73. border: 1px solid #dfdee3;
  74. }
  75. .email-inner-card-td {
  76. padding: 24px;
  77. }
  78. // Utility classes
  79. .email-w-full {
  80. width: 100%;
  81. }
  82. .email-prose {
  83. p {
  84. color: #17063b;
  85. font-size: 14px;
  86. line-height: 20px;
  87. &:not(:last-child) {
  88. margin-bottom: 16px;
  89. }
  90. a:not([class]) {
  91. color: #6364ff;
  92. text-decoration: none;
  93. &:hover {
  94. color: #563acc !important;
  95. }
  96. }
  97. }
  98. }
  99. .email-padding-24 {
  100. padding: 24px;
  101. }
  102. .email-padding-top-24 {
  103. padding-top: 24px;
  104. }
  105. .email-border-top {
  106. border-top: 1px solid #dfdee3;
  107. }
  108. .email-border-bottom {
  109. border-bottom: 1px solid #dfdee3;
  110. }
  111. // Header
  112. .email-header-td {
  113. padding: 16px 32px;
  114. background-color: #1b001f;
  115. background-image: url('../images/mailer-new/common/header-bg-start.png');
  116. background-position: left top;
  117. background-repeat: repeat;
  118. }
  119. .email-header-logo-table {
  120. width: auto;
  121. margin: 0;
  122. }
  123. .email-header-logo-td {
  124. padding: 16px 0;
  125. font-size: 0;
  126. img {
  127. color: #fff;
  128. font-size: 16px;
  129. font-weight: bold;
  130. max-height: 40px;
  131. }
  132. }
  133. .email-header-logo-a {
  134. display: inline-block;
  135. img {
  136. display: inline-block;
  137. color: #fff;
  138. }
  139. }
  140. .email-header-logo-div {
  141. max-height: 0;
  142. }
  143. .email-header-logo-p {
  144. word-break: break-all;
  145. padding-left: 40px;
  146. padding-top: 26px;
  147. font-size: 11px;
  148. line-height: 13px;
  149. color: #8d808f;
  150. text-align: left;
  151. }
  152. .email-header-logo-span {
  153. display: block;
  154. text-align: right;
  155. }
  156. .email-header-heading-td {
  157. padding: 16px 0;
  158. }
  159. .email-header-heading-img-td {
  160. width: 56px;
  161. text-align: left;
  162. vertical-align: top;
  163. img {
  164. width: 56px;
  165. height: 56px;
  166. border-radius: 12px;
  167. }
  168. }
  169. .email-header-heading-txt-td {
  170. vertical-align: middle;
  171. padding-left: 16px;
  172. padding-right: 16px;
  173. h1 {
  174. margin-bottom: 5px;
  175. color: #fff;
  176. font-size: 24px;
  177. line-height: 28px;
  178. font-weight: 600;
  179. }
  180. p {
  181. color: #a399a5;
  182. font-size: 18px;
  183. line-height: 21.6px;
  184. font-weight: 500;
  185. }
  186. &:only-child {
  187. padding-left: 0;
  188. padding-right: 0;
  189. }
  190. }
  191. // To make the design work with images off
  192. // we create an empty div that overlaps with
  193. // the rest of the content with a dark background.
  194. .email-header-after-div {
  195. max-height: 0;
  196. }
  197. .email-header-after-inside-div {
  198. height: 30px;
  199. background-color: #1b001f;
  200. }
  201. // Body content
  202. .email-body-td {
  203. background-image: url('../images/mailer-new/common/header-bg-end.png');
  204. background-position: left top;
  205. background-repeat: no-repeat;
  206. }
  207. .email-body-padding-td {
  208. padding: 0 32px 32px;
  209. mso-padding-alt: 32px;
  210. }
  211. .email-body-padding-td {
  212. & > p {
  213. font-size: 14px;
  214. line-height: 20px;
  215. color: #17063b;
  216. a {
  217. color: #6364ff;
  218. text-decoration: none;
  219. &:hover {
  220. color: #563acc !important;
  221. }
  222. }
  223. }
  224. }
  225. // Footer
  226. .email-footer-td {
  227. padding: 28px 32px 32px;
  228. text-align: center;
  229. }
  230. .email-footer-logo-a {
  231. display: inline-block;
  232. }
  233. .email-footer-p {
  234. color: #9b94ab;
  235. text-align: center;
  236. font-size: 12px;
  237. line-height: 20px;
  238. a {
  239. color: #9b94ab;
  240. text-decoration: underline;
  241. }
  242. &:first-child {
  243. margin-bottom: 12px;
  244. }
  245. }
  246. // Button
  247. .email-btn-table {
  248. margin: 0;
  249. max-width: 100%;
  250. border-collapse: separate;
  251. border-radius: 8px;
  252. background-color: #6364ff;
  253. }
  254. .email-btn-td {
  255. height: 40px;
  256. text-align: center;
  257. mso-padding-alt: 0 35px;
  258. }
  259. .email-btn-a {
  260. display: block;
  261. border-radius: 8px;
  262. padding-left: 35px;
  263. padding-right: 35px;
  264. padding-top: 10px;
  265. padding-bottom: 10px;
  266. text-align: center;
  267. font-family: Inter, 'Lucida Grande', sans-serif;
  268. font-size: 14px;
  269. font-weight: 600;
  270. line-height: 20px;
  271. color: #fff;
  272. text-decoration: none;
  273. transition: background-color 0.3s ease-in-out;
  274. }
  275. // Status
  276. .email-status-header-img {
  277. vertical-align: top;
  278. width: 48px;
  279. img {
  280. width: 48px;
  281. height: 48px;
  282. border-radius: 8px;
  283. overflow: hidden;
  284. }
  285. }
  286. .email-status-header-text {
  287. padding-left: 16px;
  288. padding-right: 16px;
  289. vertical-align: middle;
  290. }
  291. .email-status-header-name {
  292. font-size: 16px;
  293. font-weight: 600;
  294. line-height: 24px;
  295. color: #17063b;
  296. }
  297. .email-status-header-handle {
  298. font-size: 14px;
  299. line-height: 20px;
  300. color: #746a89;
  301. }
  302. .email-status-content {
  303. padding-top: 24px;
  304. }
  305. .email-status-spoiler {
  306. color: #746a89;
  307. font-style: italic;
  308. margin-bottom: 8px;
  309. }
  310. .email-status-prose {
  311. p {
  312. font-size: 14px;
  313. line-height: 20px;
  314. color: #17063b;
  315. }
  316. a {
  317. color: #6364ff;
  318. text-decoration: none;
  319. &:hover {
  320. color: #563acc !important;
  321. }
  322. }
  323. }
  324. .email-status-media {
  325. margin-top: 16px;
  326. font-size: 14px;
  327. line-height: 20px;
  328. color: #17063b;
  329. img {
  330. border-radius: 8px;
  331. }
  332. a {
  333. color: #6364ff;
  334. text-decoration: none;
  335. &:hover {
  336. color: #563acc !important;
  337. }
  338. }
  339. }
  340. .email-status-footer {
  341. margin-top: 16px;
  342. font-size: 12px;
  343. line-height: 16px;
  344. color: #746a89;
  345. a {
  346. color: #746a89;
  347. }
  348. a:hover {
  349. color: #746a89 !important;
  350. text-decoration: underline !important;
  351. }
  352. }
  353. // Purple frame for emphasis
  354. .email-frame-table {
  355. background-color: #efefff;
  356. border-radius: 8px;
  357. }
  358. .email-frame-td {
  359. padding: 16px;
  360. }
  361. .email-frame-wrapper-td {
  362. padding-bottom: 16px;
  363. }
  364. .email-frame-td > p {
  365. text-align: center;
  366. font-size: 16px;
  367. line-height: 24px;
  368. }
  369. // Checklist item
  370. .email-checklist-wrapper-td {
  371. padding: 4px 0;
  372. }
  373. .email-checklist-table {
  374. border-radius: 12px;
  375. border-width: 1px;
  376. border-style: solid;
  377. border-color: #efefff;
  378. background-color: #fff;
  379. }
  380. .email-checklist-td {
  381. padding: 16px;
  382. }
  383. .email-checklist-icons-td {
  384. width: 84px;
  385. vertical-align: top;
  386. }
  387. .email-checklist-icons-checkbox-td {
  388. width: 20px;
  389. vertical-align: middle;
  390. img {
  391. max-width: 100%;
  392. width: 20px;
  393. }
  394. }
  395. .email-checklist-icons-step-td {
  396. width: 64px;
  397. text-align: center;
  398. vertical-align: middle;
  399. img {
  400. max-width: 100%;
  401. width: 40px;
  402. }
  403. }
  404. .email-checklist-text-td {
  405. h3 {
  406. margin: 0 0 4px;
  407. color: #17063b;
  408. font-size: 14px;
  409. font-weight: 600;
  410. line-height: 16.8px;
  411. }
  412. p {
  413. margin: 0 0 2px;
  414. color: #746a89;
  415. font-size: 14px;
  416. line-height: 16.8px;
  417. }
  418. .email-btn-table {
  419. width: 100px;
  420. }
  421. .email-btn-td {
  422. mso-padding-alt: 10px;
  423. }
  424. .email-btn-a {
  425. padding-left: 10px;
  426. padding-right: 10px;
  427. }
  428. }
  429. // Responsive
  430. /* stylelint-disable-next-line media-feature-range-notation -- Basic media queries have better support across email clients. */
  431. @media only screen and (min-width: 740px) {
  432. .email-desktop-p-8 {
  433. padding: 32px !important;
  434. }
  435. .email-desktop-rounded-16px {
  436. border-radius: 16px !important;
  437. }
  438. .email-header-td {
  439. border-radius: 16px 16px 0 0 !important;
  440. }
  441. .email-desktop-flex {
  442. display: flex;
  443. }
  444. }