You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

567 lines
7.6 KiB

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