mailer.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  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. // Account
  79. .email-account-banner-table {
  80. background-color: #f3f2f5;
  81. border-top-left-radius: 12px;
  82. border-top-right-radius: 12px;
  83. }
  84. .email-account-banner-td {
  85. border-top-left-radius: 12px;
  86. border-top-right-radius: 12px;
  87. height: 140px;
  88. vertical-align: bottom;
  89. background-position: center !important;
  90. background-size: cover !important;
  91. }
  92. .email-account-banner-inner-td {
  93. padding: 24px 24px 0;
  94. mso-padding-alt: 24px;
  95. }
  96. .email-account-banner-overlap-div {
  97. max-height: 42px;
  98. }
  99. .email-account-banner-icon-table {
  100. width: auto;
  101. margin: 0;
  102. overflow: hidden;
  103. border-radius: 8px;
  104. border-collapse: separate;
  105. background-color: #fff;
  106. border: 2px solid #fff;
  107. img {
  108. display: block;
  109. max-width: 100%;
  110. border: none;
  111. border-radius: 6px;
  112. }
  113. }
  114. .email-account-body-td {
  115. padding: 56px 24px 24px;
  116. mso-padding-alt: 24px;
  117. }
  118. .email-account-name {
  119. font-size: 16px;
  120. font-weight: 600;
  121. line-height: 24px;
  122. color: #17063b;
  123. }
  124. .email-account-handle {
  125. font-size: 14px;
  126. line-height: 20px;
  127. color: #746a89;
  128. }
  129. .email-account-stats-table {
  130. td {
  131. padding-right: 16px;
  132. font-size: 14px;
  133. line-height: 20px;
  134. color: #746a89;
  135. }
  136. b {
  137. font-weight: 600;
  138. color: #17063b;
  139. }
  140. span {
  141. white-space: nowrap;
  142. }
  143. }
  144. // Utility classes
  145. .email-w-full {
  146. width: 100%;
  147. }
  148. .email-prose {
  149. p {
  150. color: #17063b;
  151. font-size: 14px;
  152. line-height: 20px;
  153. &:not(:last-child) {
  154. margin-bottom: 16px;
  155. }
  156. a:not([class]) {
  157. color: #6364ff;
  158. text-decoration: none;
  159. &:hover {
  160. color: #563acc !important;
  161. }
  162. }
  163. }
  164. }
  165. .email-padding-24 {
  166. padding: 24px;
  167. }
  168. .email-padding-top-24 {
  169. padding-top: 24px;
  170. }
  171. .email-padding-top-16 {
  172. padding-top: 16px;
  173. }
  174. .email-padding-top-0 {
  175. padding-top: 0;
  176. }
  177. .email-border-top {
  178. border-top: 1px solid #dfdee3;
  179. }
  180. .email-border-bottom {
  181. border-bottom: 1px solid #dfdee3;
  182. }
  183. // Header
  184. .email-header-td {
  185. padding: 16px 32px;
  186. background-color: #1b001f;
  187. background-image: url('../images/mailer-new/common/header-bg-start.png');
  188. background-position: left top;
  189. background-repeat: repeat;
  190. }
  191. .email-header-logo-table {
  192. width: auto;
  193. margin: 0;
  194. }
  195. .email-header-logo-td {
  196. padding: 16px 0;
  197. font-size: 0;
  198. img {
  199. color: #fff;
  200. font-size: 16px;
  201. font-weight: bold;
  202. max-height: 40px;
  203. }
  204. }
  205. .email-header-logo-a {
  206. display: inline-block;
  207. img {
  208. display: inline-block;
  209. color: #fff;
  210. }
  211. }
  212. .email-header-logo-div {
  213. max-height: 0;
  214. }
  215. .email-header-logo-p {
  216. word-break: break-all;
  217. padding-left: 40px;
  218. padding-top: 26px;
  219. font-size: 11px;
  220. line-height: 13px;
  221. color: #8d808f;
  222. text-align: left;
  223. }
  224. .email-header-logo-span {
  225. display: block;
  226. text-align: right;
  227. }
  228. .email-header-heading-td {
  229. padding: 16px 0;
  230. }
  231. .email-header-heading-img-td {
  232. width: 56px;
  233. text-align: left;
  234. vertical-align: top;
  235. img {
  236. width: 56px;
  237. height: 56px;
  238. border-radius: 12px;
  239. }
  240. }
  241. .email-header-heading-txt-td {
  242. vertical-align: middle;
  243. padding-left: 16px;
  244. padding-right: 16px;
  245. h1 {
  246. margin-bottom: 5px;
  247. color: #fff;
  248. font-size: 24px;
  249. line-height: 28px;
  250. font-weight: 600;
  251. }
  252. p {
  253. color: #a399a5;
  254. font-size: 18px;
  255. line-height: 21.6px;
  256. font-weight: 500;
  257. }
  258. &:only-child {
  259. padding-left: 0;
  260. padding-right: 0;
  261. }
  262. }
  263. // To make the design work with images off
  264. // we create an empty div that overlaps with
  265. // the rest of the content with a dark background.
  266. .email-header-after-div {
  267. max-height: 0;
  268. }
  269. .email-header-after-inside-div {
  270. height: 30px;
  271. background-color: #1b001f;
  272. }
  273. // Body content
  274. .email-body-td {
  275. background-image: url('../images/mailer-new/common/header-bg-end.png');
  276. background-position: left top;
  277. background-repeat: no-repeat;
  278. }
  279. .email-body-padding-td {
  280. padding: 0 32px 32px;
  281. mso-padding-alt: 32px;
  282. }
  283. .email-body-padding-td {
  284. & > p {
  285. font-size: 14px;
  286. line-height: 20px;
  287. color: #17063b;
  288. a {
  289. color: #6364ff;
  290. text-decoration: none;
  291. &:hover {
  292. color: #563acc !important;
  293. }
  294. }
  295. }
  296. }
  297. // Footer
  298. .email-footer-td {
  299. padding: 28px 32px 32px;
  300. text-align: center;
  301. }
  302. .email-footer-logo-a {
  303. display: inline-block;
  304. }
  305. .email-footer-p {
  306. color: #9b94ab;
  307. text-align: center;
  308. font-size: 12px;
  309. line-height: 20px;
  310. a {
  311. color: #9b94ab;
  312. text-decoration: underline;
  313. }
  314. &:first-child {
  315. margin-bottom: 12px;
  316. }
  317. }
  318. // Button
  319. .email-btn-table {
  320. margin: 0;
  321. max-width: 100%;
  322. border-collapse: separate;
  323. border-radius: 8px;
  324. background-color: #6364ff;
  325. }
  326. .email-btn-td {
  327. height: 40px;
  328. text-align: center;
  329. mso-padding-alt: 0 35px;
  330. }
  331. .email-btn-a {
  332. display: block;
  333. border-radius: 8px;
  334. padding-left: 35px;
  335. padding-right: 35px;
  336. padding-top: 10px;
  337. padding-bottom: 10px;
  338. text-align: center;
  339. font-family: Inter, 'Lucida Grande', sans-serif;
  340. font-size: 14px;
  341. font-weight: 600;
  342. line-height: 20px;
  343. color: #fff;
  344. text-decoration: none;
  345. transition: background-color 0.3s ease-in-out;
  346. }
  347. // Status
  348. .email-status-header-img {
  349. vertical-align: top;
  350. width: 48px;
  351. img {
  352. width: 48px;
  353. height: 48px;
  354. border-radius: 8px;
  355. overflow: hidden;
  356. }
  357. }
  358. .email-status-header-text {
  359. padding-left: 16px;
  360. padding-right: 16px;
  361. vertical-align: middle;
  362. }
  363. .email-status-header-name {
  364. font-size: 16px;
  365. font-weight: 600;
  366. line-height: 24px;
  367. color: #17063b;
  368. }
  369. .email-status-header-handle {
  370. font-size: 14px;
  371. line-height: 20px;
  372. color: #746a89;
  373. }
  374. .email-status-content {
  375. padding-top: 24px;
  376. }
  377. .email-status-spoiler {
  378. color: #746a89;
  379. font-style: italic;
  380. margin-bottom: 8px;
  381. }
  382. .email-status-prose {
  383. p {
  384. font-size: 14px;
  385. line-height: 20px;
  386. color: #17063b;
  387. }
  388. a {
  389. color: #6364ff;
  390. text-decoration: none;
  391. &:hover {
  392. color: #563acc !important;
  393. }
  394. }
  395. }
  396. .email-status-media {
  397. margin-top: 16px;
  398. font-size: 14px;
  399. line-height: 20px;
  400. color: #17063b;
  401. img {
  402. border-radius: 8px;
  403. }
  404. a {
  405. color: #6364ff;
  406. text-decoration: none;
  407. &:hover {
  408. color: #563acc !important;
  409. }
  410. }
  411. }
  412. .email-status-footer {
  413. margin-top: 16px;
  414. font-size: 12px;
  415. line-height: 16px;
  416. color: #746a89;
  417. a {
  418. color: #746a89;
  419. }
  420. a:hover {
  421. color: #746a89 !important;
  422. text-decoration: underline !important;
  423. }
  424. }
  425. // Purple frame for emphasis
  426. .email-frame-table {
  427. background-color: #efefff;
  428. border-radius: 8px;
  429. }
  430. .email-frame-td {
  431. padding: 16px;
  432. }
  433. .email-frame-wrapper-td {
  434. padding-bottom: 16px;
  435. }
  436. .email-frame-td > p {
  437. text-align: center;
  438. font-size: 16px;
  439. line-height: 24px;
  440. }
  441. // Checklist item
  442. .email-checklist-wrapper-td {
  443. padding: 4px 0;
  444. }
  445. .email-checklist-table {
  446. border-radius: 12px;
  447. border-width: 1px;
  448. border-style: solid;
  449. border-color: #efefff;
  450. background-color: #fff;
  451. }
  452. .email-checklist-td {
  453. padding: 16px;
  454. }
  455. .email-checklist-icons-td {
  456. width: 84px;
  457. vertical-align: top;
  458. }
  459. .email-checklist-icons-checkbox-td {
  460. width: 20px;
  461. vertical-align: middle;
  462. img {
  463. max-width: 100%;
  464. width: 20px;
  465. }
  466. }
  467. .email-checklist-icons-step-td {
  468. width: 64px;
  469. text-align: center;
  470. vertical-align: middle;
  471. img {
  472. max-width: 100%;
  473. width: 40px;
  474. }
  475. }
  476. .email-checklist-text-td {
  477. h3 {
  478. margin: 0 0 4px;
  479. color: #17063b;
  480. font-size: 14px;
  481. font-weight: 600;
  482. line-height: 16.8px;
  483. }
  484. p {
  485. margin: 0 0 2px;
  486. color: #746a89;
  487. font-size: 14px;
  488. line-height: 16.8px;
  489. }
  490. .email-btn-table {
  491. width: 100px;
  492. }
  493. .email-btn-td {
  494. mso-padding-alt: 10px;
  495. }
  496. .email-btn-a {
  497. padding-left: 10px;
  498. padding-right: 10px;
  499. }
  500. }
  501. // Responsive
  502. /* stylelint-disable-next-line media-feature-range-notation -- Basic media queries have better support across email clients. */
  503. @media only screen and (min-width: 740px) {
  504. .email-desktop-p-8 {
  505. padding: 32px !important;
  506. }
  507. .email-desktop-rounded-16px {
  508. border-radius: 16px !important;
  509. }
  510. .email-header-td {
  511. border-radius: 16px 16px 0 0 !important;
  512. }
  513. .email-desktop-flex {
  514. display: flex;
  515. }
  516. }