cms-page.less 10 KB

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