mailer.scss 7.8 KB

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