cms-page.less 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. }
  138. /*
  139. Tables
  140. */
  141. .table-styled {
  142. overflow: hidden;
  143. overflow-x: auto;
  144. table {
  145. background: white;
  146. max-width: none;
  147. th,
  148. td {
  149. border: 1px solid @gray-lighter;
  150. padding: @padding-sm;
  151. text-align: center;
  152. word-break: normal;
  153. }
  154. }
  155. }
  156. .table-styled,
  157. .features-table {
  158. .fa-check-square,
  159. .fa-check {
  160. color: @ol-green;
  161. }
  162. }
  163. .features-table {
  164. max-width: none;
  165. th,
  166. td {
  167. border: 1px solid @gray-lighter;
  168. hyphens: auto;
  169. padding: @padding-sm;
  170. text-align: center;
  171. }
  172. th,
  173. td {
  174. width: 20%;
  175. }
  176. .btn {
  177. max-width: 100%;
  178. white-space: pre-wrap;
  179. word-wrap: break-word;
  180. }
  181. &.left-align-first-col {
  182. td,
  183. th {
  184. text-align: left;
  185. }
  186. td + td,
  187. th + th {
  188. text-align: center;
  189. }
  190. }
  191. .hidden-row-above-xs {
  192. display: none;
  193. }
  194. @media screen and (max-width: @screen-xs-max) {
  195. tbody,
  196. thead {
  197. display: block;
  198. }
  199. tr {
  200. display: flex;
  201. flex-flow: row wrap;
  202. justify-content: space-around;
  203. }
  204. td,
  205. th {
  206. display: block;
  207. width: 25%;
  208. }
  209. tr:first-child {
  210. th {
  211. width: 50%;
  212. }
  213. th:first-child {
  214. width: 100%;
  215. }
  216. }
  217. td:first-child {
  218. text-align: center;
  219. width: 100%;
  220. }
  221. .hidden-row-xs {
  222. display: none;
  223. }
  224. .hidden-row-above-xs {
  225. display: flex;
  226. }
  227. .table-header {
  228. text-align: center;
  229. }
  230. }
  231. }
  232. /*
  233. universities page
  234. */
  235. #universities-container {
  236. padding: @padding-md;
  237. width: 100%;
  238. .row {
  239. border-bottom: 1px solid @gray-lightest;
  240. div {
  241. padding: @padding-md;
  242. vertical-align: middle;
  243. }
  244. }
  245. .row:first-child {
  246. // parent container contains padding
  247. div {
  248. padding-top: 0;
  249. }
  250. }
  251. .row:last-child {
  252. border: 0;
  253. // parent container contains padding
  254. div {
  255. border: 0;
  256. padding-bottom: 0;
  257. }
  258. }
  259. p {
  260. margin: 0 auto;
  261. width: 100%;
  262. }
  263. // Logos
  264. .uni-logo {
  265. margin: 0 auto;
  266. max-height: 55px;
  267. min-width: 55px;
  268. }
  269. .university-claim-btn {
  270. text-align: center;
  271. }
  272. @media only screen and (min-width: @screen-xs-min) {
  273. display: table;
  274. table-layout: fixed;
  275. .row {
  276. display: table-row;
  277. div {
  278. border-bottom: 1px solid @gray-lightest;
  279. display: table-cell;
  280. float: none;
  281. }
  282. }
  283. }
  284. }
  285. /*
  286. videos
  287. */
  288. video {
  289. height: auto;
  290. max-width: 100%;
  291. }
  292. }
  293. .icon-with-content {
  294. display: flex;
  295. h2,
  296. h3,
  297. h4 {
  298. margin-top: 15px;
  299. }
  300. .icon-container {
  301. background-color: @green-10;
  302. padding: 7.5px;
  303. height: 56px;
  304. width: 56px;
  305. border-radius: 50%;
  306. margin-right: 24px;
  307. .icon-inner-container {
  308. align-items: center;
  309. border: @green-30 3.5px solid;
  310. border-radius: 50%;
  311. display: flex;
  312. justify-content: center;
  313. height: 42px;
  314. width: 42px;
  315. }
  316. i {
  317. color: @green;
  318. font-size: 21px;
  319. }
  320. }
  321. }
  322. .svg-arrow-icon {
  323. position: relative;
  324. left: 4px;
  325. bottom: 1px;
  326. }
  327. .vertically-center-col {
  328. @media (min-width: @screen-sm-min) {
  329. display: flex;
  330. .col-* {
  331. align-self: center;
  332. }
  333. }
  334. }