website-redesign.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
  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. div,
  6. h1,
  7. h2,
  8. h3,
  9. h4,
  10. a,
  11. strong,
  12. span {
  13. font-family: 'Noto Sans', sans-serif;
  14. }
  15. h1 {
  16. font-size: 3rem;
  17. font-weight: 600;
  18. line-height: 4rem;
  19. }
  20. h2 {
  21. font-weight: 600;
  22. font-size: 2.25rem;
  23. line-height: 1.333;
  24. margin-top: 0;
  25. @media (max-width: @screen-sm-max) {
  26. font-size: 1.875rem;
  27. }
  28. }
  29. h3 {
  30. font-weight: 600;
  31. }
  32. h1,
  33. h2,
  34. h3 {
  35. > span.mono-text {
  36. display: block;
  37. margin-bottom: @margin-xs;
  38. }
  39. }
  40. // override .btn default style
  41. .btn {
  42. font-weight: 600;
  43. }
  44. .img-rounded {
  45. // TODO: design specifies 'border-radius-large' which is 5px, but uses 16px
  46. border-radius: 16px;
  47. }
  48. .plans-cards {
  49. @media (min-width: @screen-md-min) {
  50. display: flex; /* equal heights */
  51. flex-wrap: wrap;
  52. }
  53. .plans-card-container {
  54. min-height: 348px;
  55. @media (max-width: @screen-sm-max) {
  56. margin-bottom: 16px;
  57. min-height: unset;
  58. }
  59. }
  60. .plans-card {
  61. border-radius: 8px;
  62. padding: 0;
  63. height: 100%;
  64. .plans-card-inner {
  65. padding: 36px;
  66. height: 100%;
  67. display: flex;
  68. flex-direction: column;
  69. font-size: 16px;
  70. .plans-card-inner-title {
  71. font-size: 20px;
  72. font-weight: 600;
  73. margin-top: 0;
  74. }
  75. ul {
  76. list-style-type: none;
  77. padding: 0;
  78. margin: 0;
  79. li {
  80. margin-bottom: 8px;
  81. }
  82. }
  83. .plans-card-inner-footer {
  84. margin-top: auto;
  85. display: flex;
  86. flex-direction: column;
  87. gap: 12px;
  88. @media (max-width: @screen-sm-max) {
  89. margin-top: 16px;
  90. }
  91. }
  92. }
  93. &.grey-border {
  94. border: 2px solid var(--neutral-20);
  95. }
  96. &.blue-border {
  97. border: solid 2px var(--sapphire-blue);
  98. border-radius: 8px;
  99. .plans-card-inner-title {
  100. color: var(--sapphire-blue);
  101. }
  102. }
  103. }
  104. }
  105. .plans-bottom-text {
  106. font-size: 1.125rem;
  107. }
  108. .info-cards {
  109. @media (min-width: @screen-md-min) {
  110. display: flex; /* equal heights */
  111. flex-wrap: wrap;
  112. }
  113. .info-card-container {
  114. margin-bottom: 16px;
  115. .info-card {
  116. border-radius: 8px;
  117. height: 100%;
  118. box-shadow: 0px 2px 4px 0px #1e253014, 0px 4px 12px 0px #1e25301f;
  119. border-top: 8px solid var(--sapphire-blue);
  120. padding: 32px 40px 32px 40px;
  121. &.info-card-big-text {
  122. h3 {
  123. font-size: 1.5rem;
  124. line-height: 1.333;
  125. }
  126. p {
  127. font-size: 1.125rem;
  128. line-height: 1.333;
  129. }
  130. }
  131. i.material-symbols {
  132. color: var(--sapphire-blue);
  133. }
  134. }
  135. }
  136. }
  137. .security-heading-section {
  138. @media (max-width: @screen-sm-max) {
  139. p {
  140. text-align: left;
  141. }
  142. h2 {
  143. width: 100%;
  144. text-align: left;
  145. }
  146. }
  147. .heading-and-stickers-container {
  148. display: flex;
  149. justify-content: center;
  150. .lock-sticker {
  151. width: 70px;
  152. position: absolute;
  153. top: -95px;
  154. right: -50px;
  155. @media (max-width: @screen-lg) {
  156. right: -105px;
  157. }
  158. @media (max-width: @screen-sm-max) {
  159. display: none;
  160. }
  161. }
  162. .arrow-sticker {
  163. width: 140px;
  164. position: absolute;
  165. top: -50px;
  166. right: -15px;
  167. @media (max-width: @screen-lg) {
  168. right: -70px;
  169. }
  170. @media (max-width: @screen-sm-max) {
  171. display: none;
  172. }
  173. }
  174. }
  175. }
  176. .features-card {
  177. display: flex; /* equal heights */
  178. flex-wrap: wrap;
  179. align-items: center;
  180. .features-card-media,
  181. .features-card-media-right {
  182. padding-top: 24px;
  183. img.img-responsive {
  184. width: 100%;
  185. }
  186. video {
  187. box-shadow: 0px 4px 6px 0px rgba(30, 37, 48, 0.12),
  188. 0px 8px 16px 0px rgba(30, 37, 48, 0.12);
  189. max-height: 100%;
  190. width: auto;
  191. width: 100%;
  192. }
  193. @media (max-width: @screen-sm-max) {
  194. margin-bottom: 50px;
  195. }
  196. }
  197. @media (min-width: @screen-md-min) {
  198. .features-card-media-right {
  199. padding-left: 64px;
  200. }
  201. .features-card-media {
  202. padding-right: 64px;
  203. }
  204. }
  205. .features-card-description,
  206. .features-card-description-list {
  207. padding-top: 16px;
  208. p {
  209. margin-bottom: 16px;
  210. font-size: 1.125rem;
  211. line-height: 1.333;
  212. @media (max-width: @screen-sm-max) {
  213. font-size: 1rem;
  214. line-height: 1.375;
  215. }
  216. }
  217. a.green-link {
  218. margin-top: 4px;
  219. display: block;
  220. }
  221. ul {
  222. list-style-type: none;
  223. padding: 0;
  224. margin: 0;
  225. li {
  226. margin-bottom: 12px;
  227. font-size: 1.125rem;
  228. line-height: 1.333;
  229. // flex is needed in the case of "premium" label being on the same line
  230. display: flex;
  231. @media (max-width: @screen-sm-max) {
  232. font-size: 1rem;
  233. line-height: 1.375;
  234. // only for label-premium that appears directly as a child of li
  235. > .label-premium {
  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: 0px 15px;
  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. .organization-logos-container {
  380. display: flex;
  381. justify-content: space-around;
  382. align-items: center;
  383. @media (max-width: @screen-md-max) {
  384. flex-wrap: wrap;
  385. gap: 30px;
  386. }
  387. .organization-logo {
  388. object-fit: contain;
  389. max-height: 62px;
  390. @media (max-width: @screen-md-max) {
  391. max-height: 40px;
  392. flex-basis: 34%;
  393. }
  394. }
  395. }
  396. .template-cards {
  397. .template-card {
  398. > img.img-responsive {
  399. width: 100%;
  400. border-radius: 8px;
  401. }
  402. .template-card-title {
  403. font-size: 24px;
  404. margin-top: 16px;
  405. margin-bottom: 8px;
  406. a {
  407. width: 100%;
  408. font-weight: 600;
  409. color: var(--neutral-90);
  410. display: inline-flex;
  411. justify-content: space-between;
  412. text-decoration: none;
  413. &:hover {
  414. text-decoration: underline;
  415. }
  416. }
  417. i.material-symbols-rounded {
  418. vertical-align: middle;
  419. text-decoration: none;
  420. }
  421. }
  422. .template-card-text {
  423. font-size: 16px;
  424. }
  425. &:not(:last-of-type) {
  426. @media (max-width: @screen-sm-max) {
  427. margin-bottom: 40px;
  428. }
  429. }
  430. }
  431. }
  432. .cta-card {
  433. display: flex;
  434. flex-direction: column;
  435. align-items: center;
  436. padding: 64px;
  437. background: var(--dark-jungle-green);
  438. color: var(--white);
  439. border-radius: 8px;
  440. @media (max-width: @screen-sm-max) {
  441. padding: 48px 24px 48px 24px;
  442. }
  443. .cta-card-title {
  444. font-size: 3.25rem; // 52px
  445. margin-bottom: 8px;
  446. line-height: 1.3;
  447. &.title-mono {
  448. > span {
  449. // override Noto Sans
  450. font-family: 'DM Mono', monospace;
  451. }
  452. }
  453. span.purple-color {
  454. color: #939aff;
  455. font-weight: 400;
  456. }
  457. span.lime-color {
  458. font-weight: 500;
  459. color: var(--malachite);
  460. }
  461. @media (max-width: @screen-sm-max) {
  462. font-size: 2.25rem; // 36px
  463. }
  464. }
  465. .cta-card-text {
  466. font-size: 1.125rem;
  467. line-height: 1.333;
  468. margin: 8px 0;
  469. text-align: center;
  470. }
  471. .cta-card-quote {
  472. font-size: 1.875rem; // 30px
  473. font-weight: 600;
  474. line-height: 2.5rem; // 40px
  475. letter-spacing: 0em;
  476. text-align: center;
  477. }
  478. }
  479. .quote-card {
  480. display: flex;
  481. flex-direction: column;
  482. align-items: center;
  483. padding: 32px;
  484. background: var(--dark-jungle-green);
  485. color: white;
  486. border-radius: 16px;
  487. text-align: center;
  488. blockquote {
  489. font-size: 1.875rem; // 30px
  490. font-weight: 600;
  491. line-height: 1.26;
  492. @media (max-width: @screen-sm-max) {
  493. font-size: 1.5rem; // 24px
  494. line-height: 1.333;
  495. }
  496. }
  497. .quote-card-img {
  498. margin-top: 32px;
  499. margin-bottom: 16px;
  500. }
  501. @media (max-width: @screen-sm-max) {
  502. padding: 56px 24px 56px 24px;
  503. }
  504. }
  505. .integrations-card {
  506. display: flex; /* for center align */
  507. flex-wrap: wrap;
  508. align-items: center;
  509. .integrations-icons {
  510. img {
  511. width: 6rem; // 96px
  512. height: 6rem; // 96px
  513. }
  514. .first-row,
  515. .second-row {
  516. display: flex;
  517. }
  518. .first-row {
  519. justify-content: space-between;
  520. }
  521. .second-row {
  522. margin-top: 40px;
  523. justify-content: space-evenly;
  524. }
  525. }
  526. }
  527. .text-with-bg {
  528. font-family: 'DM Mono', monospace;
  529. font-feature-settings: 'ss05';
  530. padding: 0 @padding-sm;
  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. &.green-bg {
  547. background-color: var(--mint-green);
  548. }
  549. }
  550. .security-info {
  551. .security-info-first-row {
  552. margin-bottom: 32px;
  553. @media (max-width: @screen-sm-max) {
  554. margin-bottom: 0;
  555. }
  556. }
  557. .security-info-item {
  558. @media (max-width: @screen-sm-max) {
  559. margin-bottom: 16px;
  560. }
  561. }
  562. }
  563. .resources {
  564. @media (min-width: @screen-md-min) {
  565. display: flex; /* equal heights */
  566. flex-wrap: wrap;
  567. }
  568. .resources-card {
  569. display: flex;
  570. flex-wrap: wrap;
  571. flex-direction: column;
  572. margin-bottom: 48px;
  573. align-content: flex-start;
  574. @media (max-width: @screen-sm-max) {
  575. margin-bottom: 16px;
  576. }
  577. img {
  578. width: 56px;
  579. }
  580. h3 {
  581. width: 100%;
  582. }
  583. a {
  584. margin-top: auto;
  585. }
  586. }
  587. }
  588. .centered-block {
  589. @media (min-width: @screen-md-min) {
  590. text-align: center;
  591. }
  592. }
  593. .heading-section-md-align-left {
  594. @media (max-width: @screen-md-min) {
  595. display: flex;
  596. flex-direction: column;
  597. align-items: baseline;
  598. h2 {
  599. text-align: left;
  600. }
  601. p {
  602. text-align: left;
  603. }
  604. }
  605. }
  606. .mono-text {
  607. font-family: 'DM Mono', monospace;
  608. color: var(--green-60);
  609. font-feature-settings: 'ss05';
  610. font-size: 1.125rem;
  611. font-weight: 500;
  612. line-height: 1.5rem;
  613. margin: 0;
  614. }
  615. .link-with-arrow {
  616. font-size: 1.125rem;
  617. line-height: 1.333;
  618. font-family: 'DM Mono', monospace;
  619. font-feature-settings: 'ss05';
  620. font-weight: 500;
  621. i.material-symbols-rounded {
  622. vertical-align: middle;
  623. padding-bottom: 3px;
  624. font-size: 24px;
  625. }
  626. }
  627. .green-link {
  628. .link-with-arrow;
  629. color: var(--emerald-green);
  630. &:hover {
  631. color: var(--emerald-green-dark);
  632. .right-arrow {
  633. color: var(--emerald-green-dark);
  634. }
  635. }
  636. }
  637. .inline-green-link {
  638. color: var(--emerald-green);
  639. &:hover {
  640. color: var(--emerald-green-dark);
  641. }
  642. text-decoration: underline;
  643. }
  644. .white-link {
  645. .link-with-arrow;
  646. color: white;
  647. }
  648. .btn-blue {
  649. background: var(--sapphire-blue);
  650. color: var(--white);
  651. &:hover {
  652. background: var(--sapphire-blue-dark);
  653. }
  654. }
  655. .btn-primary {
  656. background: var(--emerald-green);
  657. color: var(--white);
  658. &:hover {
  659. background: var(--emerald-green-dark);
  660. }
  661. }
  662. .round-background {
  663. border-radius: 50%;
  664. font-size: 1.5rem;
  665. top: 4px;
  666. vertical-align: middle;
  667. margin-right: 8px;
  668. width: 24px;
  669. height: 24px;
  670. }
  671. .green-round-background {
  672. .round-background;
  673. background: var(--mint-green);
  674. color: var(--dark-jungle-green);
  675. }
  676. .blue-round-background {
  677. .round-background;
  678. background: var(--blue-10);
  679. color: var(--blue-40);
  680. }
  681. // most of these are here to replace rules from core/type.less
  682. blockquote {
  683. border-left: none;
  684. font-size: 1.875rem;
  685. line-height: 1.333;
  686. font-weight: 600;
  687. quotes: '\201C''\201D'; // override default quotes
  688. padding: unset;
  689. margin: unset;
  690. font-family: 'Noto Sans', sans-serif;
  691. &::after {
  692. visibility: visible;
  693. display: inline;
  694. margin-left: 1px; // it's too tight to the text otherwise
  695. }
  696. &::before {
  697. color: inherit;
  698. margin-right: 0;
  699. vertical-align: 0;
  700. }
  701. &::after,
  702. &::before {
  703. font-size: 1.875rem;
  704. line-height: 1.333;
  705. }
  706. @media (max-width: @screen-sm-max) {
  707. font-size: 1.5rem;
  708. line-height: 1.333;
  709. &::after,
  710. &::before {
  711. visibility: visible;
  712. font-size: 1.5rem;
  713. line-height: 1.333;
  714. }
  715. }
  716. }
  717. .circle-img {
  718. height: 64px;
  719. max-width: 64px;
  720. }
  721. .premium-badge {
  722. .premium-badge-img {
  723. margin-left: 10px;
  724. }
  725. @media (max-width: @screen-xs-max) {
  726. display: flex;
  727. .premium-badge-img {
  728. width: 87px;
  729. margin-left: auto;
  730. }
  731. }
  732. }
  733. .responsive-button-container {
  734. display: flex;
  735. margin-top: 24px;
  736. gap: 16px;
  737. &.centered-buttons {
  738. justify-content: center;
  739. }
  740. &.align-left-button-sm {
  741. @media (max-width: @screen-sm-max) {
  742. justify-content: start;
  743. }
  744. }
  745. }
  746. .label-premium {
  747. height: 20px; // override default height
  748. }
  749. .label-premium-block-md {
  750. @media (max-width: @screen-md-max) {
  751. display: block;
  752. width: fit-content;
  753. margin: 10px 0px 0px 0px;
  754. }
  755. }
  756. .header-description {
  757. p {
  758. font-size: 1.25rem;
  759. line-height: 1.4;
  760. margin-bottom: 0;
  761. @media (max-width: @screen-sm-max) {
  762. font-size: 1.125rem;
  763. line-height: 1.33;
  764. }
  765. }
  766. }
  767. .editor-pdf-video {
  768. display: flex;
  769. align-items: center;
  770. justify-content: center;
  771. height: 585px;
  772. padding: 0px 15px;
  773. @media (max-width: @screen-sm-max) {
  774. height: auto;
  775. }
  776. video {
  777. box-shadow: 0px 60px 25px -15px rgba(16, 24, 40, 0.2);
  778. max-height: 100%;
  779. width: auto;
  780. @media (max-width: @screen-sm-max) {
  781. width: 100%;
  782. }
  783. }
  784. }
  785. .overleaf-sticker {
  786. float: right;
  787. @media (max-width: @screen-sm-max) {
  788. width: 74px; // 70% of 106px
  789. }
  790. }
  791. }