logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

mailer.scss (7495B)


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