cms-page.less 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. /*
  2. v2
  3. CMS Generated Pages,
  4. including About and Blog
  5. */
  6. .cms-page {
  7. padding-bottom: 0;
  8. img {
  9. height: auto;
  10. max-width: 100%;
  11. }
  12. .btn-description {
  13. margin-right: @margin-sm;
  14. }
  15. /*
  16. Tabs
  17. */
  18. .tab-content {
  19. padding-left: 0;
  20. padding-right: 0;
  21. width: 100%;
  22. }
  23. /*
  24. When on preview mode
  25. */
  26. .cms-preview {
  27. background-color: @blue;
  28. color: white;
  29. font-weight: bold;
  30. height: @navbar-padding-vertical;
  31. left: 0;
  32. line-height: @navbar-padding-vertical;
  33. opacity: 0.8;
  34. position: fixed;
  35. text-align: center;
  36. top: 0;
  37. width: 100%;
  38. z-index: 1;
  39. &:after {
  40. content: 'Preview';
  41. width: 100%;
  42. top: 0;
  43. left: 0;
  44. }
  45. }
  46. .tab-pane {
  47. .row:first-child {
  48. margin-top: 0;
  49. }
  50. }
  51. /*
  52. quotes
  53. */
  54. blockquote {
  55. margin: 0;
  56. position: relative;
  57. /*
  58. type.less sets <p> inline, so that quotation mark is inline
  59. but sometimes we have multiple <p>,
  60. so hide quotation mark from type.less and add one here
  61. */
  62. &:before {
  63. /* hide quotation from type.less */
  64. display: none;
  65. }
  66. p {
  67. display: block;
  68. }
  69. p:first-child {
  70. /* below copied from type.less */
  71. &:before {
  72. content: open-quote;
  73. font-size: @blockquote-font-size * 3;
  74. color: @blockquote-border-color;
  75. margin-right: 0.25em;
  76. vertical-align: -0.4em;
  77. line-height: 0.1em;
  78. }
  79. }
  80. }
  81. .quote-full-width {
  82. img {
  83. margin-right: @margin-sm;
  84. margin-bottom: @margin-sm;
  85. }
  86. }
  87. .quote-picture-bottom {
  88. border: none;
  89. color: @content-primary;
  90. .h1 {
  91. margin: 0 0 48px 0;
  92. }
  93. p:first-child {
  94. &:before {
  95. color: inherit;
  96. font-size: inherit;
  97. margin-right: 0;
  98. vertical-align: 0;
  99. line-height: inherit;
  100. position: absolute;
  101. top: (@line-height-computed / 2); // match quote padding
  102. left: 3px;
  103. }
  104. &:after {
  105. content: close-quote;
  106. }
  107. }
  108. img {
  109. height: 64px;
  110. width: 64px;
  111. margin-right: 16px;
  112. }
  113. .quote-by-position {
  114. color: @content-secondary;
  115. }
  116. }
  117. /*
  118. Tables
  119. */
  120. .table-styled {
  121. overflow: hidden;
  122. overflow-x: auto;
  123. table {
  124. background: white;
  125. max-width: none;
  126. th,
  127. td {
  128. border: 1px solid @gray-lighter;
  129. padding: @padding-sm;
  130. text-align: center;
  131. word-break: normal;
  132. }
  133. }
  134. }
  135. .table-styled,
  136. .features-table {
  137. .fa-check-square,
  138. .fa-check {
  139. color: @ol-green;
  140. }
  141. }
  142. .features-table {
  143. max-width: none;
  144. th,
  145. td {
  146. border: 1px solid @gray-lighter;
  147. hyphens: auto;
  148. padding: @padding-sm;
  149. text-align: center;
  150. }
  151. th,
  152. td {
  153. width: 20%;
  154. }
  155. .btn {
  156. max-width: 100%;
  157. white-space: pre-wrap;
  158. word-wrap: break-word;
  159. }
  160. &.left-align-first-col {
  161. td,
  162. th {
  163. text-align: left;
  164. }
  165. td + td,
  166. th + th {
  167. text-align: center;
  168. }
  169. }
  170. .hidden-row-above-xs {
  171. display: none;
  172. }
  173. @media screen and (max-width: @screen-xs-max) {
  174. tbody,
  175. thead {
  176. display: block;
  177. }
  178. tr {
  179. display: flex;
  180. flex-flow: row wrap;
  181. justify-content: space-around;
  182. }
  183. td,
  184. th {
  185. display: block;
  186. width: 25%;
  187. }
  188. tr:first-child {
  189. th {
  190. width: 50%;
  191. }
  192. th:first-child {
  193. width: 100%;
  194. }
  195. }
  196. td:first-child {
  197. text-align: center;
  198. width: 100%;
  199. }
  200. .hidden-row-xs {
  201. display: none;
  202. }
  203. .hidden-row-above-xs {
  204. display: flex;
  205. }
  206. .table-header {
  207. text-align: center;
  208. }
  209. }
  210. }
  211. /*
  212. universities page
  213. */
  214. #universities-container {
  215. padding: @padding-md;
  216. width: 100%;
  217. .row {
  218. border-bottom: 1px solid @gray-lightest;
  219. div {
  220. padding: @padding-md;
  221. vertical-align: middle;
  222. }
  223. }
  224. .row:first-child {
  225. // parent container contains padding
  226. div {
  227. padding-top: 0;
  228. }
  229. }
  230. .row:last-child {
  231. border: 0;
  232. // parent container contains padding
  233. div {
  234. border: 0;
  235. padding-bottom: 0;
  236. }
  237. }
  238. p {
  239. margin: 0 auto;
  240. width: 100%;
  241. }
  242. // Logos
  243. .uni-logo {
  244. margin: 0 auto;
  245. max-height: 55px;
  246. min-width: 55px;
  247. }
  248. .university-claim-btn {
  249. text-align: center;
  250. }
  251. @media only screen and (min-width: @screen-xs-min) {
  252. display: table;
  253. table-layout: fixed;
  254. .row {
  255. display: table-row;
  256. div {
  257. border-bottom: 1px solid @gray-lightest;
  258. display: table-cell;
  259. float: none;
  260. }
  261. }
  262. }
  263. }
  264. /*
  265. videos
  266. */
  267. video {
  268. height: auto;
  269. max-width: 100%;
  270. }
  271. }
  272. .icon-with-content {
  273. display: flex;
  274. h2,
  275. h3,
  276. h4 {
  277. margin-top: 15px;
  278. }
  279. .icon-container {
  280. background-color: @green-10;
  281. padding: 7.5px;
  282. height: 56px;
  283. width: 56px;
  284. border-radius: 50%;
  285. margin-right: 24px;
  286. .icon-inner-container {
  287. align-items: center;
  288. border: @green-30 3.5px solid;
  289. border-radius: 50%;
  290. display: flex;
  291. justify-content: center;
  292. height: 42px;
  293. width: 42px;
  294. }
  295. i {
  296. color: @green;
  297. font-size: 21px;
  298. }
  299. }
  300. }