style.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880
  1. $white: #fff ; // color5
  2. $lightest: #d9e1e8; // color2
  3. $lighter: #9baec8; // color3
  4. $darkest: #1F232B; // color1
  5. $black: #000 ; // color8
  6. $darker: lighten($darkest, 34%);
  7. $vibrant: #6364ff; // color4
  8. $error: #df405a; // color6
  9. $success: #79bd9a; // color7
  10. $transition-in: 100ms linear;
  11. $transition-out: 250ms linear;
  12. $content-width: 800px;
  13. /* roboto-regular - latin */
  14. @font-face {
  15. font-family: 'Roboto';
  16. font-style: normal;
  17. font-weight: 400;
  18. src: url('./webfonts/roboto-v29-latin-regular.eot'); /* IE9 Compat Modes */
  19. src: local(''),
  20. url('./webfonts/roboto-v29-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  21. url('./webfonts/roboto-v29-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
  22. url('./webfonts/roboto-v29-latin-regular.woff') format('woff'), /* Modern Browsers */
  23. url('./webfonts/roboto-v29-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
  24. url('./webfonts/roboto-v29-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
  25. }
  26. /* roboto-italic - latin */
  27. @font-face {
  28. font-family: 'Roboto';
  29. font-style: italic;
  30. font-weight: 400;
  31. src: url('./webfonts/roboto-v29-latin-italic.eot'); /* IE9 Compat Modes */
  32. src: local(''),
  33. url('./webfonts/roboto-v29-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  34. url('./webfonts/roboto-v29-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
  35. url('./webfonts/roboto-v29-latin-italic.woff') format('woff'), /* Modern Browsers */
  36. url('./webfonts/roboto-v29-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
  37. url('./webfonts/roboto-v29-latin-italic.svg#Roboto') format('svg'); /* Legacy iOS */
  38. }
  39. /* roboto-500 - latin */
  40. @font-face {
  41. font-family: 'Roboto';
  42. font-style: normal;
  43. font-weight: 500;
  44. src: url('./webfonts/roboto-v29-latin-500.eot'); /* IE9 Compat Modes */
  45. src: local(''),
  46. url('./webfonts/roboto-v29-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  47. url('./webfonts/roboto-v29-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
  48. url('./webfonts/roboto-v29-latin-500.woff') format('woff'), /* Modern Browsers */
  49. url('./webfonts/roboto-v29-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
  50. url('./webfonts/roboto-v29-latin-500.svg#Roboto') format('svg'); /* Legacy iOS */
  51. }
  52. /* roboto-700 - latin */
  53. @font-face {
  54. font-family: 'Roboto';
  55. font-style: normal;
  56. font-weight: 700;
  57. src: url('./webfonts/roboto-v29-latin-700.eot'); /* IE9 Compat Modes */
  58. src: local(''),
  59. url('./webfonts/roboto-v29-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  60. url('./webfonts/roboto-v29-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
  61. url('./webfonts/roboto-v29-latin-700.woff') format('woff'), /* Modern Browsers */
  62. url('./webfonts/roboto-v29-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
  63. url('./webfonts/roboto-v29-latin-700.svg#Roboto') format('svg'); /* Legacy iOS */
  64. }
  65. /* http://meyerweb.com/eric/tools/css/reset/
  66. v2.0 | 20110126
  67. License: none (public domain)
  68. */
  69. html, body, div, span, applet, object, iframe,
  70. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  71. a, abbr, acronym, address, big, cite, code,
  72. del, dfn, em, img, ins, kbd, q, s, samp,
  73. small, strike, strong, sub, sup, tt, var,
  74. b, u, i, center,
  75. dl, dt, dd, ol, ul, li,
  76. fieldset, form, label, legend,
  77. table, caption, tbody, tfoot, thead, tr, th, td,
  78. article, aside, canvas, details, embed,
  79. figure, figcaption, footer, header, hgroup,
  80. menu, nav, output, ruby, section, summary,
  81. time, mark, audio, video {
  82. margin: 0;
  83. padding: 0;
  84. border: 0;
  85. font: inherit;
  86. vertical-align: baseline;
  87. }
  88. /* HTML5 display-role reset for older browsers */
  89. article, aside, details, figcaption, figure,
  90. footer, header, hgroup, menu, nav, section {
  91. display: block;
  92. }
  93. body {
  94. line-height: 1;
  95. box-sizing: border-box;
  96. text-rendering: optimizelegibility;
  97. font-feature-settings: "kern";
  98. text-size-adjust: none;
  99. }
  100. ol, ul {
  101. list-style: none;
  102. }
  103. blockquote, q {
  104. quotes: none;
  105. }
  106. blockquote:before, blockquote:after,
  107. q:before, q:after {
  108. content: '';
  109. content: none;
  110. }
  111. table {
  112. border-collapse: collapse;
  113. border-spacing: 0;
  114. }
  115. a {
  116. outline: 0;
  117. }
  118. body {
  119. box-sizing: border-box;
  120. font-family: 'Roboto', sans-serif;
  121. text-rendering: optimizeLegibility;
  122. background-color: $darkest;
  123. color: $lighter;
  124. font-size: 13px;
  125. line-height: 18px;
  126. font-weight: 400;
  127. }
  128. .container {
  129. max-width: $content-width;
  130. margin: 0 auto;
  131. @media screen and (max-width: 600px) {
  132. padding: 0 20px;
  133. }
  134. }
  135. .navbar {
  136. padding-top: 15px;
  137. margin-bottom: 90px;
  138. display: flex;
  139. justify-content: space-between;
  140. @media screen and (max-width: 600px) {
  141. flex-wrap: wrap;
  142. justify-content: center;
  143. margin-bottom: 15px;
  144. }
  145. ul {
  146. list-style: none;
  147. li {
  148. display: inline-block;
  149. vertical-align: bottom;
  150. }
  151. a {
  152. display: flex;
  153. justify-content: center;
  154. align-items: center;
  155. color: $lighter;
  156. text-decoration: none;
  157. padding: 12px 14px;
  158. line-height: 32px;
  159. transition: color $transition-out;
  160. font-weight: 600;
  161. font-size: 14px;
  162. &.active, &:hover {
  163. color: $lightest;
  164. transition: color $transition-in;
  165. }
  166. &.brand {
  167. color: $white;
  168. img {
  169. width: auto;
  170. height: 32px;
  171. opacity: 1;
  172. position: relative;
  173. mix-blend-mode: normal;
  174. top: 4px;
  175. left: -10px;
  176. }
  177. &:hover {
  178. border-bottom-color: transparent;
  179. img {
  180. opacity: 1;
  181. }
  182. }
  183. }
  184. }
  185. li:first-child a {
  186. padding-left: 0;
  187. }
  188. li:last-child a {
  189. padding-right: 0;
  190. }
  191. }
  192. }
  193. .brand {
  194. display: inline-block;
  195. position: relative;
  196. z-index: 2;
  197. &::before {
  198. content: "";
  199. display: block;
  200. background: url('elephant.svg');
  201. position: absolute;
  202. width: 393px;
  203. height: 176px;
  204. z-index: -1;
  205. top: -21px;
  206. left: -28px;
  207. pointer-events: none;
  208. @media screen and (max-width: 600px) {
  209. display: none;
  210. }
  211. }
  212. &:hover {
  213. &::before {
  214. top: -20px;
  215. }
  216. }
  217. }
  218. .intro {
  219. text-align: center;
  220. padding: 20px 0 90px;
  221. img {
  222. display: block;
  223. max-width: 140px;
  224. height: auto;
  225. margin: 0 auto 30px;
  226. }
  227. h1 {
  228. font-size: 42px;
  229. font-weight: 500;
  230. color: $lightest;
  231. line-height: 1;
  232. }
  233. @media screen and (max-width: 600px) {
  234. padding: 0 0 40px;
  235. h1 {
  236. font-size: 28px;
  237. }
  238. }
  239. }
  240. .thumbnail-grid {
  241. display: flex;
  242. flex-wrap: wrap;
  243. margin: 0 -15px;
  244. li {
  245. box-sizing: border-box;
  246. width: 50%;
  247. flex: 0 0 auto;
  248. padding: 0 15px;
  249. margin-bottom: 30px;
  250. @media screen and (max-width: 600px) {
  251. width: 100%;
  252. }
  253. .cover {
  254. display: flex;
  255. background: lighten($darkest, 4%);
  256. border-radius: 4px 4px 0 0;
  257. width: 100%;
  258. height: auto;
  259. min-height: 220px;
  260. text-decoration: none;
  261. font-weight: 600;
  262. background-size: cover;
  263. justify-content: center;
  264. @media screen and (max-width: 600px) {
  265. min-height: 125px;
  266. }
  267. }
  268. .overlay {
  269. align-self: center;
  270. }
  271. h2 {
  272. color: #fff;
  273. text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
  274. text-align: center;
  275. font-size: 26px;
  276. line-height: 1.58;
  277. padding: 20px;
  278. }
  279. .article-information {
  280. padding: 20px;
  281. background: lighten($darkest, 8%);
  282. border-radius: 0 0 4px 4px;
  283. font-size: 16px;
  284. letter-spacing: -.003em;
  285. line-height: 1.58;
  286. .author {
  287. float: left;
  288. strong {
  289. font-weight: 600;
  290. color: $darker;
  291. }
  292. a {
  293. text-decoration: none;
  294. color: inherit;
  295. i {
  296. font-weight: initial;
  297. }
  298. }
  299. }
  300. time {
  301. float: right;
  302. color: $darker;
  303. }
  304. .summary {
  305. margin-top: 46px;
  306. clear: both;
  307. height: 80px;
  308. overflow: hidden;
  309. text-overflow: ellipsis;
  310. a {
  311. color: lighten($vibrant, 18%);
  312. }
  313. }
  314. }
  315. }
  316. }
  317. .related-articles {
  318. margin-top: 30px;
  319. }
  320. .article {
  321. main {
  322. max-width: 600px;
  323. margin: 0 auto;
  324. }
  325. h1 {
  326. font-size: 36px;
  327. line-height: 1.08;
  328. font-weight: 600;
  329. color: $lightest;
  330. padding-top: 35px;
  331. margin-left: -2.63px;
  332. text-align: center;
  333. position: relative;
  334. &::before {
  335. display: block;
  336. content: "";
  337. border-top: 2px solid $vibrant;
  338. width: 100px;
  339. height: 0;
  340. position: absolute;
  341. left: 50%;
  342. top: 0;
  343. transform: translateX(-50%);
  344. }
  345. }
  346. h2 {
  347. font-size: 21px;
  348. line-height: 1.22;
  349. font-weight: 500;
  350. color: $lighter;
  351. margin-top: 25px;
  352. margin-left: -1.75px;
  353. text-align: center;
  354. }
  355. h3 {
  356. font-size: 26px;
  357. margin-left: -1.63px;
  358. line-height: 1.22;
  359. text-align: center;
  360. margin-top: 50px;
  361. margin-bottom: 30px;
  362. font-weight: 600;
  363. color: $lightest;
  364. }
  365. blockquote {
  366. color: $lightest;
  367. font-size: 16px;
  368. line-height: 28px;
  369. font-style: italic;
  370. border-left: 3px solid $vibrant;
  371. padding-left: 20px;
  372. margin-left: -23px;
  373. padding-bottom: 2px;
  374. margin-bottom: 26px;
  375. p:last-child {
  376. margin-bottom: 0;
  377. }
  378. }
  379. p {
  380. color: $lightest;
  381. font-size: 16px;
  382. line-height: 28px;
  383. font-weight: normal;
  384. margin-bottom: 26px;
  385. hyphens: auto;
  386. }
  387. a {
  388. color: lighten($vibrant, 18%);
  389. }
  390. img {
  391. display: block;
  392. margin: 0 auto;
  393. max-width: 100%;
  394. height: auto;
  395. border-radius: 4px;
  396. box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.35);
  397. }
  398. .image-large {
  399. margin-bottom: 50px;
  400. }
  401. .image-pull-left {
  402. float: left;
  403. }
  404. em {
  405. font-style: italic;
  406. }
  407. strong {
  408. font-weight: 600;
  409. color: #fff;
  410. }
  411. ul {
  412. counter-reset: post;
  413. margin-bottom: 26px;
  414. }
  415. ul li {
  416. margin-left: 30px;
  417. margin-bottom: 14px;
  418. color: $lightest;
  419. font-size: 16px;
  420. line-height: 28px;
  421. &::before {
  422. position: absolute;
  423. display: inline-block;
  424. -webkit-box-sizing: border-box;
  425. box-sizing: border-box;
  426. width: 78px;
  427. margin-left: -78px;
  428. text-align: right;
  429. padding-top: 4px;
  430. padding-right: 15px;
  431. content: '\2022';
  432. }
  433. }
  434. figure {
  435. figcaption {
  436. margin-top: 8px;
  437. text-align: center;
  438. &,
  439. p {
  440. color: $darker;
  441. }
  442. }
  443. }
  444. hr {
  445. background: transparent;
  446. border: 0;
  447. border-top: 1px solid $darker;
  448. margin: 26px 0;
  449. }
  450. pre {
  451. margin-bottom: 26px;
  452. font-size: 16px;
  453. line-height: 28px;
  454. background-color: lighten($darkest, 8%);
  455. border-radius: 4px;
  456. padding: 16px;
  457. overflow: auto;
  458. }
  459. code {
  460. padding: 0.2em 0.4em;
  461. margin: 0;
  462. font-size: 85%;
  463. font-family: 'Roboto Mono', monospace;
  464. background-color: lighten($darkest, 8%);
  465. border-radius: 3px;
  466. }
  467. pre code {
  468. background: transparent;
  469. padding: 0;
  470. }
  471. &-header {
  472. padding: 50px 0;
  473. .image-large {
  474. margin-top: 50px;
  475. margin-bottom: 0;
  476. }
  477. }
  478. .mastodon-embed {
  479. width: 100%;
  480. display: block;
  481. margin: 0 auto;
  482. margin-bottom: 26px;
  483. border-radius: 4px;
  484. box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.35);
  485. }
  486. }
  487. .footer {
  488. padding-bottom: 30px;
  489. .legal {
  490. margin-top: 30px;
  491. a {
  492. color: $darker;
  493. text-decoration: none;
  494. }
  495. }
  496. }
  497. .entry-nav {
  498. display: flex;
  499. margin: 0 -15px;
  500. margin-bottom: 30px;
  501. a {
  502. color: lighten($vibrant, 18%);
  503. display: block;
  504. border: 1px solid lighten($darkest, 8%);
  505. padding: 10px 14px;
  506. border-radius: 4px;
  507. font-weight: 500;
  508. text-decoration: none;
  509. font-size: 12px;
  510. strong {
  511. display: block;
  512. font-size: 16px;
  513. margin-bottom: 6px;
  514. }
  515. }
  516. .prev-entry,
  517. .next-entry {
  518. box-sizing: border-box;
  519. width: 50%;
  520. flex: 0 0 auto;
  521. padding: 0 15px;
  522. }
  523. .next-entry {
  524. text-align: right;
  525. }
  526. }
  527. .pagination {
  528. display: -ms-flexbox;
  529. display: flex;
  530. justify-content: center;
  531. margin: 0 0 30px;
  532. li {
  533. flex: 0 0 auto;
  534. padding: 0 15px;
  535. @media screen and (max-width: 600px) {
  536. padding: 0 5px;
  537. }
  538. }
  539. a {
  540. color: lighten($vibrant, 18%);
  541. display: inline-block;
  542. border: 1px solid lighten($darkest, 8%);
  543. padding: 10px 14px;
  544. border-radius: 4px;
  545. font-weight: 500;
  546. text-decoration: none;
  547. }
  548. .disabled a {
  549. color: $darker;
  550. }
  551. .active a {
  552. border-color: lighten($vibrant, 18%);
  553. }
  554. }
  555. .cta-banner {
  556. background: $vibrant;
  557. border-radius: 4px;
  558. text-align: center;
  559. padding: 40px;
  560. h4 {
  561. font-size: 24px;
  562. line-height: 1.08;
  563. font-weight: 600;
  564. margin-bottom: 20px;
  565. color: #fff;
  566. }
  567. p {
  568. color: #fff;
  569. font-size: 18px;
  570. line-height: 1.22;
  571. margin-bottom: 20px;
  572. }
  573. & > a {
  574. font-weight: 500;
  575. color: $vibrant;
  576. background: #fff;
  577. border-radius: 4px;
  578. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  579. font-family: inherit;
  580. display: inline-block;
  581. text-align: center;
  582. font-size: 16px;
  583. text-decoration: none;
  584. line-height: 36px;
  585. padding: 4px 16px;
  586. margin: 0 auto;
  587. border: 0;
  588. cursor: pointer;
  589. &.secondary {
  590. padding: 2px 14px;
  591. border: 2px solid #fff;
  592. background: transparent;
  593. margin-left: 4px;
  594. color: #fff;
  595. }
  596. @media screen and (max-width: 375px) {
  597. margin-bottom: 10px;
  598. }
  599. }
  600. }
  601. .panel {
  602. display: block;
  603. border-radius: 4px;
  604. text-decoration: none;
  605. background-size: 60%;
  606. background-color: #000;
  607. background-size: 60%;
  608. background-repeat: no-repeat;
  609. background-position: top right;
  610. text-align: left;
  611. .overlay {
  612. padding: 20px;
  613. }
  614. h5 {
  615. padding-top: 111px;
  616. font-size: 26px;
  617. font-weight: 600;
  618. line-height: 1.58;
  619. color: #fff;
  620. }
  621. p {
  622. color: #fff;
  623. font-size: 16px;
  624. }
  625. }
  626. .listmonk-form {
  627. border: 1px solid lighten($darkest, 8%);
  628. border-radius: 4px;
  629. text-align: center;
  630. padding: 40px;
  631. margin-bottom: 26px;
  632. h3 {
  633. margin-top: 0;
  634. color: #fff;
  635. }
  636. p {
  637. color: #fff;
  638. }
  639. .input-with-button {
  640. position: relative;
  641. input[type=email] {
  642. box-sizing: border-box;
  643. font-size: 16px;
  644. color: $white;
  645. display: block;
  646. width: 100%;
  647. outline: 0;
  648. font-family: inherit;
  649. resize: vertical;
  650. background: darken($darkest, 10%);
  651. border: 1px solid lighten($darkest, 8%);
  652. border-radius: 4px;
  653. padding: 17px 15px;
  654. padding-right: 120px;
  655. &::placeholder {
  656. color: lighten(lighten($darkest, 30%), 4%);
  657. }
  658. &:invalid {
  659. box-shadow: none;
  660. }
  661. &:focus:invalid:not(:placeholder-shown),
  662. &:required:invalid:not(:placeholder-shown) {
  663. border-color: lighten($error, 12%);
  664. }
  665. &:required:valid {
  666. border-color: $success;
  667. }
  668. &:hover {
  669. border-color: lighten($darkest, 20%);
  670. }
  671. &:active,
  672. &:focus {
  673. border-color: $vibrant;
  674. background: darken($darkest, 8%);
  675. }
  676. }
  677. button {
  678. position: absolute;
  679. top: 5px;
  680. right: 6px;
  681. display: inline-block;
  682. border: 0;
  683. border-radius: 4px;
  684. font-size: 16px;
  685. font-family: inherit;
  686. line-height: 36px;
  687. padding: 4px 16px;
  688. font-weight: 500;
  689. background: darken($success, 8%);
  690. color: $white;
  691. text-decoration: none;
  692. text-align: center;
  693. box-sizing: border-box;
  694. cursor: pointer;
  695. outline: 0;
  696. &:last-child {
  697. margin-right: 0;
  698. }
  699. &:hover {
  700. background-color: $success;
  701. }
  702. &:active,
  703. &:focus {
  704. background-color: darken($success, 5%);
  705. }
  706. &:disabled:hover {
  707. background-color: $lighter;
  708. }
  709. }
  710. }
  711. footer {
  712. margin-top: 26px;
  713. a {
  714. color: inherit;
  715. &:hover,
  716. &:focus,
  717. &:active {
  718. text-decoration: none;
  719. }
  720. }
  721. }
  722. }
  723. .app-download-links {
  724. display: flex;
  725. justify-content: center;
  726. align-items: center;
  727. margin-bottom: 26px;
  728. a {
  729. display: block;
  730. img {
  731. display: block;
  732. margin: 0;
  733. box-shadow: none;
  734. height: 70px;
  735. width: auto;
  736. }
  737. &.app-download-links__app-store {
  738. img {
  739. height: 50px;
  740. }
  741. }
  742. }
  743. }
  744. .icon {
  745. height: 1em;
  746. width: auto;
  747. vertical-align: middle;
  748. }