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.

392 lines
5.2 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. .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: 'mastodon-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. .input {
  195. td {
  196. background: darken($ui-base-color, 8%);
  197. border-radius: 4px;
  198. padding: 16px;
  199. line-height: 20px;
  200. mso-line-height-rule: exactly;
  201. border-radius: 4px;
  202. text-align: center;
  203. font-weight: 500;
  204. font-size: 17px;
  205. }
  206. }
  207. .content-cell,
  208. .blank-cell {
  209. width: 100%;
  210. font-size: 0;
  211. text-align: center;
  212. vertical-align: top;
  213. padding-left: 16px;
  214. padding-right: 16px;
  215. }
  216. .content-cell {
  217. background-color: darken($ui-base-color, 4%);
  218. }
  219. .hero {
  220. background-color: $ui-base-color;
  221. padding-top: 20px;
  222. }
  223. .header {
  224. border-radius: 5px 5px 0 0;
  225. background-color: darken($ui-base-color, 8%);
  226. .column-cell {
  227. text-align: center;
  228. padding-top: 20px;
  229. padding-bottom: 8px;
  230. }
  231. }
  232. .content-start {
  233. padding-top: 32px;
  234. }
  235. .content-end {
  236. border-radius: 0 0 5px 5px;
  237. padding-top: 16px;
  238. }
  239. .footer {
  240. .column-cell,
  241. p {
  242. color: lighten($ui-base-color, 26%);
  243. }
  244. p {
  245. margin-bottom: 0;
  246. font-size: 13px;
  247. &.small {
  248. margin-bottom: 0;
  249. }
  250. }
  251. a {
  252. color: lighten($ui-base-color, 26%);
  253. text-decoration: underline;
  254. }
  255. img {
  256. opacity: 0.3;
  257. }
  258. }
  259. .logo {
  260. position: relative;
  261. left: -4px;
  262. }
  263. .button {
  264. display: table;
  265. margin-left: auto;
  266. margin-right: auto;
  267. td {
  268. line-height: 20px;
  269. mso-line-height-rule: exactly;
  270. border-radius: 4px;
  271. text-align: center;
  272. font-weight: 500;
  273. font-size: 17px;
  274. padding: 0 !important;
  275. a,
  276. a span {
  277. color: $primary-text-color;
  278. display: block !important;
  279. text-align: center !important;
  280. vertical-align: top !important;
  281. line-height: inherit !important;
  282. }
  283. a {
  284. padding: 10px 22px !important;
  285. line-height: 26px !important;
  286. font-weight: 500 !important;
  287. }
  288. }
  289. }
  290. .button-default {
  291. background-color: darken($ui-base-color, 8%);
  292. }
  293. .button-primary {
  294. background-color: $ui-highlight-color;
  295. }
  296. .text-center {
  297. text-align: center;
  298. }
  299. .text-right {
  300. text-align: right;
  301. }
  302. .padded {
  303. padding-left: 16px;
  304. padding-right: 16px;
  305. }
  306. .hero-icon {
  307. width: 64px;
  308. td {
  309. text-align: center;
  310. vertical-align: middle;
  311. line-height: 100%;
  312. mso-line-height-rule: exactly;
  313. padding: 16px;
  314. border-radius: 80px;
  315. background: $success-green;
  316. }
  317. img {
  318. max-width: 32px;
  319. width: 32px;
  320. height: 32px;
  321. display: block;
  322. line-height: 100%;
  323. }
  324. }
  325. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  326. body {
  327. min-height: 1024px !important;
  328. }
  329. }