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.

719 lines
16 KiB

  1. .landing-page {
  2. p,
  3. li {
  4. font-family: 'mastodon-font-sans-serif', sans-serif;
  5. font-size: 16px;
  6. font-weight: 400;
  7. font-size: 16px;
  8. line-height: 30px;
  9. margin-bottom: 12px;
  10. color: $ui-primary-color;
  11. a {
  12. color: $ui-highlight-color;
  13. text-decoration: underline;
  14. }
  15. }
  16. em {
  17. display: inline;
  18. margin: 0;
  19. padding: 0;
  20. font-weight: 500;
  21. background: transparent;
  22. font-family: inherit;
  23. font-size: inherit;
  24. line-height: inherit;
  25. color: lighten($ui-primary-color, 10%);
  26. }
  27. h1 {
  28. font-family: 'mastodon-font-display', sans-serif;
  29. font-size: 26px;
  30. line-height: 30px;
  31. font-weight: 500;
  32. margin-bottom: 20px;
  33. color: $ui-secondary-color;
  34. small {
  35. font-family: 'mastodon-font-sans-serif', sans-serif;
  36. display: block;
  37. font-size: 18px;
  38. font-weight: 400;
  39. color: $ui-base-lighter-color;
  40. }
  41. }
  42. h2 {
  43. font-family: 'mastodon-font-display', sans-serif;
  44. font-size: 22px;
  45. line-height: 26px;
  46. font-weight: 500;
  47. margin-bottom: 20px;
  48. color: $ui-secondary-color;
  49. }
  50. h3 {
  51. font-family: 'mastodon-font-display', sans-serif;
  52. font-size: 18px;
  53. line-height: 24px;
  54. font-weight: 500;
  55. margin-bottom: 20px;
  56. color: $ui-secondary-color;
  57. }
  58. h4 {
  59. font-family: 'mastodon-font-display', sans-serif;
  60. font-size: 16px;
  61. line-height: 24px;
  62. font-weight: 500;
  63. margin-bottom: 20px;
  64. color: $ui-secondary-color;
  65. }
  66. h5 {
  67. font-family: 'mastodon-font-display', sans-serif;
  68. font-size: 14px;
  69. line-height: 24px;
  70. font-weight: 500;
  71. margin-bottom: 20px;
  72. color: $ui-secondary-color;
  73. }
  74. h6 {
  75. font-family: 'mastodon-font-display', sans-serif;
  76. font-size: 12px;
  77. line-height: 24px;
  78. font-weight: 500;
  79. margin-bottom: 20px;
  80. color: $ui-secondary-color;
  81. }
  82. ul,
  83. ol {
  84. margin-left: 20px;
  85. &[type='a'] {
  86. list-style-type: lower-alpha;
  87. }
  88. &[type='i'] {
  89. list-style-type: lower-roman;
  90. }
  91. }
  92. ul {
  93. list-style: disc;
  94. }
  95. ol {
  96. list-style: decimal;
  97. }
  98. li > ol,
  99. li > ul {
  100. margin-top: 6px;
  101. }
  102. hr {
  103. border-color: rgba($ui-base-lighter-color, .6);
  104. }
  105. .container {
  106. width: 100%;
  107. box-sizing: border-box;
  108. max-width: 800px;
  109. margin: 0 auto;
  110. }
  111. .header-wrapper {
  112. padding-top: 15px;
  113. background: $ui-base-color;
  114. background: linear-gradient(150deg, lighten($ui-base-color, 8%), $ui-base-color);
  115. position: relative;
  116. &.compact {
  117. background: $ui-base-color;
  118. padding-bottom: 15px;
  119. .hero .heading {
  120. padding-bottom: 30px;
  121. font-family: 'mastodon-font-sans-serif', sans-serif;
  122. font-size: 16px;
  123. font-weight: 400;
  124. font-size: 16px;
  125. line-height: 30px;
  126. color: $ui-primary-color;
  127. a {
  128. color: $ui-highlight-color;
  129. text-decoration: underline;
  130. }
  131. }
  132. }
  133. .mascot-container {
  134. max-width: 800px;
  135. margin: 0 auto;
  136. position: absolute;
  137. top: 0;
  138. left: 0;
  139. right: 0;
  140. height: 100%;
  141. }
  142. .mascot {
  143. position: absolute;
  144. bottom: -14px;
  145. width: auto;
  146. height: auto;
  147. left: 60px;
  148. z-index: 3;
  149. }
  150. }
  151. .header {
  152. line-height: 30px;
  153. overflow: hidden;
  154. .container {
  155. display: flex;
  156. justify-content: space-between;
  157. }
  158. .links {
  159. position: relative;
  160. z-index: 4;
  161. a {
  162. display: flex;
  163. justify-content: center;
  164. align-items: center;
  165. color: $ui-primary-color;
  166. text-decoration: none;
  167. padding: 12px 16px;
  168. line-height: 32px;
  169. font-family: 'mastodon-font-display', sans-serif;
  170. font-weight: 500;
  171. font-size: 14px;
  172. &:hover {
  173. color: $ui-secondary-color;
  174. }
  175. }
  176. .brand {
  177. a {
  178. padding-left: 0;
  179. padding-right: 0;
  180. color: $white;
  181. }
  182. img {
  183. height: 32px;
  184. position: relative;
  185. top: 4px;
  186. left: -10px;
  187. }
  188. }
  189. ul {
  190. list-style: none;
  191. margin: 0;
  192. li {
  193. display: inline-block;
  194. vertical-align: bottom;
  195. margin: 0;
  196. &:first-child a {
  197. padding-left: 0;
  198. }
  199. &:last-child a {
  200. padding-right: 0;
  201. }
  202. }
  203. }
  204. }
  205. .hero {
  206. margin-top: 50px;
  207. align-items: center;
  208. position: relative;
  209. .floats {
  210. position: absolute;
  211. width: 100%;
  212. height: 100%;
  213. top: 0;
  214. left: 0;
  215. div {
  216. position: absolute;
  217. transition: all 0.1s linear;
  218. animation-name: floating;
  219. animation-iteration-count: infinite;
  220. animation-direction: alternate;
  221. animation-timing-function: ease-in-out;
  222. z-index: 2;
  223. }
  224. .float-1 {
  225. width: 324px;
  226. height: 170px;
  227. right: -120px;
  228. bottom: 0;
  229. animation-duration: 3s;
  230. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 447.1875 234.375" height="170" width="324"><path fill="#{hex-color($ui-base-lighter-color)}" d="M21.69 233.366c-6.45-1.268-13.347-5.63-16.704-10.564-10.705-15.734-1.513-37.724 18.632-44.57l4.8-1.632.173-17.753c.146-14.77.515-19.063 2.2-25.55 6.736-25.944 24.46-46.032 47.766-54.137 11.913-4.143 19.558-5.366 34.178-5.47l13.828-.096V71.12c0-4.755 2.853-17.457 5.238-23.327 8.588-21.137 26.735-35.957 52.153-42.593 23.248-6.07 50.153-6.415 71.863-.923 11.14 2.82 25.686 9.957 33.857 16.615 19.335 15.756 31.82 41.05 35.183 71.275.59 5.305.672 5.435 3.11 4.926 11.833-2.474 30.4-3.132 40.065-1.42 24.388 4.32 40.568 19.076 47.214 43.058 2.16 7.8 3.953 23.894 3.59 32.237l-.24 5.498 5.156 1.317c6.392 1.633 14.55 7.098 18.003 12.062 1.435 2.062 3.305 6.597 4.156 10.078 1.428 5.84 1.43 6.8.04 12.44-1.807 7.318-5.672 13.252-10.872 16.694-8.508 5.63 3.756 5.33-211.916 5.216-108.56-.056-199.22-.464-201.47-.906z"/></svg>');
  231. }
  232. .float-2 {
  233. width: 241px;
  234. height: 100px;
  235. right: 210px;
  236. bottom: 0;
  237. animation-duration: 3.5s;
  238. animation-delay: 0.2s;
  239. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 536.25 222.1875" height="100" width="241"><path fill="#{hex-color($ui-base-lighter-color)}" d="M42.626 221.23c-14.104-1.174-26.442-5.133-32.825-10.534-4.194-3.548-7.684-10.66-8.868-18.075-1.934-12.102.633-22.265 7.528-29.81 7.61-8.328 19.998-12.76 39.855-14.257l8.47-.638-2.08-6.223c-4.826-14.422-6.357-24.813-6.37-43.255-.012-14.923.28-18.513 2.1-25.724 2.283-9.048 8.483-23.034 13.345-30.1 14.76-21.45 43.505-38.425 70.535-41.65 30.628-3.655 64.47 12.073 89.668 41.673l5.955 6.995 2.765-4.174c1.52-2.296 5.74-6.93 9.376-10.295 18.382-17.02 43.436-20.676 73.352-10.705 12.158 4.052 21.315 9.53 29.64 17.733 12.752 12.562 18.16 25.718 18.19 44.26l.02 10.98 2.312-3.01c15.64-20.365 42.29-20.485 62.438-.28 3.644 3.653 7.558 8.593 8.697 10.976 4.895 10.24 5.932 25.688 2.486 37.046-.76 2.507-1.388 4.816-1.393 5.13-.006.316 6.845.87 15.224 1.234 53.06 2.297 76.356 12.98 81.817 37.526 3.554 15.973-3.71 28.604-19.566 34.02-4.554 1.555-17.922 1.655-234.517 1.757-126.327.06-233.497-.21-238.154-.597z"/></svg>');
  240. }
  241. .float-3 {
  242. width: 267px;
  243. height: 140px;
  244. right: 110px;
  245. top: -30px;
  246. animation-duration: 4s;
  247. animation-delay: 0.5s;
  248. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 388.125 202.5" height="140" width="267"><path fill="#{hex-color($ui-base-lighter-color)}" d="M181.37 201.458c-17.184-1.81-36.762-8.944-49.523-18.05l-5.774-4.12-8.074 2.63c-11.468 3.738-21.382 4.962-35.815 4.422-14.79-.554-24.577-2.845-36.716-8.594-15.483-7.332-28.498-19.98-35.985-34.968C2.44 128.675-.94 108.435.9 91.356c3.362-31.234 18.197-53.698 43.63-66.074 12.803-6.23 22.384-8.55 37.655-9.122 14.433-.54 24.347.684 35.814 4.42l8.073 2.633 5.635-4.01c24.81-17.656 60.007-23.332 92.914-14.985 10.11 2.565 25.498 9.62 33.102 15.178l5.068 3.704 7.632-2.564c10.89-3.66 21.086-4.916 35.516-4.376 45.816 1.716 76.422 30.03 81.285 75.196 1.84 17.08-1.54 37.32-8.585 51.422-7.487 14.99-20.502 27.636-35.984 34.968-12.14 5.75-21.926 8.04-36.716 8.593-14.43.54-24.626-.716-35.516-4.376l-7.632-2.564-5.068 3.704c-12.844 9.387-32.714 16.488-51.545 18.42-10.607 1.09-13.916 1.08-24.81-.066z"/></svg>');
  249. }
  250. }
  251. .heading {
  252. position: relative;
  253. z-index: 4;
  254. padding-bottom: 150px;
  255. }
  256. .simple_form,
  257. .closed-registrations-message {
  258. background: darken($ui-base-color, 4%);
  259. width: 280px;
  260. padding: 15px 20px;
  261. border-radius: 4px 4px 0 0;
  262. line-height: initial;
  263. position: relative;
  264. z-index: 4;
  265. .actions {
  266. margin-bottom: 0;
  267. button,
  268. .button,
  269. .block-button {
  270. margin-bottom: 0;
  271. }
  272. }
  273. }
  274. .closed-registrations-message {
  275. min-height: 330px;
  276. display: flex;
  277. flex-direction: column;
  278. justify-content: space-between;
  279. }
  280. }
  281. }
  282. .about-short {
  283. background: darken($ui-base-color, 4%);
  284. padding: 50px 0;
  285. font-family: 'mastodon-font-sans-serif', sans-serif;
  286. font-size: 16px;
  287. font-weight: 400;
  288. font-size: 16px;
  289. line-height: 30px;
  290. color: $ui-primary-color;
  291. a {
  292. color: $ui-highlight-color;
  293. text-decoration: underline;
  294. }
  295. }
  296. .information-board {
  297. background: darken($ui-base-color, 4%);
  298. padding: 20px 0;
  299. .container {
  300. position: relative;
  301. padding-right: 280px + 15px;
  302. }
  303. .information-board-sections {
  304. display: flex;
  305. justify-content: space-between;
  306. flex-wrap: wrap;
  307. }
  308. .section {
  309. flex: 1 0 0;
  310. font-family: 'mastodon-font-sans-serif', sans-serif;
  311. font-size: 16px;
  312. line-height: 28px;
  313. color: $primary-text-color;
  314. text-align: right;
  315. padding: 10px 15px;
  316. span,
  317. strong {
  318. display: block;
  319. }
  320. span {
  321. &:last-child {
  322. color: $ui-secondary-color;
  323. }
  324. }
  325. strong {
  326. font-weight: 500;
  327. font-size: 32px;
  328. line-height: 48px;
  329. }
  330. }
  331. .panel {
  332. position: absolute;
  333. width: 280px;
  334. box-sizing: border-box;
  335. background: darken($ui-base-color, 8%);
  336. padding: 20px;
  337. padding-top: 10px;
  338. border-radius: 4px 4px 0 0;
  339. right: 0;
  340. bottom: -40px;
  341. .panel-header {
  342. font-family: 'mastodon-font-display', sans-serif;
  343. font-size: 14px;
  344. line-height: 24px;
  345. font-weight: 500;
  346. color: $ui-primary-color;
  347. padding-bottom: 5px;
  348. margin-bottom: 15px;
  349. border-bottom: 1px solid lighten($ui-base-color, 4%);
  350. text-overflow: ellipsis;
  351. white-space: nowrap;
  352. overflow: hidden;
  353. a,
  354. span {
  355. font-weight: 400;
  356. color: darken($ui-primary-color, 10%);
  357. }
  358. a {
  359. text-decoration: none;
  360. }
  361. }
  362. }
  363. .owner {
  364. text-align: center;
  365. .avatar {
  366. width: 80px;
  367. height: 80px;
  368. margin: 0 auto;
  369. margin-bottom: 15px;
  370. img {
  371. display: block;
  372. width: 80px;
  373. height: 80px;
  374. border-radius: 48px;
  375. }
  376. }
  377. .name {
  378. font-size: 14px;
  379. a {
  380. display: block;
  381. color: $primary-text-color;
  382. text-decoration: none;
  383. &:hover {
  384. .display_name {
  385. text-decoration: underline;
  386. }
  387. }
  388. }
  389. .username {
  390. display: block;
  391. color: $ui-primary-color;
  392. }
  393. }
  394. }
  395. }
  396. .features {
  397. padding: 50px 0;
  398. .container {
  399. display: flex;
  400. }
  401. #mastodon-timeline {
  402. display: flex;
  403. -webkit-overflow-scrolling: touch;
  404. -ms-overflow-style: -ms-autohiding-scrollbar;
  405. font-family: 'mastodon-font-sans-serif', sans-serif;
  406. font-size: 13px;
  407. line-height: 18px;
  408. font-weight: 400;
  409. color: $primary-text-color;
  410. width: 330px;
  411. margin-right: 30px;
  412. flex: 0 0 auto;
  413. background: $ui-base-color;
  414. overflow: hidden;
  415. box-shadow: 0 0 6px rgba($black, 0.1);
  416. .column-header {
  417. color: inherit;
  418. font-family: inherit;
  419. font-size: 16px;
  420. line-height: inherit;
  421. font-weight: inherit;
  422. margin: 0;
  423. padding: 15px;
  424. }
  425. .column {
  426. padding: 0;
  427. border-radius: 4px;
  428. overflow: hidden;
  429. }
  430. .scrollable {
  431. height: 400px;
  432. }
  433. p {
  434. font-size: inherit;
  435. line-height: inherit;
  436. font-weight: inherit;
  437. color: $primary-text-color;
  438. margin-bottom: 20px;
  439. &:last-child {
  440. margin-bottom: 0;
  441. }
  442. a {
  443. color: $ui-secondary-color;
  444. text-decoration: none;
  445. }
  446. }
  447. }
  448. .about-mastodon {
  449. max-width: 675px;
  450. p {
  451. margin-bottom: 20px;
  452. }
  453. .features-list {
  454. margin-top: 20px;
  455. .features-list__row {
  456. display: flex;
  457. padding: 10px 0;
  458. justify-content: space-between;
  459. &:first-child {
  460. padding-top: 0;
  461. }
  462. .visual {
  463. flex: 0 0 auto;
  464. display: flex;
  465. align-items: center;
  466. margin-left: 15px;
  467. .fa {
  468. display: block;
  469. color: $ui-primary-color;
  470. font-size: 48px;
  471. }
  472. }
  473. .text {
  474. font-size: 16px;
  475. line-height: 30px;
  476. color: $ui-primary-color;
  477. h6 {
  478. font-size: inherit;
  479. line-height: inherit;
  480. margin-bottom: 0;
  481. }
  482. }
  483. }
  484. }
  485. }
  486. }
  487. .extended-description {
  488. padding: 50px 0;
  489. font-family: 'mastodon-font-sans-serif', sans-serif;
  490. font-size: 16px;
  491. font-weight: 400;
  492. font-size: 16px;
  493. line-height: 30px;
  494. color: $ui-primary-color;
  495. a {
  496. color: $ui-highlight-color;
  497. text-decoration: underline;
  498. }
  499. }
  500. .footer-links {
  501. padding-bottom: 50px;
  502. text-align: right;
  503. color: $ui-base-lighter-color;
  504. p {
  505. font-size: 14px;
  506. }
  507. a {
  508. color: inherit;
  509. text-decoration: underline;
  510. }
  511. }
  512. @media screen and (max-width: 840px) {
  513. .container {
  514. padding: 0 20px;
  515. }
  516. .information-board {
  517. .container {
  518. padding-right: 20px;
  519. }
  520. .section {
  521. text-align: center;
  522. }
  523. .panel {
  524. position: static;
  525. margin-top: 20px;
  526. width: 100%;
  527. border-radius: 4px;
  528. .panel-header {
  529. text-align: center;
  530. }
  531. }
  532. }
  533. .header-wrapper .mascot {
  534. left: 20px;
  535. }
  536. }
  537. @media screen and (max-width: 689px) {
  538. .header-wrapper .mascot {
  539. display: none;
  540. }
  541. }
  542. @media screen and (max-width: 675px) {
  543. .header-wrapper {
  544. padding-top: 0;
  545. &.compact .hero .heading {
  546. padding-bottom: 20px;
  547. text-align: initial;
  548. }
  549. }
  550. .header .container,
  551. .features .container {
  552. display: block;
  553. }
  554. .header {
  555. .links {
  556. padding-top: 15px;
  557. background: darken($ui-base-color, 4%);
  558. a {
  559. padding: 12px 8px;
  560. }
  561. .nav {
  562. display: flex;
  563. flex-flow: row wrap;
  564. justify-content: space-around;
  565. }
  566. .brand img {
  567. left: 0;
  568. top: 0;
  569. }
  570. }
  571. .hero {
  572. margin-top: 30px;
  573. padding: 0;
  574. .floats {
  575. display: none;
  576. }
  577. .heading {
  578. padding: 30px 20px;
  579. text-align: center;
  580. }
  581. .simple_form,
  582. .closed-registrations-message {
  583. background: darken($ui-base-color, 8%);
  584. width: 100%;
  585. border-radius: 0;
  586. box-sizing: border-box;
  587. }
  588. }
  589. }
  590. .features #mastodon-timeline {
  591. height: 70vh;
  592. width: 100%;
  593. margin-bottom: 50px;
  594. }
  595. }
  596. }
  597. @keyframes floating {
  598. from {
  599. transform: translate(0, 0);
  600. }
  601. 65% {
  602. transform: translate(0, 4px);
  603. }
  604. to {
  605. transform: translate(0, -0);
  606. }
  607. }