闭社主体 forked from https://github.com/tootsuite/mastodon
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.

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