cms-page.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. /*
  2. v2
  3. CMS Generated Pages,
  4. including About and Blog
  5. */
  6. .cms-page {
  7. &.website-redesign {
  8. h1 {
  9. font-size: 2rem; // 32px
  10. line-height: 1.333;
  11. }
  12. h2 {
  13. font-size: 1.5rem; // 24px
  14. }
  15. .sales-contact-form-left-column {
  16. @media (min-width: @screen-xs) {
  17. .names-container {
  18. display: flex;
  19. gap: 21px;
  20. }
  21. }
  22. .checkbox-label {
  23. font-size: 16px;
  24. font-weight: 400;
  25. }
  26. }
  27. /* Buttons */
  28. // correct color property set on <a> above:
  29. .reset-btns;
  30. .alert {
  31. .alert;
  32. }
  33. .alert-info {
  34. .btn-info {
  35. .btn-alert-info;
  36. }
  37. }
  38. .p-no-text-nodes:has(.btn) {
  39. margin-top: var(--spacing-09);
  40. @media (max-width: @screen-xs-max) {
  41. .btn {
  42. width: 100%;
  43. margin-left: 0;
  44. margin-top: var(--spacing-05);
  45. }
  46. .btn:first-child {
  47. margin-top: 0;
  48. }
  49. }
  50. }
  51. .btn + .btn {
  52. margin-left: var(--spacing-06);
  53. }
  54. blockquote.quote-picture-bottom {
  55. padding: (@line-height-computed / 2) @line-height-computed;
  56. .quote-picture-and-person {
  57. font-size: 18px;
  58. }
  59. .quote-by-position {
  60. font-weight: 400;
  61. }
  62. }
  63. .optional-text {
  64. font-size: 14px;
  65. }
  66. }
  67. .section-row {
  68. margin: 0 auto;
  69. /* match .col-sm-12 */
  70. /* @grid-gutter-width is used for margins */
  71. max-width: (@screen-sm) - @grid-gutter-width!important;
  72. @media (min-width: @screen-md-min) {
  73. max-width: (@screen-md) - @grid-gutter-width!important;
  74. }
  75. @media (min-width: @screen-lg-min) {
  76. max-width: (@screen-lg) - @grid-gutter-width!important;
  77. }
  78. }
  79. padding-bottom: 0;
  80. img {
  81. height: auto;
  82. max-width: 100%;
  83. }
  84. .btn-description {
  85. margin-right: @margin-sm;
  86. }
  87. /*
  88. Tabs
  89. */
  90. .tab-content {
  91. padding-left: 0;
  92. padding-right: 0;
  93. width: 100%;
  94. }
  95. /*
  96. When on preview mode
  97. */
  98. .cms-preview {
  99. background-color: @blue;
  100. color: white;
  101. font-weight: bold;
  102. height: @navbar-padding-vertical;
  103. left: 0;
  104. line-height: @navbar-padding-vertical;
  105. opacity: 0.8;
  106. position: fixed;
  107. text-align: center;
  108. top: 0;
  109. width: 100%;
  110. z-index: 1;
  111. &:after {
  112. content: 'Preview';
  113. width: 100%;
  114. top: 0;
  115. left: 0;
  116. }
  117. }
  118. .tab-pane {
  119. .row:first-child {
  120. margin-top: 0;
  121. }
  122. }
  123. /*
  124. quotes
  125. */
  126. blockquote:not(.quote-large-text-centered):not(.quote-left-green-border) {
  127. margin: 0;
  128. position: relative;
  129. /*
  130. type.less sets <p> inline, so that quotation mark is inline
  131. but sometimes we have multiple <p>,
  132. so hide quotation mark from type.less and add one here
  133. */
  134. &:before {
  135. /* hide quotation from type.less */
  136. display: none;
  137. }
  138. p {
  139. display: block;
  140. }
  141. p:first-child {
  142. /* below copied from type.less */
  143. &:before {
  144. content: open-quote;
  145. font-size: @blockquote-font-size * 3;
  146. color: @blockquote-border-color;
  147. margin-right: 0.25em;
  148. vertical-align: -0.4em;
  149. line-height: 0.1em;
  150. }
  151. }
  152. }
  153. .quote-full-width {
  154. img {
  155. margin-right: @margin-sm;
  156. margin-bottom: @margin-sm;
  157. }
  158. }
  159. .quote-picture-bottom {
  160. border: none;
  161. color: @content-primary;
  162. .h1 {
  163. margin: 0 0 48px 0;
  164. }
  165. p:first-child {
  166. &:before {
  167. color: inherit;
  168. font-size: inherit;
  169. margin-right: 0;
  170. vertical-align: 0;
  171. line-height: inherit;
  172. position: absolute;
  173. top: (@line-height-computed / 2); // match quote padding
  174. left: 3px;
  175. }
  176. &:after {
  177. content: close-quote;
  178. }
  179. }
  180. img {
  181. height: 64px;
  182. width: 64px;
  183. margin-right: 16px;
  184. }
  185. .quote-by-position {
  186. color: @content-secondary;
  187. }
  188. .quote-picture-and-person {
  189. display: flex;
  190. }
  191. }
  192. /*
  193. Tables
  194. */
  195. .table-styled {
  196. overflow: hidden;
  197. overflow-x: auto;
  198. table {
  199. background: white;
  200. max-width: none;
  201. th,
  202. td {
  203. border: 1px solid @gray-lighter;
  204. padding: @padding-sm;
  205. text-align: center;
  206. word-break: normal;
  207. }
  208. }
  209. }
  210. .table-styled,
  211. .features-table {
  212. .fa-check-square,
  213. .fa-check {
  214. color: @ol-green;
  215. }
  216. }
  217. .features-table {
  218. max-width: none;
  219. th,
  220. td {
  221. border: 1px solid @gray-lighter;
  222. hyphens: auto;
  223. padding: @padding-sm;
  224. text-align: center;
  225. }
  226. th,
  227. td {
  228. width: 20%;
  229. }
  230. .btn {
  231. max-width: 100%;
  232. white-space: pre-wrap;
  233. word-wrap: break-word;
  234. }
  235. &.left-align-first-col {
  236. td,
  237. th {
  238. text-align: left;
  239. }
  240. td + td,
  241. th + th {
  242. text-align: center;
  243. }
  244. }
  245. .hidden-row-above-xs {
  246. display: none;
  247. }
  248. @media screen and (max-width: @screen-xs-max) {
  249. tbody,
  250. thead {
  251. display: block;
  252. }
  253. tr {
  254. display: flex;
  255. flex-flow: row wrap;
  256. justify-content: space-around;
  257. }
  258. td,
  259. th {
  260. display: block;
  261. width: 25%;
  262. }
  263. tr:first-child {
  264. th {
  265. width: 50%;
  266. }
  267. th:first-child {
  268. width: 100%;
  269. }
  270. }
  271. td:first-child {
  272. text-align: center;
  273. width: 100%;
  274. }
  275. .hidden-row-xs {
  276. display: none;
  277. }
  278. .hidden-row-above-xs {
  279. display: flex;
  280. }
  281. .table-header {
  282. text-align: center;
  283. }
  284. }
  285. }
  286. /*
  287. universities page
  288. */
  289. #universities-container {
  290. padding: @padding-md;
  291. width: 100%;
  292. .row {
  293. border-bottom: 1px solid @gray-lightest;
  294. div {
  295. padding: @padding-md;
  296. vertical-align: middle;
  297. }
  298. }
  299. .row:first-child {
  300. // parent container contains padding
  301. div {
  302. padding-top: 0;
  303. }
  304. }
  305. .row:last-child {
  306. border: 0;
  307. // parent container contains padding
  308. div {
  309. border: 0;
  310. padding-bottom: 0;
  311. }
  312. }
  313. p {
  314. margin: 0 auto;
  315. width: 100%;
  316. }
  317. // Logos
  318. .uni-logo {
  319. margin: 0 auto;
  320. max-height: 55px;
  321. min-width: 55px;
  322. }
  323. .university-claim-btn {
  324. text-align: center;
  325. }
  326. @media only screen and (min-width: @screen-xs-min) {
  327. display: table;
  328. table-layout: fixed;
  329. .row {
  330. display: table-row;
  331. div {
  332. border-bottom: 1px solid @gray-lightest;
  333. display: table-cell;
  334. float: none;
  335. }
  336. }
  337. }
  338. }
  339. /*
  340. videos
  341. */
  342. video {
  343. height: auto;
  344. max-width: 100%;
  345. }
  346. }
  347. .icon-with-content {
  348. display: flex;
  349. h2,
  350. h3,
  351. h4 {
  352. margin-top: 15px;
  353. }
  354. .icon-container {
  355. background-color: @green-10;
  356. padding: 7.5px;
  357. height: 56px;
  358. width: 56px;
  359. border-radius: 50%;
  360. margin-right: 24px;
  361. .icon-inner-container {
  362. align-items: center;
  363. border: @green-30 3.5px solid;
  364. border-radius: 50%;
  365. display: flex;
  366. justify-content: center;
  367. height: 42px;
  368. width: 42px;
  369. }
  370. i {
  371. color: @green;
  372. font-size: 21px;
  373. }
  374. }
  375. }
  376. .svg-arrow-icon {
  377. position: relative;
  378. left: 4px;
  379. bottom: 1px;
  380. }
  381. // `Layout | Grid` display options
  382. .row-equal-column-heights {
  383. @media (min-width: @screen-sm-min) {
  384. display: flex;
  385. flex-flow: row wrap;
  386. div[class*='col-'] {
  387. display: flex;
  388. flex-direction: column;
  389. .card,
  390. .no-card {
  391. height: 100%;
  392. }
  393. }
  394. }
  395. }
  396. .vertically-center-col {
  397. // remove margin to better vertically align
  398. // some elements need to be nested within a container, and others are directly within .no-card/.card
  399. .card:first-child,
  400. .no-card:first-child {
  401. .cms-element-container {
  402. > *:first-child {
  403. margin-top: 0;
  404. }
  405. }
  406. > *:first-child:not(.cms-element-container) {
  407. margin-top: 0;
  408. }
  409. }
  410. .card:last-child,
  411. .no-card:last-child {
  412. .cms-element-container {
  413. > *:last-child {
  414. margin-bottom: 0;
  415. }
  416. }
  417. > *:last-child:not(.cms-element-container) {
  418. margin-bottom: 0;
  419. }
  420. }
  421. @media (min-width: @screen-sm-min) {
  422. display: flex;
  423. div[class*='col-'] {
  424. align-self: center;
  425. }
  426. }
  427. }
  428. .reverse-col-order-mobile {
  429. @media (max-width: @screen-sm-min) {
  430. display: flex;
  431. flex-flow: column;
  432. flex-direction: column-reverse;
  433. }
  434. }
  435. .row-within-card {
  436. .no-card {
  437. > :first-child {
  438. margin-top: 0;
  439. }
  440. > :last-child {
  441. margin-bottom: 0;
  442. }
  443. }
  444. }
  445. .contact-form-error-container {
  446. padding-bottom: calc(@line-height-computed / 2);
  447. }
  448. .row-top-padding-sm {
  449. padding-top: @padding-sm;
  450. }
  451. .row-top-padding-md {
  452. padding-top: @padding-md;
  453. }
  454. .row-top-padding-lg {
  455. padding-top: @padding-lg;
  456. }
  457. .row-top-padding-xl {
  458. padding-top: @padding-xl;
  459. }
  460. .row-top-padding-xxl {
  461. padding-top: @padding-xxl;
  462. }
  463. .row-bottom-padding-sm {
  464. padding-bottom: @padding-sm;
  465. }
  466. .row-bottom-padding-md {
  467. padding-bottom: @padding-md;
  468. }
  469. .row-bottom-padding-lg {
  470. padding-bottom: @padding-lg;
  471. }
  472. .row-bottom-padding-xl {
  473. padding-bottom: @padding-xl;
  474. }
  475. .row-bottom-padding-xxl {
  476. padding-bottom: @padding-xxl;
  477. }
  478. @media (min-width: @screen-sm-min) {
  479. .desktop-left-margin-sm {
  480. margin-left: @margin-sm;
  481. }
  482. .desktop-left-margin-md {
  483. margin-left: @margin-md;
  484. }
  485. .desktop-left-margin-lg {
  486. margin-left: @margin-lg;
  487. }
  488. .desktop-left-margin-xl {
  489. margin-left: @margin-xl;
  490. }
  491. .desktop-left-margin-xxl {
  492. margin-left: @margin-xxl;
  493. }
  494. .desktop-right-margin-sm {
  495. margin-right: @margin-sm;
  496. }
  497. .desktop-right-margin-md {
  498. margin-right: @margin-md;
  499. }
  500. .desktop-right-margin-lg {
  501. margin-right: @margin-lg;
  502. }
  503. .desktop-right-margin-xl {
  504. margin-right: @margin-xl;
  505. }
  506. .desktop-right-margin-xxl {
  507. margin-right: @margin-xxl;
  508. }
  509. }
  510. .top-margin-sm {
  511. margin-top: @margin-sm;
  512. }
  513. .top-margin-md {
  514. margin-top: @margin-md;
  515. }
  516. .top-margin-lg {
  517. margin-top: @margin-lg;
  518. }
  519. .top-margin-xl {
  520. margin-top: @margin-xl;
  521. }
  522. .top-margin-xxl {
  523. margin-top: @margin-xxl;
  524. }
  525. @media (max-width: @screen-xs-max) {
  526. .mobile-bottom-margin-sm {
  527. margin-bottom: @margin-sm;
  528. }
  529. .mobile-bottom-margin-md {
  530. margin-bottom: @margin-md;
  531. }
  532. .mobile-bottom-margin-lg {
  533. margin-bottom: @margin-lg;
  534. }
  535. .mobile-bottom-margin-xl {
  536. margin-bottom: @margin-xl;
  537. }
  538. .mobile-bottom-margin-xxl {
  539. margin-bottom: @margin-xxl;
  540. }
  541. }
  542. @media (max-width: @screen-sm-min) {
  543. .col-xs-padding-sm {
  544. .col-xs-12:not(:first-child) {
  545. padding-top: @padding-sm;
  546. }
  547. }
  548. .col-xs-padding-md {
  549. .col-xs-12:not(:first-child) {
  550. padding-top: @padding-md;
  551. }
  552. }
  553. .col-xs-padding-lg {
  554. .col-xs-12:not(:first-child) {
  555. padding-top: @padding-lg;
  556. }
  557. }
  558. .col-xs-padding-xl {
  559. .col-xs-12:not(:first-child) {
  560. padding-top: @padding-xl;
  561. }
  562. }
  563. .col-xs-padding-xxl {
  564. .col-xs-12:not(:first-child) {
  565. padding-top: @padding-xxl;
  566. }
  567. }
  568. }
  569. .website-redesign {
  570. // mobile breakpoint is md in website redesign
  571. @media (max-width: @screen-sm-max) {
  572. .col-xs-padding-sm {
  573. .col-xs-12:not(:first-child) {
  574. padding-top: @padding-sm;
  575. }
  576. }
  577. .col-xs-padding-md {
  578. .col-xs-12:not(:first-child) {
  579. padding-top: @padding-md;
  580. }
  581. }
  582. .col-xs-padding-lg {
  583. .col-xs-12:not(:first-child) {
  584. padding-top: @padding-lg;
  585. }
  586. }
  587. .col-xs-padding-xl {
  588. .col-xs-12:not(:first-child) {
  589. padding-top: @padding-xl;
  590. }
  591. }
  592. .col-xs-padding-xxl {
  593. .col-xs-12:not(:first-child) {
  594. padding-top: @padding-xxl;
  595. }
  596. }
  597. }
  598. }
  599. .bottom-align-last-entry {
  600. display: flex;
  601. flex-direction: column;
  602. * {
  603. &:last-child {
  604. flex: 1;
  605. align-content: end;
  606. }
  607. }
  608. }