1
0

mailer.scss 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. @import 'mastodon/variables';
  2. @import 'fonts/roboto';
  3. table,
  4. td,
  5. div {
  6. box-sizing: border-box;
  7. }
  8. html,
  9. body {
  10. width: 100% !important;
  11. min-width: 100%;
  12. margin: 0;
  13. padding: 0;
  14. -webkit-text-size-adjust: 100%;
  15. -ms-text-size-adjust: 100%;
  16. }
  17. .email-body {
  18. td,
  19. div,
  20. a,
  21. span {
  22. line-height: inherit;
  23. }
  24. }
  25. a {
  26. &,
  27. &:visited,
  28. span {
  29. text-decoration: none;
  30. color: $ui-highlight-color;
  31. }
  32. #outlook & {
  33. padding: 0;
  34. }
  35. }
  36. img {
  37. outline: none;
  38. border: 0;
  39. text-decoration: none;
  40. -ms-interpolation-mode: bicubic;
  41. clear: both;
  42. line-height: 100%;
  43. }
  44. table {
  45. border-spacing: 0;
  46. mso-table-lspace: 0;
  47. mso-table-rspace: 0;
  48. }
  49. td {
  50. vertical-align: top;
  51. }
  52. .email-table,
  53. .content-section,
  54. .column,
  55. .column-cell {
  56. width: 100%;
  57. min-width: 100%;
  58. }
  59. .email-body {
  60. font-size: 0 !important;
  61. line-height: 100%;
  62. text-align: center;
  63. padding-left: 16px;
  64. padding-right: 16px;
  65. }
  66. .email-start {
  67. padding-top: 32px;
  68. }
  69. .email-end {
  70. padding-bottom: 32px;
  71. }
  72. .email-body,
  73. html,
  74. body {
  75. background-color: lighten($ui-base-color, 4%);
  76. }
  77. .email-container,
  78. .email-row,
  79. .col-0,
  80. .col-1,
  81. .col-2,
  82. .col-3,
  83. .col-4,
  84. .col-5,
  85. .col-6, {
  86. font-size: 0;
  87. display: inline-block;
  88. width: 100%;
  89. min-width: 100%;
  90. min-width: 0 !important;
  91. vertical-align: top;
  92. }
  93. .content-cell {
  94. width: 100%;
  95. min-width: 100%;
  96. min-width: 0 !important;
  97. }
  98. .column-cell {
  99. padding-top: 16px;
  100. padding-bottom: 16px;
  101. vertical-align: top;
  102. &.button-cell {
  103. padding-top: 0;
  104. }
  105. }
  106. .email-container {
  107. max-width: 632px;
  108. margin: 0 auto;
  109. text-align: center;
  110. }
  111. .email-row {
  112. display: block;
  113. max-width: 600px !important;
  114. margin: 0 auto;
  115. text-align: center;
  116. clear: both;
  117. }
  118. .col-0 {
  119. max-width: 50px;
  120. }
  121. .col-1 {
  122. max-width: 100px;
  123. }
  124. .col-2 {
  125. max-width: 200px;
  126. }
  127. .col-3 {
  128. max-width: 300px;
  129. }
  130. .col-4 {
  131. max-width: 400px;
  132. }
  133. .col-5 {
  134. max-width: 500px;
  135. }
  136. .col-6 {
  137. max-width: 600px;
  138. }
  139. .column-cell,
  140. .column-cell td,
  141. p {
  142. font-family: Helvetica, Arial, sans-serif;
  143. @media only screen {
  144. font-family: $font-sans-serif, sans-serif !important;
  145. }
  146. }
  147. .email-body .column-cell,
  148. .column-cell,
  149. p {
  150. font-size: 15px;
  151. line-height: 23px;
  152. color: $ui-primary-color;
  153. mso-line-height-rule: exactly;
  154. text-rendering: optimizelegibility;
  155. }
  156. p {
  157. display: block;
  158. margin-top: 0;
  159. margin-bottom: 16px;
  160. &.small {
  161. font-size: 13px;
  162. }
  163. &.lead {
  164. font-size: 19px;
  165. line-height: 27px;
  166. }
  167. }
  168. h1,
  169. h2,
  170. h3,
  171. h4,
  172. h5,
  173. h6 {
  174. color: $ui-secondary-color;
  175. margin-left: 0;
  176. margin-right: 0;
  177. margin-top: 20px;
  178. margin-bottom: 8px;
  179. padding: 0;
  180. font-weight: 500;
  181. }
  182. h1 {
  183. font-size: 26px;
  184. line-height: 36px;
  185. }
  186. h2 {
  187. font-size: 23px;
  188. line-height: 30px;
  189. }
  190. h3 {
  191. font-size: 19px;
  192. line-height: 25px;
  193. }
  194. h5 {
  195. font-size: 16px;
  196. line-height: 21px;
  197. font-weight: 700;
  198. color: lighten($ui-base-color, 34%);
  199. }
  200. .input-cell {
  201. h5 {
  202. margin-top: 4px;
  203. }
  204. }
  205. .input {
  206. td {
  207. background: darken($ui-base-color, 8%);
  208. border-radius: 4px;
  209. padding: 16px;
  210. line-height: 20px;
  211. mso-line-height-rule: exactly;
  212. border-radius: 4px;
  213. text-align: center;
  214. font-weight: 500;
  215. font-size: 17px;
  216. }
  217. }
  218. .content-cell,
  219. .blank-cell {
  220. width: 100%;
  221. font-size: 0;
  222. text-align: center;
  223. vertical-align: top;
  224. padding-left: 16px;
  225. padding-right: 16px;
  226. }
  227. .content-cell {
  228. background-color: darken($ui-base-color, 4%);
  229. &.darker {
  230. background-color: darken($ui-base-color, 8%);
  231. }
  232. }
  233. .hero {
  234. background-color: $ui-base-color;
  235. padding-top: 20px;
  236. }
  237. .hero-with-button {
  238. padding-bottom: 16px;
  239. h1 {
  240. margin-bottom: 4px;
  241. }
  242. p.lead {
  243. margin-bottom: 32px;
  244. }
  245. }
  246. .header {
  247. border-radius: 5px 5px 0 0;
  248. background-color: darken($ui-base-color, 8%);
  249. .column-cell {
  250. text-align: center;
  251. padding-top: 20px;
  252. padding-bottom: 8px;
  253. }
  254. }
  255. .content-start {
  256. padding-top: 32px;
  257. }
  258. .content-end {
  259. border-radius: 0 0 5px 5px;
  260. padding-top: 16px;
  261. }
  262. .footer {
  263. .column-cell,
  264. p {
  265. color: lighten($ui-base-color, 34%);
  266. }
  267. p {
  268. margin-bottom: 0;
  269. font-size: 13px;
  270. &.small {
  271. margin-bottom: 0;
  272. }
  273. }
  274. a {
  275. color: lighten($ui-base-color, 34%);
  276. text-decoration: underline;
  277. }
  278. img {
  279. opacity: 0.3;
  280. }
  281. }
  282. .logo {
  283. position: relative;
  284. left: -4px;
  285. }
  286. .button {
  287. display: table;
  288. margin-left: auto;
  289. margin-right: auto;
  290. td {
  291. line-height: 20px;
  292. mso-line-height-rule: exactly;
  293. border-radius: 4px;
  294. text-align: center;
  295. font-weight: 500;
  296. font-size: 17px;
  297. padding: 0 !important;
  298. a,
  299. a span {
  300. color: $primary-text-color;
  301. display: block !important;
  302. text-align: center !important;
  303. vertical-align: top !important;
  304. line-height: inherit !important;
  305. }
  306. a {
  307. padding: 10px 22px !important;
  308. line-height: 26px !important;
  309. font-weight: 500 !important;
  310. }
  311. }
  312. &.button-small {
  313. td {
  314. border-radius: 4px;
  315. font-size: 14px;
  316. padding: 8px 16px;
  317. a {
  318. padding: 5px 16px !important;
  319. line-height: 26px !important;
  320. }
  321. }
  322. }
  323. }
  324. .button-default {
  325. background-color: darken($ui-base-color, 8%);
  326. }
  327. .button-primary {
  328. background-color: darken($ui-highlight-color, 3%);
  329. }
  330. .text-center {
  331. text-align: center;
  332. }
  333. .text-right {
  334. text-align: right;
  335. }
  336. .padded {
  337. padding-left: 16px;
  338. padding-right: 16px;
  339. }
  340. .padded-bottom {
  341. padding-bottom: 32px;
  342. }
  343. .margin-bottom {
  344. margin-bottom: 20px;
  345. }
  346. .hero-icon {
  347. width: 64px;
  348. td {
  349. text-align: center;
  350. vertical-align: middle;
  351. line-height: 100%;
  352. mso-line-height-rule: exactly;
  353. padding: 16px;
  354. border-radius: 80px;
  355. background: $success-green;
  356. }
  357. &.alert-icon td {
  358. background: $error-red;
  359. }
  360. img {
  361. max-width: 32px;
  362. width: 32px;
  363. height: 32px;
  364. display: block;
  365. line-height: 100%;
  366. }
  367. }
  368. .hr {
  369. width: 100%;
  370. td {
  371. font-size: 0;
  372. line-height: 1px;
  373. mso-line-height-rule: exactly;
  374. min-height: 1px;
  375. overflow: hidden;
  376. height: 2px;
  377. background-color: transparent !important;
  378. border-top: 1px solid lighten($ui-base-color, 8%);
  379. }
  380. }
  381. .status {
  382. padding-bottom: 32px;
  383. &--highlighted {
  384. border: 1px solid lighten($ui-base-color, 8%);
  385. border-radius: 4px;
  386. padding-bottom: 16px;
  387. margin-bottom: 16px;
  388. }
  389. .status-header {
  390. td {
  391. font-size: 14px;
  392. padding-bottom: 15px;
  393. }
  394. bdi {
  395. color: $white;
  396. font-size: 16px;
  397. display: block;
  398. font-weight: 500;
  399. }
  400. td:first-child {
  401. padding-right: 10px;
  402. }
  403. img {
  404. width: 48px;
  405. height: 48px;
  406. border-radius: 4px;
  407. }
  408. }
  409. p {
  410. font-size: 19px;
  411. margin-bottom: 20px;
  412. &.status-footer {
  413. color: lighten($ui-base-color, 26%);
  414. font-size: 14px;
  415. margin-bottom: 0;
  416. a {
  417. color: lighten($ui-base-color, 26%);
  418. }
  419. }
  420. }
  421. }
  422. .border-top {
  423. border-top: 1px solid lighten($ui-base-color, 8%);
  424. }
  425. ul {
  426. padding-left: 15px;
  427. margin-top: 0;
  428. margin-bottom: 0;
  429. padding-top: 16px;
  430. li {
  431. margin-bottom: 16px;
  432. color: lighten($ui-base-color, 26%);
  433. span {
  434. color: $ui-primary-color;
  435. }
  436. }
  437. }
  438. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  439. body {
  440. min-height: 1024px !important;
  441. }
  442. }
  443. @media (max-width: 697px) {
  444. .email-container,
  445. .col-1,
  446. .col-2,
  447. .col-3,
  448. .col-4,
  449. .col-5,
  450. .col-6 {
  451. width: 100% !important;
  452. max-width: none !important;
  453. }
  454. .email-start {
  455. padding-top: 16px !important;
  456. }
  457. .email-end {
  458. padding-bottom: 16px !important;
  459. }
  460. .padded {
  461. padding-left: 0 !important;
  462. padding-right: 0 !important;
  463. }
  464. }