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.

570 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. 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. &.alert-icon td {
  365. background: $error-red;
  366. }
  367. img {
  368. max-width: 32px;
  369. width: 32px;
  370. height: 32px;
  371. display: block;
  372. line-height: 100%;
  373. }
  374. }
  375. .hr {
  376. width: 100%;
  377. td {
  378. font-size: 0;
  379. line-height: 1px;
  380. mso-line-height-rule: exactly;
  381. min-height: 1px;
  382. overflow: hidden;
  383. height: 2px;
  384. background-color: transparent !important;
  385. border-top: 1px solid lighten($ui-base-color, 8%);
  386. }
  387. }
  388. .status {
  389. padding-bottom: 32px;
  390. &--highlighted {
  391. border: 1px solid lighten($ui-base-color, 8%);
  392. border-radius: 4px;
  393. padding-bottom: 16px;
  394. margin-bottom: 16px;
  395. }
  396. .status-header {
  397. td {
  398. font-size: 14px;
  399. padding-bottom: 15px;
  400. }
  401. bdi {
  402. color: $white;
  403. font-size: 16px;
  404. display: block;
  405. font-weight: 500;
  406. }
  407. td:first-child {
  408. padding-right: 10px;
  409. }
  410. img {
  411. width: 48px;
  412. height: 48px;
  413. border-radius: 4px;
  414. }
  415. }
  416. p {
  417. font-size: 19px;
  418. margin-bottom: 20px;
  419. &.status-footer {
  420. color: lighten($ui-base-color, 26%);
  421. font-size: 14px;
  422. margin-bottom: 0;
  423. a {
  424. color: lighten($ui-base-color, 26%);
  425. }
  426. }
  427. }
  428. }
  429. .border-top {
  430. border-top: 1px solid lighten($ui-base-color, 8%);
  431. }
  432. ul {
  433. padding-left: 15px;
  434. margin-top: 0;
  435. margin-bottom: 0;
  436. padding-top: 16px;
  437. li {
  438. margin-bottom: 16px;
  439. color: lighten($ui-base-color, 26%);
  440. span {
  441. color: $ui-primary-color;
  442. }
  443. }
  444. }
  445. ul.rules-list {
  446. padding-top: 0;
  447. }
  448. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  449. body {
  450. min-height: 1024px !important;
  451. }
  452. }
  453. @media (max-width: 697px) {
  454. .email-container,
  455. .col-1,
  456. .col-2,
  457. .col-3,
  458. .col-4,
  459. .col-5,
  460. .col-6 {
  461. width: 100% !important;
  462. max-width: none !important;
  463. }
  464. .email-start {
  465. padding-top: 16px !important;
  466. }
  467. .email-end {
  468. padding-bottom: 16px !important;
  469. }
  470. .padded {
  471. padding-left: 0 !important;
  472. padding-right: 0 !important;
  473. }
  474. }