cms-page.less 7.9 KB

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