cms-page.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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: 0;
  20. width: 100%;
  21. }
  22. /*
  23. When on preview mode
  24. */
  25. .cms-preview {
  26. background-color: @blue;
  27. color: white;
  28. font-weight: bold;
  29. height: @navbar-padding-vertical;
  30. left: 0;
  31. line-height: @navbar-padding-vertical;
  32. opacity: 0.8;
  33. position: fixed;
  34. text-align: center;
  35. top: 0;
  36. width: 100%;
  37. z-index: 1;
  38. &:after {
  39. content: 'Preview';
  40. width: 100%;
  41. top: 0;
  42. left: 0;
  43. }
  44. }
  45. .tab-pane {
  46. .row:first-child {
  47. margin-top: 0;
  48. }
  49. }
  50. /*
  51. quotes
  52. */
  53. blockquote {
  54. margin: 0;
  55. /*
  56. type.less sets <p> inline, so that quotation mark is inline
  57. but sometimes we have multiple <p>,
  58. so hide quotation mark from type.less and add one here
  59. */
  60. &:before {
  61. /* hide quotation from type.less */
  62. display: none;
  63. }
  64. p {
  65. display: block;
  66. }
  67. p:first-child {
  68. /* below copied from type.less */
  69. &:before {
  70. content: open-quote;
  71. font-size: @blockquote-font-size * 3;
  72. color: @blockquote-border-color;
  73. margin-right: 0.25em;
  74. vertical-align: -0.4em;
  75. line-height: 0.1em;
  76. }
  77. }
  78. }
  79. .quote-full-width {
  80. img {
  81. margin-right: @margin-sm;
  82. margin-bottom: @margin-sm;
  83. }
  84. }
  85. /*
  86. Tables
  87. */
  88. .table-styled {
  89. overflow: hidden;
  90. overflow-x: auto;
  91. table {
  92. background: white;
  93. max-width: none;
  94. th,
  95. td {
  96. border: 1px solid @gray-lighter;
  97. padding: @padding-sm;
  98. text-align: center;
  99. word-break: normal;
  100. }
  101. }
  102. }
  103. .table-styled,
  104. .features-table {
  105. .fa-check-square,
  106. .fa-check {
  107. color: @ol-green;
  108. }
  109. }
  110. .features-table {
  111. background: white;
  112. max-width: none;
  113. th,
  114. td {
  115. border: 1px solid @gray-lighter;
  116. hyphens: auto;
  117. padding: @padding-sm;
  118. text-align: center;
  119. }
  120. th,
  121. td {
  122. width: 20%;
  123. }
  124. .btn {
  125. max-width: 100%;
  126. white-space: pre-wrap;
  127. word-wrap: break-word;
  128. }
  129. &.left-align-first-col {
  130. td,
  131. th {
  132. text-align: left;
  133. }
  134. td + td,
  135. th + th {
  136. text-align: center;
  137. }
  138. }
  139. .hidden-row-above-xs {
  140. display: none;
  141. }
  142. @media screen and (max-width: @screen-xs-max) {
  143. tbody,
  144. thead {
  145. display: block;
  146. }
  147. tr {
  148. display: flex;
  149. flex-flow: row wrap;
  150. justify-content: space-around;
  151. }
  152. td,
  153. th {
  154. display: block;
  155. width: 25%;
  156. }
  157. tr:first-child {
  158. th {
  159. width: 50%;
  160. }
  161. th:first-child {
  162. width: 100%;
  163. }
  164. }
  165. td:first-child {
  166. text-align: center;
  167. background: #efefef;
  168. width: 100%;
  169. }
  170. .hidden-row-xs {
  171. display: none;
  172. }
  173. .hidden-row-above-xs {
  174. display: flex;
  175. }
  176. .table-header {
  177. text-align: center;
  178. }
  179. }
  180. }
  181. /*
  182. universities page
  183. */
  184. #universities-container {
  185. padding: @padding-md;
  186. width: 100%;
  187. .row {
  188. border-bottom: 1px solid @gray-lightest;
  189. div {
  190. padding: @padding-md;
  191. vertical-align: middle;
  192. }
  193. }
  194. .row:first-child {
  195. // parent container contains padding
  196. div {
  197. padding-top: 0;
  198. }
  199. }
  200. .row:last-child {
  201. border: 0;
  202. // parent container contains padding
  203. div {
  204. border: 0;
  205. padding-bottom: 0;
  206. }
  207. }
  208. p {
  209. margin: 0 auto;
  210. width: 100%;
  211. }
  212. // Logos
  213. .uni-logo {
  214. margin: 0 auto;
  215. max-height: 55px;
  216. min-width: 55px;
  217. }
  218. .university-claim-btn {
  219. text-align: center;
  220. }
  221. @media only screen and (min-width: @screen-xs-min) {
  222. display: table;
  223. table-layout: fixed;
  224. .row {
  225. display: table-row;
  226. div {
  227. border-bottom: 1px solid @gray-lightest;
  228. display: table-cell;
  229. float: none;
  230. }
  231. }
  232. }
  233. }
  234. /*
  235. videos
  236. */
  237. video {
  238. height: auto;
  239. max-width: 100%;
  240. }
  241. }