cms-page.less 9.1 KB

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