cms-page.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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, td {
  95. border: 1px solid @gray-lighter;
  96. padding: @padding-sm;
  97. text-align: center;
  98. word-break: normal;
  99. }
  100. }
  101. }
  102. .table-styled, .features-table {
  103. .fa-check-square, .fa-check {
  104. color: @ol-green;
  105. }
  106. }
  107. .features-table {
  108. background: white;
  109. max-width: none;
  110. th, td {
  111. border: 1px solid @gray-lighter;
  112. hyphens: auto;
  113. padding: @padding-sm;
  114. text-align: center;
  115. }
  116. th, td {
  117. width: 20%;
  118. }
  119. .btn {
  120. max-width: 100%;
  121. white-space: pre-wrap;
  122. word-wrap: break-word;
  123. }
  124. &.left-align-first-col {
  125. td, th {
  126. text-align: left;
  127. }
  128. td + td,
  129. th + th {
  130. text-align: center;
  131. }
  132. }
  133. .hidden-row-above-xs {
  134. display: none;
  135. }
  136. @media screen and (max-width: @screen-xs-max) {
  137. tbody, thead {
  138. display: block;
  139. }
  140. tr {
  141. display: flex;
  142. flex-flow: row wrap;
  143. justify-content: space-around;
  144. }
  145. td, th {
  146. display: block;
  147. width: 25%;
  148. }
  149. tr:first-child {
  150. th {
  151. width: 50%;
  152. }
  153. th:first-child {
  154. width: 100%;
  155. }
  156. }
  157. td:first-child {
  158. text-align: center;
  159. background: #efefef;
  160. width: 100%;
  161. }
  162. .hidden-row-xs {
  163. display: none;
  164. }
  165. .hidden-row-above-xs {
  166. display: flex;
  167. }
  168. .table-header {
  169. text-align: center;
  170. }
  171. }
  172. }
  173. /*
  174. universities page
  175. */
  176. #universities-container {
  177. padding: @padding-md;
  178. width: 100%;
  179. .row {
  180. border-bottom: 1px solid @gray-lightest;
  181. div {
  182. padding: @padding-md;
  183. vertical-align: middle;
  184. }
  185. }
  186. .row:first-child {
  187. // parent container contains padding
  188. div {
  189. padding-top: 0;
  190. }
  191. }
  192. .row:last-child {
  193. border: 0;
  194. // parent container contains padding
  195. div {
  196. border: 0;
  197. padding-bottom: 0;
  198. }
  199. }
  200. p {
  201. margin: 0 auto;
  202. width: 100%;
  203. }
  204. // Logos
  205. .uni-logo {
  206. margin: 0 auto;
  207. max-height: 55px;
  208. min-width: 55px;
  209. }
  210. .university-claim-btn {
  211. text-align: center;
  212. }
  213. @media only screen and (min-width: @screen-xs-min) {
  214. display: table;
  215. table-layout: fixed;
  216. .row {
  217. display: table-row;
  218. div {
  219. border-bottom: 1px solid @gray-lightest;
  220. display: table-cell;
  221. float: none;
  222. }
  223. }
  224. }
  225. }
  226. /*
  227. videos
  228. */
  229. video {
  230. height: auto;
  231. max-width: 100%;
  232. }
  233. }