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

734 lines
12 KiB

  1. .about-body {
  2. .wrapper {
  3. max-width: 600px;
  4. margin: 0 auto;
  5. color: $ui-primary-color;
  6. padding-top: 50px;
  7. padding-bottom: 50px;
  8. &.thicc {
  9. max-width: 800px;
  10. }
  11. }
  12. h1 {
  13. font: 46px/52px 'mastodon-font-sans-serif', sans-serif;
  14. font-weight: 600;
  15. margin-bottom: 20px;
  16. color: $ui-highlight-color;
  17. padding: 20px 0;
  18. img {
  19. margin-bottom: -5px;
  20. margin-right: 5px;
  21. width: 46px;
  22. height: 46px;
  23. }
  24. }
  25. h2 {
  26. font-family: 'mastodon-font-display', sans-serif;
  27. font-size: 24px;
  28. line-height: 28px;
  29. font-weight: 400;
  30. margin-bottom: 20px;
  31. color: $primary-text-color;
  32. }
  33. h3 {
  34. font-family: 'mastodon-font-display', sans-serif;
  35. font-size: 20px;
  36. line-height: 28px;
  37. font-weight: 400;
  38. margin-bottom: 20px;
  39. color: $ui-secondary-color;
  40. }
  41. ul,
  42. ol {
  43. list-style: inherit;
  44. margin-left: 20px;
  45. &[type='a'] {
  46. list-style-type: lower-alpha;
  47. }
  48. &[type='i'] {
  49. list-style-type: lower-roman;
  50. }
  51. }
  52. li > ol,
  53. li > ul {
  54. margin-top: 20px;
  55. }
  56. p,
  57. li {
  58. font: 16px/28px 'mastodon-font-sans-serif', sans-serif;
  59. font-weight: 400;
  60. margin-bottom: 12px;
  61. a {
  62. color: $ui-highlight-color;
  63. text-decoration: underline;
  64. }
  65. }
  66. em {
  67. display: inline-block;
  68. padding: 7px 7px 5px;
  69. margin: 0 2px;
  70. background: $ui-primary-color;
  71. color: $ui-base-color;
  72. font: 16px/16px 'mastodon-font-sans-serif', sans-serif;
  73. font-weight: 300;
  74. }
  75. .screenshot {
  76. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  77. margin-bottom: 26px;
  78. img {
  79. max-width: 100%;
  80. height: auto;
  81. display: block;
  82. }
  83. }
  84. .actions {
  85. overflow: hidden;
  86. margin-bottom: 20px;
  87. .info {
  88. float: right;
  89. text-align: right;
  90. line-height: 36px;
  91. a {
  92. color: $ui-primary-color;
  93. text-decoration: underline;
  94. }
  95. }
  96. }
  97. @media screen and (max-width: 625px) {
  98. .wrapper {
  99. padding: 20px;
  100. }
  101. }
  102. }
  103. .information-board {
  104. margin: 20px 0;
  105. display: flex;
  106. justify-content: space-between;
  107. border-top: 1px solid lighten($ui-base-color, 10%);
  108. border-bottom: 1px solid lighten($ui-base-color, 10%);
  109. padding-right: 14px;
  110. .section {
  111. flex: 1 0 0;
  112. padding: 14px;
  113. text-align: right;
  114. font: 16px/28px 'mastodon-font-sans-serif', sans-serif;
  115. span,
  116. strong {
  117. display: block;
  118. }
  119. span {
  120. font-size: 16px;
  121. &:last-child {
  122. color: $ui-secondary-color;
  123. font-size: 14px;
  124. }
  125. }
  126. strong {
  127. font-weight: 500;
  128. font-size: 32px;
  129. line-height: 48px;
  130. color: $primary-text-color;
  131. }
  132. }
  133. @media screen and (max-width: 500px) {
  134. flex-direction: column;
  135. .section {
  136. text-align: left;
  137. }
  138. }
  139. }
  140. .owner {
  141. text-align: center;
  142. .avatar {
  143. width: 80px;
  144. height: 80px;
  145. margin: 0 auto;
  146. margin-bottom: 15px;
  147. img {
  148. display: block;
  149. width: 80px;
  150. height: 80px;
  151. border-radius: 48px;
  152. }
  153. }
  154. .name {
  155. font-size: 14px;
  156. a {
  157. display: block;
  158. color: $primary-text-color;
  159. text-decoration: none;
  160. &:hover {
  161. .display_name {
  162. text-decoration: underline;
  163. }
  164. }
  165. }
  166. .username {
  167. display: block;
  168. color: $ui-primary-color;
  169. }
  170. }
  171. }
  172. .contact-email {
  173. text-align: center;
  174. margin: 40px 0;
  175. strong {
  176. display: block;
  177. color: $primary-text-color;
  178. word-break: break-word;
  179. }
  180. }
  181. .sidebar-layout {
  182. display: flex;
  183. .main {
  184. flex: 1 1 auto;
  185. padding: 14px 0;
  186. .panel {
  187. padding-right: 14px;
  188. }
  189. }
  190. .sidebar {
  191. border-left: 1px solid lighten($ui-base-color, 10%);
  192. width: 200px;
  193. flex: 0 0 auto;
  194. }
  195. .panel {
  196. .panel-header {
  197. background: lighten($ui-base-color, 10%);
  198. padding: 7px 14px;
  199. text-transform: uppercase;
  200. font-size: 12px;
  201. font-weight: 500;
  202. }
  203. .panel-body {
  204. padding: 14px;
  205. }
  206. .panel-list {
  207. ul {
  208. list-style: none;
  209. margin: 0;
  210. li {
  211. margin: 0;
  212. font-family: inherit;
  213. font-size: 13px;
  214. line-height: 18px;
  215. a {
  216. display: block;
  217. padding: 7px 14px;
  218. color: rgba($primary-text-color, 0.7);
  219. text-decoration: none;
  220. transition: all 200ms linear;
  221. i.fa {
  222. margin-right: 5px;
  223. }
  224. &:hover {
  225. color: $primary-text-color;
  226. background-color: darken($ui-base-color, 5%);
  227. transition: all 100ms linear;
  228. }
  229. &.selected {
  230. color: $primary-text-color;
  231. background-color: $ui-highlight-color;
  232. &:hover {
  233. background-color: lighten($ui-highlight-color, 5%);
  234. }
  235. }
  236. }
  237. }
  238. }
  239. }
  240. }
  241. @media screen and (max-width: 625px) {
  242. flex-direction: column;
  243. .sidebar {
  244. border: 1px solid lighten($ui-base-color, 10%);
  245. width: auto;
  246. }
  247. }
  248. }
  249. .features-list__row {
  250. display: flex;
  251. padding: 10px 0;
  252. justify-content: space-between;
  253. &:first-child {
  254. padding-top: 0;
  255. }
  256. .visual {
  257. flex: 0 0 auto;
  258. display: flex;
  259. align-items: center;
  260. margin-left: 15px;
  261. .fa {
  262. display: block;
  263. color: $ui-primary-color;
  264. font-size: 48px;
  265. }
  266. }
  267. .text {
  268. font-size: 16px;
  269. line-height: 30px;
  270. color: lighten($ui-base-color, 26%);
  271. h6 {
  272. font-weight: 500;
  273. color: $ui-primary-color;
  274. }
  275. }
  276. }
  277. .landing-page {
  278. .header-wrapper {
  279. padding-top: 15px;
  280. background: $ui-base-color;
  281. background: linear-gradient(150deg, lighten($ui-base-color, 8%), $ui-base-color);
  282. position: relative;
  283. .mascot-container {
  284. max-width: 800px;
  285. margin: 0 auto;
  286. position: absolute;
  287. top: 0;
  288. left: 0;
  289. right: 0;
  290. height: 100%;
  291. }
  292. .mascot {
  293. position: absolute;
  294. bottom: -14px;
  295. width: auto;
  296. height: auto;
  297. left: 60px;
  298. z-index: 3;
  299. }
  300. }
  301. p,
  302. li {
  303. font: inherit;
  304. font-weight: inherit;
  305. margin-bottom: 0;
  306. }
  307. .header {
  308. line-height: 30px;
  309. overflow: hidden;
  310. .container {
  311. display: flex;
  312. justify-content: space-between;
  313. }
  314. .hero {
  315. margin-top: 50px;
  316. align-items: center;
  317. position: relative;
  318. .floats {
  319. position: absolute;
  320. width: 100%;
  321. height: 100%;
  322. top: 0;
  323. left: 0;
  324. img {
  325. position: absolute;
  326. transition: all 0.1s linear;
  327. animation-name: floating;
  328. animation-duration: 1.7s;
  329. animation-iteration-count: infinite;
  330. animation-direction: alternate;
  331. animation-timing-function: linear;
  332. z-index: 2;
  333. }
  334. .float-1 {
  335. height: 170px;
  336. right: -120px;
  337. bottom: 0;
  338. }
  339. .float-2 {
  340. height: 100px;
  341. right: 210px;
  342. bottom: 0;
  343. animation-delay: 0.2s;
  344. }
  345. .float-3 {
  346. height: 140px;
  347. right: 110px;
  348. top: -30px;
  349. animation-delay: 0.1s;
  350. }
  351. }
  352. .simple_form,
  353. .closed-registrations-message {
  354. background: darken($ui-base-color, 4%);
  355. width: 280px;
  356. padding: 15px 20px;
  357. border-radius: 4px 4px 0 0;
  358. line-height: initial;
  359. position: relative;
  360. z-index: 4;
  361. .actions {
  362. margin-bottom: 0;
  363. button,
  364. .button,
  365. .block-button {
  366. margin-bottom: 0;
  367. }
  368. }
  369. }
  370. .heading {
  371. position: relative;
  372. z-index: 4;
  373. padding-bottom: 150px;
  374. }
  375. .closed-registrations-message {
  376. min-height: 330px;
  377. display: flex;
  378. flex-direction: column;
  379. justify-content: space-between;
  380. }
  381. }
  382. ul {
  383. list-style: none;
  384. margin: 0;
  385. li {
  386. display: inline-block;
  387. vertical-align: bottom;
  388. margin: 0;
  389. &:first-child a {
  390. padding-left: 0;
  391. }
  392. &:last-child a {
  393. padding-right: 0;
  394. }
  395. }
  396. }
  397. .links {
  398. position: relative;
  399. z-index: 4;
  400. a {
  401. display: flex;
  402. justify-content: center;
  403. align-items: center;
  404. color: $ui-primary-color;
  405. text-decoration: none;
  406. padding: 12px 16px;
  407. line-height: 32px;
  408. font-family: 'mastodon-font-display', sans-serif;
  409. font-weight: 500;
  410. font-size: 14px;
  411. &:hover {
  412. color: $ui-secondary-color;
  413. }
  414. }
  415. .brand {
  416. a {
  417. padding-left: 0;
  418. color: $white;
  419. }
  420. img {
  421. width: 32px;
  422. height: 32px;
  423. margin-right: 10px;
  424. }
  425. }
  426. }
  427. }
  428. .container {
  429. width: 100%;
  430. box-sizing: border-box;
  431. max-width: 800px;
  432. margin: 0 auto;
  433. }
  434. .wrapper {
  435. max-width: 800px;
  436. margin: 0 auto;
  437. padding: 0;
  438. }
  439. .learn-more-cta {
  440. background: darken($ui-base-color, 4%);
  441. padding: 50px 0;
  442. }
  443. h3 {
  444. font-family: 'mastodon-font-display', sans-serif;
  445. font-size: 16px;
  446. line-height: 24px;
  447. font-weight: 500;
  448. margin-bottom: 20px;
  449. color: $ui-primary-color;
  450. }
  451. p {
  452. font-size: 16px;
  453. line-height: 30px;
  454. color: lighten($ui-base-color, 26%);
  455. }
  456. .features {
  457. padding: 50px 0;
  458. .container {
  459. display: flex;
  460. }
  461. }
  462. #mastodon-timeline {
  463. -webkit-overflow-scrolling: touch;
  464. -ms-overflow-style: -ms-autohiding-scrollbar;
  465. font-family: 'mastodon-font-sans-serif', sans-serif;
  466. font-size: 13px;
  467. line-height: 18px;
  468. font-weight: 400;
  469. color: $primary-text-color;
  470. width: 330px;
  471. margin-right: 30px;
  472. flex: 0 0 auto;
  473. background: $ui-base-color;
  474. overflow: hidden;
  475. box-shadow: 0 0 6px rgba($black, 0.1);
  476. .column {
  477. padding: 0;
  478. border-radius: 4px;
  479. overflow: hidden;
  480. height: 100%;
  481. }
  482. .scrollable {
  483. height: 400px;
  484. }
  485. p {
  486. font-size: inherit;
  487. line-height: inherit;
  488. font-weight: inherit;
  489. color: $primary-text-color;
  490. a {
  491. color: $ui-secondary-color;
  492. text-decoration: none;
  493. }
  494. }
  495. }
  496. .about-mastodon {
  497. max-width: 675px;
  498. p {
  499. margin-bottom: 20px;
  500. }
  501. .features-list {
  502. margin-top: 20px;
  503. }
  504. }
  505. em {
  506. display: inline;
  507. margin: 0;
  508. padding: 0;
  509. font-weight: 500;
  510. background: transparent;
  511. font-family: inherit;
  512. font-size: inherit;
  513. line-height: inherit;
  514. color: $ui-primary-color;
  515. }
  516. h1 {
  517. font-family: 'mastodon-font-display', sans-serif;
  518. font-size: 26px;
  519. line-height: 30px;
  520. margin-bottom: 0;
  521. font-weight: 500;
  522. color: $ui-secondary-color;
  523. small {
  524. font-family: 'mastodon-font-sans-serif', sans-serif;
  525. display: block;
  526. font-size: 18px;
  527. font-weight: 400;
  528. color: lighten($ui-base-color, 26%);
  529. }
  530. }
  531. .footer-links {
  532. padding-bottom: 50px;
  533. text-align: right;
  534. color: lighten($ui-base-color, 26%);
  535. p {
  536. font-size: 14px;
  537. }
  538. a {
  539. color: inherit;
  540. text-decoration: underline;
  541. }
  542. }
  543. @media screen and (max-width: 800px) {
  544. .container {
  545. padding: 0 20px;
  546. }
  547. .header-wrapper .mascot {
  548. left: 20px;
  549. }
  550. }
  551. @media screen and (max-width: 689px) {
  552. .header-wrapper .mascot {
  553. display: none;
  554. }
  555. }
  556. @media screen and (max-width: 675px) {
  557. .header-wrapper {
  558. padding-top: 0;
  559. }
  560. .header .container,
  561. .features .container {
  562. display: block;
  563. }
  564. .links {
  565. padding-top: 15px;
  566. background: darken($ui-base-color, 4%);
  567. }
  568. .header {
  569. padding-top: 0;
  570. .hero {
  571. margin-top: 30px;
  572. padding: 0;
  573. .heading {
  574. padding-bottom: 20px;
  575. }
  576. }
  577. .floats {
  578. display: none;
  579. }
  580. .heading,
  581. .nav {
  582. text-align: center;
  583. }
  584. .heading h1 {
  585. padding: 30px 0;
  586. }
  587. .hero {
  588. .simple_form,
  589. .closed-registrations-message {
  590. background: darken($ui-base-color, 8%);
  591. width: 100%;
  592. border-radius: 0;
  593. box-sizing: border-box;
  594. }
  595. }
  596. }
  597. #mastodon-timeline {
  598. height: 70vh;
  599. width: 100%;
  600. margin-bottom: 50px;
  601. }
  602. }
  603. }
  604. @keyframes floating {
  605. from {
  606. transform: translate(0, 0);
  607. }
  608. 65% {
  609. transform: translate(0, 4px);
  610. }
  611. to {
  612. transform: translate(0, -0);
  613. }
  614. }