cms-page.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. /*
  57. type.less sets <p> inline, so that quotation mark is inline
  58. but sometimes we have multiple <p>,
  59. so hide quotation mark from type.less and add one here
  60. */
  61. &:before {
  62. /* hide quotation from type.less */
  63. display: none;
  64. }
  65. p {
  66. display: block;
  67. }
  68. p:first-child {
  69. /* below copied from type.less */
  70. &:before {
  71. content: open-quote;
  72. font-size: @blockquote-font-size * 3;
  73. color: @blockquote-border-color;
  74. margin-right: 0.25em;
  75. vertical-align: -0.4em;
  76. line-height: 0.1em;
  77. }
  78. }
  79. }
  80. .quote-full-width {
  81. img {
  82. margin-right: @margin-sm;
  83. margin-bottom: @margin-sm;
  84. }
  85. }
  86. /*
  87. Tables
  88. */
  89. .table-styled {
  90. overflow: hidden;
  91. overflow-x: auto;
  92. table {
  93. background: white;
  94. max-width: none;
  95. th,
  96. td {
  97. border: 1px solid @gray-lighter;
  98. padding: @padding-sm;
  99. text-align: center;
  100. word-break: normal;
  101. }
  102. }
  103. }
  104. .table-styled,
  105. .features-table {
  106. .fa-check-square,
  107. .fa-check {
  108. color: @ol-green;
  109. }
  110. }
  111. .features-table {
  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. width: 100%;
  168. }
  169. .hidden-row-xs {
  170. display: none;
  171. }
  172. .hidden-row-above-xs {
  173. display: flex;
  174. }
  175. .table-header {
  176. text-align: center;
  177. }
  178. }
  179. }
  180. /*
  181. universities page
  182. */
  183. #universities-container {
  184. padding: @padding-md;
  185. width: 100%;
  186. .row {
  187. border-bottom: 1px solid @gray-lightest;
  188. div {
  189. padding: @padding-md;
  190. vertical-align: middle;
  191. }
  192. }
  193. .row:first-child {
  194. // parent container contains padding
  195. div {
  196. padding-top: 0;
  197. }
  198. }
  199. .row:last-child {
  200. border: 0;
  201. // parent container contains padding
  202. div {
  203. border: 0;
  204. padding-bottom: 0;
  205. }
  206. }
  207. p {
  208. margin: 0 auto;
  209. width: 100%;
  210. }
  211. // Logos
  212. .uni-logo {
  213. margin: 0 auto;
  214. max-height: 55px;
  215. min-width: 55px;
  216. }
  217. .university-claim-btn {
  218. text-align: center;
  219. }
  220. @media only screen and (min-width: @screen-xs-min) {
  221. display: table;
  222. table-layout: fixed;
  223. .row {
  224. display: table-row;
  225. div {
  226. border-bottom: 1px solid @gray-lightest;
  227. display: table-cell;
  228. float: none;
  229. }
  230. }
  231. }
  232. }
  233. /*
  234. videos
  235. */
  236. video {
  237. height: auto;
  238. max-width: 100%;
  239. }
  240. }