website-redesign.less 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908
  1. .website-redesign {
  2. // hero section of features, enterprises, and universities will have an image that will overflow the page
  3. overflow-x: hidden;
  4. p,
  5. h1,
  6. h2,
  7. h3,
  8. h4,
  9. a,
  10. strong,
  11. span {
  12. font-family: 'Noto Sans', sans-serif;
  13. }
  14. h1 {
  15. font-size: 3rem;
  16. font-weight: 600;
  17. line-height: 4rem;
  18. }
  19. h2 {
  20. font-weight: 600;
  21. font-size: 2.25rem;
  22. line-height: 1.333;
  23. margin-top: 0;
  24. @media (max-width: @screen-sm-max) {
  25. font-size: 1.875rem;
  26. }
  27. }
  28. h3 {
  29. font-weight: 600;
  30. }
  31. h1,
  32. h2,
  33. h3 {
  34. > span.mono-text {
  35. display: block;
  36. margin-bottom: @margin-xs;
  37. }
  38. }
  39. // override .btn default style
  40. .btn {
  41. font-weight: 600;
  42. }
  43. .img-rounded {
  44. // TODO: design specifies 'border-radius-large' which is 5px, but uses 16px
  45. border-radius: 16px;
  46. }
  47. .plans-cards {
  48. @media (min-width: @screen-md-min) {
  49. display: flex; /* equal heights */
  50. flex-wrap: wrap;
  51. }
  52. .plans-card-container {
  53. min-height: 348px;
  54. @media (max-width: @screen-sm-max) {
  55. margin-bottom: 16px;
  56. min-height: unset;
  57. }
  58. }
  59. .plans-card {
  60. border-radius: 8px;
  61. padding: 0;
  62. height: 100%;
  63. .plans-card-inner {
  64. padding: 36px;
  65. height: 100%;
  66. display: flex;
  67. flex-direction: column;
  68. font-size: 16px;
  69. .plans-card-inner-title {
  70. font-size: 20px;
  71. font-weight: 600;
  72. margin-top: 0;
  73. }
  74. ul {
  75. list-style-type: none;
  76. padding: 0;
  77. margin: 0;
  78. li {
  79. margin-bottom: 8px;
  80. }
  81. }
  82. .plans-card-inner-footer {
  83. margin-top: auto;
  84. display: flex;
  85. flex-direction: column;
  86. gap: 12px;
  87. @media (max-width: @screen-sm-max) {
  88. margin-top: 16px;
  89. }
  90. }
  91. }
  92. &.grey-border {
  93. border: 2px solid var(--neutral-20);
  94. }
  95. &.blue-border {
  96. border: solid 2px var(--sapphire-blue);
  97. border-radius: 8px;
  98. .plans-card-inner-title {
  99. color: var(--sapphire-blue);
  100. }
  101. }
  102. }
  103. }
  104. .plans-bottom-text {
  105. font-size: 1.125rem;
  106. }
  107. .info-cards {
  108. @media (min-width: @screen-md-min) {
  109. display: flex; /* equal heights */
  110. flex-wrap: wrap;
  111. }
  112. .info-card-container {
  113. margin-bottom: 16px;
  114. .info-card {
  115. border-radius: 8px;
  116. height: 100%;
  117. box-shadow: 0px 2px 4px 0px #1e253014, 0px 4px 12px 0px #1e25301f;
  118. border-top: 8px solid var(--sapphire-blue);
  119. padding: 32px 40px 32px 40px;
  120. &.info-card-big-text {
  121. h3 {
  122. font-size: 1.5rem;
  123. line-height: 1.333;
  124. }
  125. p {
  126. font-size: 1.125rem;
  127. line-height: 1.333;
  128. }
  129. }
  130. i.material-symbols {
  131. color: var(--sapphire-blue);
  132. }
  133. }
  134. }
  135. }
  136. .security-heading-section {
  137. @media (max-width: @screen-sm-max) {
  138. p {
  139. text-align: left;
  140. }
  141. h2 {
  142. width: 100%;
  143. text-align: left;
  144. }
  145. }
  146. .heading-and-stickers-container {
  147. display: flex;
  148. justify-content: center;
  149. .lock-sticker {
  150. width: 70px;
  151. position: absolute;
  152. top: -95px;
  153. right: -50px;
  154. @media (max-width: @screen-lg) {
  155. right: -105px;
  156. }
  157. @media (max-width: @screen-sm-max) {
  158. display: none;
  159. }
  160. }
  161. .arrow-sticker {
  162. width: 140px;
  163. position: absolute;
  164. top: -50px;
  165. right: -15px;
  166. @media (max-width: @screen-lg) {
  167. right: -70px;
  168. }
  169. @media (max-width: @screen-sm-max) {
  170. display: none;
  171. }
  172. }
  173. }
  174. }
  175. .features-card {
  176. display: flex; /* equal heights */
  177. flex-wrap: wrap;
  178. align-items: center;
  179. .features-card-media,
  180. .features-card-media-right {
  181. padding-top: 24px;
  182. img.img-responsive {
  183. width: 100%;
  184. }
  185. video {
  186. box-shadow: 0px 4px 6px 0px rgba(30, 37, 48, 0.12),
  187. 0px 8px 16px 0px rgba(30, 37, 48, 0.12);
  188. max-height: 100%;
  189. width: auto;
  190. width: 100%;
  191. }
  192. @media (max-width: @screen-sm-max) {
  193. margin-bottom: 50px;
  194. }
  195. }
  196. @media (min-width: @screen-md-min) {
  197. .features-card-media-right {
  198. padding-left: 64px;
  199. }
  200. .features-card-media {
  201. padding-right: 64px;
  202. }
  203. }
  204. .features-card-description,
  205. .features-card-description-list {
  206. padding-top: 16px;
  207. p {
  208. margin-bottom: 16px;
  209. font-size: 1.125rem;
  210. line-height: 1.333;
  211. @media (max-width: @screen-sm-max) {
  212. font-size: 1rem;
  213. line-height: 1.375;
  214. }
  215. }
  216. a.green-link {
  217. margin-top: 4px;
  218. display: block;
  219. }
  220. ul {
  221. list-style-type: none;
  222. padding: 0;
  223. margin: 0;
  224. li {
  225. margin-bottom: 12px;
  226. font-size: 1.125rem;
  227. line-height: 1.333;
  228. // flex is needed in the case of "premium" label being on the same line
  229. display: flex;
  230. @media (max-width: @screen-sm-max) {
  231. font-size: 1rem;
  232. line-height: 1.375;
  233. // only for label-premium that appears directly as a child of li
  234. > .label-premium {
  235. margin-left: auto;
  236. align-self: center;
  237. }
  238. }
  239. h4 {
  240. margin-top: 0;
  241. margin-bottom: 8px;
  242. font-size: 20px;
  243. font-weight: 600;
  244. }
  245. p {
  246. margin-bottom: 0;
  247. }
  248. }
  249. }
  250. }
  251. .features-card-description {
  252. h3 {
  253. font-size: 1.5rem;
  254. line-height: 1.4;
  255. margin-bottom: 8px;
  256. }
  257. }
  258. .features-card-description-list {
  259. h3 {
  260. font-size: 1.875rem;
  261. line-height: 1.5;
  262. }
  263. }
  264. }
  265. .features-card-hero {
  266. display: flex; /* equal heights */
  267. flex-wrap: wrap;
  268. align-items: center;
  269. position: relative;
  270. height: 655px;
  271. padding-top: @line-height-computed * 2;
  272. @media (max-width: @screen-sm-max) {
  273. height: unset;
  274. padding-top: 0;
  275. }
  276. .features-card-description {
  277. display: flex;
  278. flex-direction: column;
  279. justify-content: center;
  280. h1 {
  281. @media (max-width: @screen-sm-max) {
  282. font-size: 2.25rem;
  283. line-height: 1.333;
  284. }
  285. &.features-card-hero-smaller-title {
  286. @media (min-width: @screen-lg-min) {
  287. // 3rem is the default, this is a workaround for big screen
  288. // since 6-width column on md screen size will wrap the text in three lines
  289. font-size: 2.8rem;
  290. }
  291. }
  292. }
  293. p {
  294. font-size: 1.25rem;
  295. width: 90%;
  296. @media (max-width: @screen-sm-max) {
  297. font-size: 1.125rem;
  298. line-height: 1.33;
  299. width: unset;
  300. }
  301. }
  302. }
  303. .features-card-image {
  304. position: absolute;
  305. // on wide screen, image will be fixed without any variable width translation
  306. transform: translateX(600px);
  307. top: 100px;
  308. width: 720px;
  309. height: auto;
  310. padding: 0;
  311. // starting from 1500px, image will have a variable translation that depends on screen width
  312. // this will make image "fixed" on a specific point on the screen
  313. @media (max-width: 1500px) {
  314. transform: translateX(calc(50vw - 121px));
  315. }
  316. @media (max-width: 1400px) {
  317. width: 650px;
  318. transform: translateX(calc(50vw - 52px));
  319. }
  320. // bootstrap layout changes on 1200px (@screen-lg), add a specific
  321. // case for this exact width
  322. @media (min-width: 1200px) and (max-width: 1200px) {
  323. width: 600px;
  324. transform: translateX(calc(50vw));
  325. }
  326. @media (max-width: 1199px) {
  327. width: 600px;
  328. transform: translateX(calc(50vw - 106px));
  329. }
  330. @media (max-width: 1100px) {
  331. width: 550px;
  332. transform: translateX(calc(50vw - 55px));
  333. }
  334. // 991px
  335. @media (max-width: @screen-sm-max) {
  336. position: relative;
  337. transform: none;
  338. top: 0;
  339. width: 100%;
  340. margin-bottom: 50px;
  341. }
  342. img.img-responsive {
  343. width: 100%;
  344. }
  345. }
  346. .sticky-tags {
  347. position: absolute;
  348. z-index: 2;
  349. height: 160px;
  350. bottom: -105px;
  351. right: 55px;
  352. @media (max-width: 1400px) {
  353. height: 150px;
  354. bottom: -103px;
  355. right: 47px;
  356. }
  357. @media (max-width: 1200px) {
  358. height: 130px;
  359. bottom: -87px;
  360. }
  361. @media (max-width: 1100px) {
  362. height: 120px;
  363. bottom: -81px;
  364. }
  365. // 991px
  366. @media (max-width: @screen-sm-max) {
  367. height: 130px;
  368. bottom: -75px;
  369. right: 70px;
  370. }
  371. // 767px
  372. @media (max-width: @screen-xs-max) {
  373. height: 24%;
  374. bottom: -10vw; // scale with width
  375. right: 9.5vw; // scale with width
  376. }
  377. }
  378. }
  379. .collaboration-logos-container {
  380. display: flex;
  381. flex-wrap: wrap;
  382. justify-content: space-evenly;
  383. @media (max-width: @screen-sm-max) {
  384. display: grid;
  385. grid-template-columns: repeat(2, 1fr);
  386. gap: 10px;
  387. justify-items: center;
  388. }
  389. .enterprise-logo {
  390. display: inline-block;
  391. padding: 0 @padding-md;
  392. height: 35px;
  393. @media (max-width: @screen-sm-max) {
  394. margin-top: @margin-md;
  395. }
  396. }
  397. .logo-height-45 {
  398. height: 45px;
  399. }
  400. }
  401. .template-cards {
  402. .template-card {
  403. > img.img-responsive {
  404. width: 100%;
  405. border-radius: 8px;
  406. }
  407. .template-card-title {
  408. font-size: 24px;
  409. margin-top: 16px;
  410. margin-bottom: 8px;
  411. a {
  412. width: 100%;
  413. font-weight: 600;
  414. color: var(--neutral-90);
  415. display: inline-flex;
  416. justify-content: space-between;
  417. text-decoration: none;
  418. }
  419. i.material-symbols-rounded {
  420. vertical-align: middle;
  421. text-decoration: none;
  422. }
  423. }
  424. .template-card-text {
  425. font-size: 16px;
  426. }
  427. &:not(:last-of-type) {
  428. @media (max-width: @screen-sm-max) {
  429. margin-bottom: 40px;
  430. }
  431. }
  432. }
  433. }
  434. .cta-card {
  435. display: flex;
  436. flex-direction: column;
  437. align-items: center;
  438. padding: 64px;
  439. background: var(--dark-jungle-green);
  440. color: var(--white);
  441. border-radius: 8px;
  442. @media (max-width: @screen-sm-max) {
  443. padding: 48px 24px 48px 24px;
  444. }
  445. .cta-card-title {
  446. font-size: 3.25rem; // 52px
  447. margin-bottom: 8px;
  448. line-height: 1.3;
  449. &.title-mono {
  450. > span {
  451. // override Noto Sans
  452. font-family: 'DM Mono', monospace;
  453. }
  454. }
  455. span.purple-color {
  456. color: #939aff;
  457. font-weight: 400;
  458. }
  459. span.lime-color {
  460. font-weight: 500;
  461. color: var(--malachite);
  462. }
  463. @media (max-width: @screen-sm-max) {
  464. font-size: 2.25rem; // 36px
  465. }
  466. }
  467. .cta-card-text {
  468. font-size: 1.125rem;
  469. line-height: 1.333;
  470. margin: 8px 0;
  471. text-align: center;
  472. }
  473. .cta-card-quote {
  474. font-size: 1.875rem; // 30px
  475. font-weight: 600;
  476. line-height: 2.5rem; // 40px
  477. letter-spacing: 0em;
  478. text-align: center;
  479. }
  480. }
  481. .quote-card {
  482. display: flex;
  483. flex-direction: column;
  484. align-items: center;
  485. padding: 32px;
  486. background: var(--deep-green);
  487. color: white;
  488. border-radius: 16px;
  489. text-align: center;
  490. blockquote {
  491. font-size: 1.875rem; // 30px
  492. font-weight: 600;
  493. line-height: 1.26;
  494. @media (max-width: @screen-sm-max) {
  495. font-size: 1.5rem; // 24px
  496. line-height: 1.333;
  497. }
  498. }
  499. .quote-card-img {
  500. margin-top: 32px;
  501. margin-bottom: 16px;
  502. }
  503. @media (max-width: @screen-sm-max) {
  504. padding: 56px 24px 56px 24px;
  505. }
  506. }
  507. .integrations-card {
  508. .integrations-icons {
  509. img {
  510. width: 6rem; // 96px
  511. height: 6rem; // 96px
  512. }
  513. .first-row,
  514. .second-row {
  515. display: flex;
  516. }
  517. .first-row {
  518. justify-content: space-between;
  519. }
  520. .second-row {
  521. margin-top: 40px;
  522. justify-content: space-evenly;
  523. }
  524. }
  525. }
  526. .text-with-bg {
  527. font-family: 'DM Mono', monospace;
  528. font-feature-settings: 'ss05';
  529. padding: 0 @padding-sm;
  530. margin: 0 6px;
  531. border-radius: 10px;
  532. margin-top: 5px;
  533. // will make all spans content inline while avoiding overflowing the viewport in mobile
  534. // https://developer.mozilla.org/en-US/docs/Web/CSS/display#flow-root
  535. // https://css-tricks.com/display-flow-root/
  536. display: inline flow-root;
  537. &.tangerine-bg {
  538. background-color: var(--vivid-tangerine);
  539. }
  540. &.purple-bg {
  541. background-color: var(--ceil);
  542. }
  543. &.yellow-bg {
  544. background-color: var(--caramel);
  545. }
  546. }
  547. .security-info {
  548. .security-info-first-row {
  549. margin-bottom: 32px;
  550. @media (max-width: @screen-sm-max) {
  551. margin-bottom: 0;
  552. }
  553. }
  554. .security-info-item {
  555. @media (max-width: @screen-sm-max) {
  556. margin-bottom: 16px;
  557. }
  558. }
  559. }
  560. .resources {
  561. @media (min-width: @screen-md-min) {
  562. display: flex; /* equal heights */
  563. flex-wrap: wrap;
  564. }
  565. .resources-card {
  566. display: flex;
  567. flex-wrap: wrap;
  568. flex-direction: column;
  569. margin-bottom: 48px;
  570. align-content: flex-start;
  571. @media (max-width: @screen-sm-max) {
  572. margin-bottom: 16px;
  573. }
  574. img {
  575. width: 56px;
  576. }
  577. h3 {
  578. width: 100%;
  579. }
  580. a {
  581. margin-top: auto;
  582. }
  583. }
  584. }
  585. .centered-block {
  586. @media (min-width: @screen-md-min) {
  587. text-align: center;
  588. }
  589. }
  590. .mono-text {
  591. font-family: 'DM Mono', monospace;
  592. color: var(--green-60);
  593. font-feature-settings: 'ss05';
  594. font-size: 1.125rem;
  595. font-weight: 500;
  596. line-height: 1.5rem;
  597. margin: 0;
  598. }
  599. .link-with-arrow {
  600. font-size: 1.125rem;
  601. line-height: 1.333;
  602. font-family: 'DM Mono', monospace;
  603. font-feature-settings: 'ss05';
  604. font-weight: 500;
  605. i.material-symbols-rounded {
  606. vertical-align: middle;
  607. padding-bottom: 3px;
  608. font-size: 24px;
  609. }
  610. }
  611. .green-link {
  612. .link-with-arrow;
  613. color: var(--emerald-green);
  614. &:hover {
  615. color: var(--green-60);
  616. .right-arrow {
  617. background: var(--green-60);
  618. }
  619. }
  620. }
  621. .inline-green-link {
  622. color: var(--green-50);
  623. text-decoration: underline;
  624. }
  625. .white-link {
  626. .link-with-arrow;
  627. color: white;
  628. }
  629. .btn-blue {
  630. background: var(--sapphire-blue);
  631. color: var(--white);
  632. &:hover {
  633. background: var(--sapphire-blue-dark);
  634. }
  635. }
  636. .round-background {
  637. border-radius: 50%;
  638. font-size: 1.5rem;
  639. top: 4px;
  640. vertical-align: middle;
  641. margin-right: 8px;
  642. width: 24px;
  643. height: 24px;
  644. }
  645. .green-round-background {
  646. .round-background;
  647. background: var(--mint-green);
  648. color: var(--deep-green);
  649. }
  650. .blue-round-background {
  651. .round-background;
  652. background: var(--blue-10);
  653. color: var(--blue-40);
  654. }
  655. // most of these are here to replace rules from core/type.less
  656. blockquote {
  657. border-left: none;
  658. font-size: 1.875rem;
  659. line-height: 1.333;
  660. font-weight: 600;
  661. quotes: '\201C''\201D'; // override default quotes
  662. padding: unset;
  663. margin: unset;
  664. font-family: 'Noto Sans', sans-serif;
  665. &::after {
  666. visibility: visible;
  667. display: inline;
  668. margin-left: 1px; // it's too tight to the text otherwise
  669. }
  670. &::before {
  671. color: inherit;
  672. margin-right: 0;
  673. vertical-align: 0;
  674. }
  675. &::after,
  676. &::before {
  677. font-size: 1.875rem;
  678. line-height: 1.333;
  679. }
  680. @media (max-width: @screen-sm-max) {
  681. font-size: 1.5rem;
  682. line-height: 1.333;
  683. &::after,
  684. &::before {
  685. visibility: visible;
  686. font-size: 1.5rem;
  687. line-height: 1.333;
  688. }
  689. }
  690. }
  691. .circle-img {
  692. height: 64px;
  693. max-width: 64px;
  694. }
  695. .premium-badge {
  696. .premium-badge-img {
  697. margin-left: 10px;
  698. }
  699. @media (max-width: @screen-xs-max) {
  700. display: flex;
  701. .premium-badge-img {
  702. width: 87px;
  703. margin-left: auto;
  704. }
  705. }
  706. }
  707. .responsive-button-container {
  708. display: flex;
  709. margin-top: 24px;
  710. gap: 16px;
  711. &.centered-buttons {
  712. justify-content: center;
  713. }
  714. @media (max-width: @screen-sm-max) {
  715. flex-direction: column-reverse;
  716. width: 100%;
  717. }
  718. }
  719. .label-premium {
  720. height: 20px; // override default height
  721. @media (max-width: @screen-md-max) {
  722. display: block;
  723. width: fit-content;
  724. margin: 10px 0px 0px 0px;
  725. }
  726. }
  727. .header-description {
  728. p {
  729. font-size: 1.25rem;
  730. line-height: 1.4;
  731. margin-bottom: 0;
  732. @media (max-width: @screen-sm-max) {
  733. font-size: 1.125rem;
  734. line-height: 1.33;
  735. }
  736. }
  737. }
  738. .editor-pdf-video {
  739. display: flex;
  740. align-items: center;
  741. justify-content: center;
  742. height: 585px;
  743. @media (max-width: @screen-sm-max) {
  744. height: auto;
  745. }
  746. video {
  747. box-shadow: 0px 60px 25px -15px rgba(16, 24, 40, 0.2);
  748. max-height: 100%;
  749. width: auto;
  750. @media (max-width: @screen-sm-max) {
  751. width: 100%;
  752. }
  753. }
  754. }
  755. .overleaf-sticker {
  756. float: right;
  757. }
  758. }