cms-page.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /*
  2. v2
  3. CMS Generated Pages,
  4. including About and Blog
  5. */
  6. .cms-page {
  7. img {
  8. height: auto;
  9. max-width: 100%;
  10. }
  11. .btn-description {
  12. margin-right: @margin-sm;
  13. }
  14. .tab-content {
  15. float: left;
  16. width: 100%;
  17. }
  18. /*
  19. When on preview mode
  20. */
  21. .cms-preview {
  22. background-color: @blue;
  23. color: white;
  24. font-weight: bold;
  25. height: @navbar-padding-vertical;
  26. left: 0;
  27. line-height: @navbar-padding-vertical;
  28. opacity: 0.8;
  29. position: fixed;
  30. text-align: center;
  31. top: 0;
  32. width: 100%;
  33. z-index: 1;
  34. &:after {
  35. content: 'Preview';
  36. width: 100%;
  37. top: 0;
  38. left: 0;
  39. }
  40. }
  41. /*
  42. All content from CMS is in .row-spaced.
  43. Margin below is to fix extra whitespace for first rows
  44. */
  45. .container > .row:nth-child(2), .content-container > .row:first-child {
  46. //- .container first child is page header, don't correct margin
  47. margin-top: 0;
  48. }
  49. .tab-pane {
  50. .row:first-child {
  51. margin-top: 0;
  52. }
  53. }
  54. /*
  55. quotes
  56. */
  57. blockquote {
  58. /*
  59. type.less sets <p> inline, so that quotation mark is inline
  60. but sometimes we have multiple <p>,
  61. so hide quotation mark from type.less and add one here
  62. */
  63. &:before {
  64. /* hide quotation from type.less */
  65. display: none;
  66. }
  67. p {
  68. display: block;
  69. }
  70. p:first-child {
  71. /* below copied from type.less */
  72. &:before {
  73. content: open-quote;
  74. font-size: @blockquote-font-size * 3;
  75. color: @blockquote-border-color;
  76. margin-right: 0.25em;
  77. vertical-align: -0.4em;
  78. line-height: 0.1em;
  79. }
  80. }
  81. }
  82. .quote-full-width {
  83. img {
  84. margin-right: @margin-sm;
  85. margin-bottom: @margin-sm;
  86. }
  87. }
  88. /*
  89. universities page
  90. */
  91. #universities-container {
  92. display: table;
  93. padding: @padding-md;
  94. width: 100%;
  95. .row {
  96. display: table-row;
  97. div {
  98. border-bottom: 1px solid @gray-lightest;
  99. display: table-cell;
  100. float: none;
  101. padding: @padding-md;
  102. vertical-align: middle;
  103. }
  104. }
  105. .row:first-child {
  106. // parent container contains padding
  107. div {
  108. padding-top: 0;
  109. }
  110. }
  111. .row:last-child {
  112. // parent container contains padding
  113. div {
  114. border: 0;
  115. padding-bottom: 0;
  116. }
  117. }
  118. p {
  119. margin: 0 auto;
  120. width: 100%;
  121. }
  122. // Logos
  123. .uni-logo {
  124. margin: 0 auto;
  125. max-height: 55px;
  126. min-width: 55px;
  127. }
  128. .university-claim-btn {
  129. text-align: center;
  130. }
  131. }
  132. /*
  133. videos
  134. */
  135. video {
  136. height: auto;
  137. max-width: 100%;
  138. }
  139. }