闭社主体 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.

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