mailer.scss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  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. h2 {
  195. font-size: 23px;
  196. line-height: 30px;
  197. }
  198. h3 {
  199. font-size: 19px;
  200. line-height: 25px;
  201. }
  202. h5 {
  203. font-size: 16px;
  204. line-height: 21px;
  205. font-weight: 700;
  206. color: lighten($ui-base-color, 34%);
  207. }
  208. .input-cell {
  209. h5 {
  210. margin-top: 4px;
  211. }
  212. }
  213. .input {
  214. td {
  215. background: darken($ui-base-color, 8%);
  216. border-radius: 4px;
  217. padding: 16px;
  218. line-height: 20px;
  219. mso-line-height-rule: exactly;
  220. text-align: center;
  221. font-weight: 500;
  222. font-size: 17px;
  223. }
  224. }
  225. .content-cell,
  226. .blank-cell {
  227. width: 100%;
  228. font-size: 0;
  229. text-align: center;
  230. vertical-align: top;
  231. padding-left: 16px;
  232. padding-right: 16px;
  233. }
  234. .content-cell {
  235. background-color: darken($ui-base-color, 4%);
  236. &.darker {
  237. background-color: darken($ui-base-color, 8%);
  238. }
  239. }
  240. .hero {
  241. background-color: $ui-base-color;
  242. padding-top: 20px;
  243. }
  244. .hero-with-button {
  245. padding-bottom: 16px;
  246. h1 {
  247. margin-bottom: 4px;
  248. }
  249. p.lead {
  250. margin-bottom: 32px;
  251. }
  252. }
  253. .header {
  254. border-radius: 5px 5px 0 0;
  255. background-color: darken($ui-base-color, 8%);
  256. .column-cell {
  257. text-align: center;
  258. padding-top: 20px;
  259. padding-bottom: 8px;
  260. }
  261. }
  262. .content-start {
  263. padding-top: 32px;
  264. }
  265. .content-end {
  266. border-radius: 0 0 5px 5px;
  267. padding-top: 16px;
  268. }
  269. .footer {
  270. .column-cell,
  271. p {
  272. color: lighten($ui-base-color, 34%);
  273. }
  274. p {
  275. margin-bottom: 0;
  276. font-size: 13px;
  277. &.small {
  278. margin-bottom: 0;
  279. }
  280. }
  281. a {
  282. color: lighten($ui-base-color, 34%);
  283. text-decoration: underline;
  284. }
  285. img {
  286. opacity: 0.3;
  287. }
  288. }
  289. .logo {
  290. position: relative;
  291. left: -4px;
  292. }
  293. .button {
  294. display: table;
  295. margin-left: auto;
  296. margin-right: auto;
  297. td {
  298. line-height: 20px;
  299. mso-line-height-rule: exactly;
  300. border-radius: 4px;
  301. text-align: center;
  302. font-weight: 500;
  303. font-size: 17px;
  304. padding: 0 !important;
  305. a,
  306. a span {
  307. color: $primary-text-color;
  308. display: block !important;
  309. text-align: center !important;
  310. vertical-align: top !important;
  311. line-height: inherit !important;
  312. }
  313. a {
  314. padding: 10px 22px !important;
  315. line-height: 26px !important;
  316. font-weight: 500 !important;
  317. }
  318. }
  319. &.button-small {
  320. td {
  321. border-radius: 4px;
  322. font-size: 14px;
  323. padding: 8px 16px;
  324. a {
  325. padding: 5px 16px !important;
  326. line-height: 26px !important;
  327. }
  328. }
  329. }
  330. }
  331. .button-default {
  332. background-color: darken($ui-base-color, 8%);
  333. }
  334. .button-primary {
  335. background-color: darken($ui-highlight-color, 3%);
  336. }
  337. .text-center {
  338. text-align: center;
  339. }
  340. .text-right {
  341. text-align: right;
  342. }
  343. .padded {
  344. padding-left: 16px;
  345. padding-right: 16px;
  346. }
  347. .padded-bottom {
  348. padding-bottom: 32px;
  349. }
  350. .margin-bottom {
  351. margin-bottom: 20px;
  352. }
  353. .hero-icon {
  354. width: 64px;
  355. td {
  356. text-align: center;
  357. vertical-align: middle;
  358. line-height: 100%;
  359. mso-line-height-rule: exactly;
  360. padding: 16px;
  361. border-radius: 80px;
  362. background: $success-green;
  363. }
  364. &.warning-icon td {
  365. background: $gold-star;
  366. }
  367. &.alert-icon td {
  368. background: $error-red;
  369. }
  370. img {
  371. max-width: 32px;
  372. width: 32px;
  373. height: 32px;
  374. display: block;
  375. line-height: 100%;
  376. }
  377. }
  378. .hr {
  379. width: 100%;
  380. td {
  381. font-size: 0;
  382. line-height: 1px;
  383. mso-line-height-rule: exactly;
  384. min-height: 1px;
  385. overflow: hidden;
  386. height: 2px;
  387. background-color: transparent !important;
  388. border-top: 1px solid lighten($ui-base-color, 8%);
  389. }
  390. }
  391. .status {
  392. padding-bottom: 32px;
  393. &--highlighted {
  394. border: 1px solid lighten($ui-base-color, 8%);
  395. border-radius: 4px;
  396. padding-bottom: 16px;
  397. margin-bottom: 16px;
  398. }
  399. .status-header {
  400. td {
  401. font-size: 14px;
  402. padding-bottom: 15px;
  403. }
  404. bdi {
  405. color: $white;
  406. font-size: 16px;
  407. display: block;
  408. font-weight: 500;
  409. }
  410. td:first-child {
  411. padding-right: 10px;
  412. }
  413. img {
  414. width: 48px;
  415. height: 48px;
  416. border-radius: 4px;
  417. }
  418. }
  419. p {
  420. font-size: 19px;
  421. margin-bottom: 20px;
  422. &.status-footer {
  423. color: lighten($ui-base-color, 26%);
  424. font-size: 14px;
  425. margin-bottom: 0;
  426. a {
  427. color: lighten($ui-base-color, 26%);
  428. }
  429. }
  430. }
  431. }
  432. .border-top {
  433. border-top: 1px solid lighten($ui-base-color, 8%);
  434. }
  435. ul {
  436. padding-left: 15px;
  437. margin-top: 0;
  438. margin-bottom: 0;
  439. padding-top: 16px;
  440. li {
  441. margin-bottom: 16px;
  442. color: lighten($ui-base-color, 26%);
  443. span {
  444. color: $ui-primary-color;
  445. }
  446. }
  447. }
  448. ul.rules-list {
  449. padding-top: 0;
  450. }
  451. @media only screen and (device-width >= 768px) and (device-width <= 1024px) and (orientation: landscape) {
  452. body {
  453. min-height: 1024px !important;
  454. }
  455. }
  456. @media (width <= 697px) {
  457. .email-container,
  458. .col-1,
  459. .col-2,
  460. .col-3,
  461. .col-4,
  462. .col-5,
  463. .col-6 {
  464. width: 100% !important;
  465. max-width: none !important;
  466. }
  467. .email-start {
  468. padding-top: 16px !important;
  469. }
  470. .email-end {
  471. padding-bottom: 16px !important;
  472. }
  473. .padded {
  474. padding-left: 0 !important;
  475. padding-right: 0 !important;
  476. }
  477. }