cms-page.less 4.2 KB

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