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.

885 lines
14 KiB

  1. $maximum-width: 1235px;
  2. $fluid-breakpoint: $maximum-width + 20px;
  3. $column-breakpoint: 700px;
  4. $small-breakpoint: 960px;
  5. .container {
  6. box-sizing: border-box;
  7. max-width: $maximum-width;
  8. margin: 0 auto;
  9. position: relative;
  10. @media screen and (max-width: $fluid-breakpoint) {
  11. width: 100%;
  12. padding: 0 10px;
  13. }
  14. }
  15. .rich-formatting {
  16. font-family: $font-sans-serif, sans-serif;
  17. font-size: 14px;
  18. font-weight: 400;
  19. line-height: 1.7;
  20. word-wrap: break-word;
  21. color: $darker-text-color;
  22. a {
  23. color: $highlight-text-color;
  24. text-decoration: underline;
  25. &:hover,
  26. &:focus,
  27. &:active {
  28. text-decoration: none;
  29. }
  30. }
  31. p,
  32. li {
  33. color: $darker-text-color;
  34. }
  35. p {
  36. margin-top: 0;
  37. margin-bottom: .85em;
  38. &:last-child {
  39. margin-bottom: 0;
  40. }
  41. }
  42. strong {
  43. font-weight: 700;
  44. color: $secondary-text-color;
  45. }
  46. em {
  47. font-style: italic;
  48. color: $secondary-text-color;
  49. }
  50. code {
  51. font-size: 0.85em;
  52. background: darken($ui-base-color, 8%);
  53. border-radius: 4px;
  54. padding: 0.2em 0.3em;
  55. }
  56. h1,
  57. h2,
  58. h3,
  59. h4,
  60. h5,
  61. h6 {
  62. font-family: $font-display, sans-serif;
  63. margin-top: 1.275em;
  64. margin-bottom: .85em;
  65. font-weight: 500;
  66. color: $secondary-text-color;
  67. }
  68. h1 {
  69. font-size: 2em;
  70. }
  71. h2 {
  72. font-size: 1.75em;
  73. }
  74. h3 {
  75. font-size: 1.5em;
  76. }
  77. h4 {
  78. font-size: 1.25em;
  79. }
  80. h5,
  81. h6 {
  82. font-size: 1em;
  83. }
  84. ul {
  85. list-style: disc;
  86. }
  87. ol {
  88. list-style: decimal;
  89. }
  90. ul,
  91. ol {
  92. margin: 0;
  93. padding: 0;
  94. padding-left: 2em;
  95. margin-bottom: 0.85em;
  96. &[type='a'] {
  97. list-style-type: lower-alpha;
  98. }
  99. &[type='i'] {
  100. list-style-type: lower-roman;
  101. }
  102. }
  103. hr {
  104. width: 100%;
  105. height: 0;
  106. border: 0;
  107. border-bottom: 1px solid lighten($ui-base-color, 4%);
  108. margin: 1.7em 0;
  109. &.spacer {
  110. height: 1px;
  111. border: 0;
  112. }
  113. }
  114. table {
  115. width: 100%;
  116. border-collapse: collapse;
  117. break-inside: auto;
  118. margin-top: 24px;
  119. margin-bottom: 32px;
  120. thead tr,
  121. tbody tr {
  122. border-bottom: 1px solid lighten($ui-base-color, 4%);
  123. font-size: 1em;
  124. line-height: 1.625;
  125. font-weight: 400;
  126. text-align: left;
  127. color: $darker-text-color;
  128. }
  129. thead tr {
  130. border-bottom-width: 2px;
  131. line-height: 1.5;
  132. font-weight: 500;
  133. color: $dark-text-color;
  134. }
  135. th,
  136. td {
  137. padding: 8px;
  138. align-self: start;
  139. align-items: start;
  140. word-break: break-all;
  141. &.nowrap {
  142. width: 25%;
  143. position: relative;
  144. &::before {
  145. content: ' ';
  146. visibility: hidden;
  147. }
  148. span {
  149. position: absolute;
  150. left: 8px;
  151. right: 8px;
  152. white-space: nowrap;
  153. overflow: hidden;
  154. text-overflow: ellipsis;
  155. }
  156. }
  157. }
  158. }
  159. & > :first-child {
  160. margin-top: 0;
  161. }
  162. }
  163. .information-board {
  164. background: darken($ui-base-color, 4%);
  165. padding: 20px 0;
  166. .container-alt {
  167. position: relative;
  168. padding-right: 280px + 15px;
  169. }
  170. &__sections {
  171. display: flex;
  172. justify-content: space-between;
  173. flex-wrap: wrap;
  174. }
  175. &__section {
  176. flex: 1 0 0;
  177. font-family: $font-sans-serif, sans-serif;
  178. font-size: 16px;
  179. line-height: 28px;
  180. color: $primary-text-color;
  181. text-align: right;
  182. padding: 10px 15px;
  183. span,
  184. strong {
  185. display: block;
  186. }
  187. span {
  188. &:last-child {
  189. color: $secondary-text-color;
  190. }
  191. }
  192. strong {
  193. font-family: $font-display, sans-serif;
  194. font-weight: 500;
  195. font-size: 32px;
  196. line-height: 48px;
  197. }
  198. @media screen and (max-width: $column-breakpoint) {
  199. text-align: center;
  200. }
  201. }
  202. .panel {
  203. position: absolute;
  204. width: 280px;
  205. box-sizing: border-box;
  206. background: darken($ui-base-color, 8%);
  207. padding: 20px;
  208. padding-top: 10px;
  209. border-radius: 4px 4px 0 0;
  210. right: 0;
  211. bottom: -40px;
  212. .panel-header {
  213. font-family: $font-display, sans-serif;
  214. font-size: 14px;
  215. line-height: 24px;
  216. font-weight: 500;
  217. color: $darker-text-color;
  218. padding-bottom: 5px;
  219. margin-bottom: 15px;
  220. border-bottom: 1px solid lighten($ui-base-color, 4%);
  221. text-overflow: ellipsis;
  222. white-space: nowrap;
  223. overflow: hidden;
  224. a,
  225. span {
  226. font-weight: 400;
  227. color: darken($darker-text-color, 10%);
  228. }
  229. a {
  230. text-decoration: none;
  231. }
  232. }
  233. }
  234. .owner {
  235. text-align: center;
  236. .avatar {
  237. width: 80px;
  238. height: 80px;
  239. margin: 0 auto;
  240. margin-bottom: 15px;
  241. img {
  242. display: block;
  243. width: 80px;
  244. height: 80px;
  245. border-radius: 48px;
  246. }
  247. }
  248. .name {
  249. font-size: 14px;
  250. a {
  251. display: block;
  252. color: $primary-text-color;
  253. text-decoration: none;
  254. &:hover {
  255. .display_name {
  256. text-decoration: underline;
  257. }
  258. }
  259. }
  260. .username {
  261. display: block;
  262. color: $darker-text-color;
  263. }
  264. }
  265. }
  266. }
  267. .landing-page {
  268. p,
  269. li {
  270. font-family: $font-sans-serif, sans-serif;
  271. font-size: 16px;
  272. font-weight: 400;
  273. font-size: 16px;
  274. line-height: 30px;
  275. margin-bottom: 12px;
  276. color: $darker-text-color;
  277. a {
  278. color: $highlight-text-color;
  279. text-decoration: underline;
  280. }
  281. }
  282. em {
  283. display: inline;
  284. margin: 0;
  285. padding: 0;
  286. font-weight: 700;
  287. background: transparent;
  288. font-family: inherit;
  289. font-size: inherit;
  290. line-height: inherit;
  291. color: lighten($darker-text-color, 10%);
  292. }
  293. h1 {
  294. font-family: $font-display, sans-serif;
  295. font-size: 26px;
  296. line-height: 30px;
  297. font-weight: 500;
  298. margin-bottom: 20px;
  299. color: $secondary-text-color;
  300. small {
  301. font-family: $font-sans-serif, sans-serif;
  302. display: block;
  303. font-size: 18px;
  304. font-weight: 400;
  305. color: lighten($darker-text-color, 10%);
  306. }
  307. }
  308. h2 {
  309. font-family: $font-display, sans-serif;
  310. font-size: 22px;
  311. line-height: 26px;
  312. font-weight: 500;
  313. margin-bottom: 20px;
  314. color: $secondary-text-color;
  315. }
  316. h3 {
  317. font-family: $font-display, sans-serif;
  318. font-size: 18px;
  319. line-height: 24px;
  320. font-weight: 500;
  321. margin-bottom: 20px;
  322. color: $secondary-text-color;
  323. }
  324. h4 {
  325. font-family: $font-display, sans-serif;
  326. font-size: 16px;
  327. line-height: 24px;
  328. font-weight: 500;
  329. margin-bottom: 20px;
  330. color: $secondary-text-color;
  331. }
  332. h5 {
  333. font-family: $font-display, sans-serif;
  334. font-size: 14px;
  335. line-height: 24px;
  336. font-weight: 500;
  337. margin-bottom: 20px;
  338. color: $secondary-text-color;
  339. }
  340. h6 {
  341. font-family: $font-display, sans-serif;
  342. font-size: 12px;
  343. line-height: 24px;
  344. font-weight: 500;
  345. margin-bottom: 20px;
  346. color: $secondary-text-color;
  347. }
  348. ul,
  349. ol {
  350. margin-left: 20px;
  351. &[type='a'] {
  352. list-style-type: lower-alpha;
  353. }
  354. &[type='i'] {
  355. list-style-type: lower-roman;
  356. }
  357. }
  358. ul {
  359. list-style: disc;
  360. }
  361. ol {
  362. list-style: decimal;
  363. }
  364. li > ol,
  365. li > ul {
  366. margin-top: 6px;
  367. }
  368. hr {
  369. width: 100%;
  370. height: 0;
  371. border: 0;
  372. border-bottom: 1px solid rgba($ui-base-lighter-color, .6);
  373. margin: 20px 0;
  374. &.spacer {
  375. height: 1px;
  376. border: 0;
  377. }
  378. }
  379. &__information,
  380. &__forms {
  381. padding: 20px;
  382. }
  383. &__call-to-action {
  384. background: $ui-base-color;
  385. border-radius: 4px;
  386. padding: 25px 40px;
  387. overflow: hidden;
  388. box-sizing: border-box;
  389. .row {
  390. width: 100%;
  391. display: flex;
  392. flex-direction: row-reverse;
  393. flex-wrap: nowrap;
  394. justify-content: space-between;
  395. align-items: center;
  396. }
  397. .row__information-board {
  398. display: flex;
  399. justify-content: flex-end;
  400. align-items: flex-end;
  401. .information-board__section {
  402. flex: 1 0 auto;
  403. padding: 0 10px;
  404. }
  405. @media screen and (max-width: $no-gap-breakpoint) {
  406. width: 100%;
  407. justify-content: space-between;
  408. }
  409. }
  410. .row__mascot {
  411. flex: 1;
  412. margin: 10px -50px 0 0;
  413. @media screen and (max-width: $no-gap-breakpoint) {
  414. display: none;
  415. }
  416. }
  417. }
  418. &__logo {
  419. margin-right: 20px;
  420. img {
  421. height: 50px;
  422. width: auto;
  423. mix-blend-mode: lighten;
  424. }
  425. }
  426. &__information {
  427. padding: 45px 40px;
  428. margin-bottom: 10px;
  429. &:last-child {
  430. margin-bottom: 0;
  431. }
  432. strong {
  433. font-weight: 500;
  434. color: lighten($darker-text-color, 10%);
  435. }
  436. .account {
  437. border-bottom: 0;
  438. padding: 0;
  439. &__display-name {
  440. align-items: center;
  441. display: flex;
  442. margin-right: 5px;
  443. }
  444. div.account__display-name {
  445. &:hover {
  446. .display-name strong {
  447. text-decoration: none;
  448. }
  449. }
  450. .account__avatar {
  451. cursor: default;
  452. }
  453. }
  454. &__avatar-wrapper {
  455. margin-left: 0;
  456. flex: 0 0 auto;
  457. }
  458. .display-name {
  459. font-size: 15px;
  460. &__account {
  461. font-size: 14px;
  462. }
  463. }
  464. }
  465. @media screen and (max-width: $small-breakpoint) {
  466. .contact {
  467. margin-top: 30px;
  468. }
  469. }
  470. @media screen and (max-width: $column-breakpoint) {
  471. padding: 25px 20px;
  472. }
  473. }
  474. &__information,
  475. &__forms,
  476. #mastodon-timeline {
  477. box-sizing: border-box;
  478. background: $ui-base-color;
  479. border-radius: 4px;
  480. box-shadow: 0 0 6px rgba($black, 0.1);
  481. }
  482. &__mascot {
  483. height: 104px;
  484. position: relative;
  485. left: -40px;
  486. bottom: 25px;
  487. img {
  488. height: 190px;
  489. width: auto;
  490. }
  491. }
  492. &__short-description {
  493. .row {
  494. display: flex;
  495. flex-wrap: wrap;
  496. align-items: center;
  497. margin-bottom: 40px;
  498. }
  499. @media screen and (max-width: $column-breakpoint) {
  500. .row {
  501. margin-bottom: 20px;
  502. }
  503. }
  504. p a {
  505. color: $secondary-text-color;
  506. }
  507. h1 {
  508. font-weight: 500;
  509. color: $primary-text-color;
  510. margin-bottom: 0;
  511. small {
  512. color: $darker-text-color;
  513. span {
  514. color: $secondary-text-color;
  515. }
  516. }
  517. }
  518. p:last-child {
  519. margin-bottom: 0;
  520. }
  521. }
  522. &__hero {
  523. margin-bottom: 10px;
  524. img {
  525. display: block;
  526. margin: 0;
  527. max-width: 100%;
  528. height: auto;
  529. border-radius: 4px;
  530. }
  531. }
  532. @media screen and (max-width: 840px) {
  533. .information-board {
  534. .container-alt {
  535. padding-right: 20px;
  536. }
  537. .panel {
  538. position: static;
  539. margin-top: 20px;
  540. width: 100%;
  541. border-radius: 4px;
  542. .panel-header {
  543. text-align: center;
  544. }
  545. }
  546. }
  547. }
  548. @media screen and (max-width: 675px) {
  549. .header-wrapper {
  550. padding-top: 0;
  551. &.compact {
  552. padding-bottom: 0;
  553. }
  554. &.compact .hero .heading {
  555. text-align: initial;
  556. }
  557. }
  558. .header .container-alt,
  559. .features .container-alt {
  560. display: block;
  561. }
  562. }
  563. .cta {
  564. margin: 20px;
  565. }
  566. }
  567. .landing {
  568. margin-bottom: 100px;
  569. @media screen and (max-width: 738px) {
  570. margin-bottom: 0;
  571. }
  572. &__brand {
  573. display: flex;
  574. justify-content: center;
  575. align-items: center;
  576. padding: 50px;
  577. svg {
  578. fill: $primary-text-color;
  579. height: 52px;
  580. }
  581. @media screen and (max-width: $no-gap-breakpoint) {
  582. padding: 0;
  583. margin-bottom: 30px;
  584. }
  585. }
  586. .directory {
  587. margin-top: 30px;
  588. background: transparent;
  589. box-shadow: none;
  590. border-radius: 0;
  591. }
  592. .hero-widget {
  593. margin-top: 30px;
  594. margin-bottom: 0;
  595. h4 {
  596. padding: 10px;
  597. text-transform: uppercase;
  598. font-weight: 700;
  599. font-size: 13px;
  600. color: $darker-text-color;
  601. }
  602. &__text {
  603. border-radius: 0;
  604. padding-bottom: 0;
  605. }
  606. &__footer {
  607. background: $ui-base-color;
  608. padding: 10px;
  609. border-radius: 0 0 4px 4px;
  610. display: flex;
  611. &__column {
  612. flex: 1 1 50%;
  613. }
  614. }
  615. .account {
  616. padding: 10px 0;
  617. border-bottom: 0;
  618. .account__display-name {
  619. display: flex;
  620. align-items: center;
  621. }
  622. }
  623. &__counters__wrapper {
  624. display: flex;
  625. }
  626. &__counter {
  627. padding: 10px;
  628. width: 50%;
  629. strong {
  630. font-family: $font-display, sans-serif;
  631. font-size: 15px;
  632. font-weight: 700;
  633. display: block;
  634. }
  635. span {
  636. font-size: 14px;
  637. color: $darker-text-color;
  638. }
  639. }
  640. }
  641. .simple_form .user_agreement .label_input > label {
  642. font-weight: 400;
  643. color: $darker-text-color;
  644. }
  645. .simple_form p.lead {
  646. color: $darker-text-color;
  647. font-size: 15px;
  648. line-height: 20px;
  649. font-weight: 400;
  650. margin-bottom: 25px;
  651. }
  652. &__grid {
  653. max-width: 960px;
  654. margin: 0 auto;
  655. display: grid;
  656. grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  657. grid-gap: 30px;
  658. @media screen and (max-width: 738px) {
  659. grid-template-columns: minmax(0, 100%);
  660. grid-gap: 10px;
  661. &__column-login {
  662. grid-row: 1;
  663. display: flex;
  664. flex-direction: column;
  665. .box-widget {
  666. order: 2;
  667. flex: 0 0 auto;
  668. }
  669. .hero-widget {
  670. margin-top: 0;
  671. margin-bottom: 10px;
  672. order: 1;
  673. flex: 0 0 auto;
  674. }
  675. }
  676. &__column-registration {
  677. grid-row: 2;
  678. }
  679. .directory {
  680. margin-top: 10px;
  681. }
  682. }
  683. @media screen and (max-width: $no-gap-breakpoint) {
  684. grid-gap: 0;
  685. .hero-widget {
  686. display: block;
  687. margin-bottom: 0;
  688. box-shadow: none;
  689. &__img,
  690. &__img img,
  691. &__footer {
  692. border-radius: 0;
  693. }
  694. }
  695. .hero-widget,
  696. .box-widget,
  697. .directory__tag {
  698. border-bottom: 1px solid lighten($ui-base-color, 8%);
  699. }
  700. .directory {
  701. margin-top: 0;
  702. &__tag {
  703. margin-bottom: 0;
  704. & > a,
  705. & > div {
  706. border-radius: 0;
  707. box-shadow: none;
  708. }
  709. &:last-child {
  710. border-bottom: 0;
  711. }
  712. }
  713. }
  714. }
  715. }
  716. }
  717. .brand {
  718. position: relative;
  719. text-decoration: none;
  720. }
  721. .brand__tagline {
  722. display: block;
  723. position: absolute;
  724. bottom: -10px;
  725. left: 50px;
  726. width: 300px;
  727. color: $ui-primary-color;
  728. text-decoration: none;
  729. font-size: 14px;
  730. @media screen and (max-width: $no-gap-breakpoint) {
  731. position: static;
  732. width: auto;
  733. margin-top: 20px;
  734. color: $dark-text-color;
  735. }
  736. }