templates-v2.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. .template-title {
  2. margin-bottom: @margin-xl;
  3. }
  4. .field-title {
  5. font-weight: bold;
  6. }
  7. .filters {
  8. float: right;
  9. margin-bottom: @margin-lg;
  10. @media (max-width: @screen-md-min) {
  11. float: none;
  12. }
  13. }
  14. .cta-links {
  15. .cta-link.btn {
  16. margin: 0 @margin-sm @margin-sm 0;
  17. }
  18. }
  19. .popular-tags {
  20. .template-thumbnail {
  21. margin: 0 0 1em 0!important;
  22. }
  23. }
  24. .tag-link {
  25. margin: 0 @margin-xs @margin-sm 0;
  26. max-width: 100%;
  27. white-space: inherit;
  28. }
  29. .template-abstract {
  30. word-break: break-word;
  31. hyphens: auto;
  32. a {
  33. hyphens: none;
  34. }
  35. }
  36. .template-thumbnail {
  37. display: inline-block;
  38. margin: 0 0 2em;
  39. width: 100%;
  40. .thumbnail {
  41. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  42. margin: 0 0 @margin-sm 0;
  43. padding:0px;
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. overflow: hidden;
  48. width: 100%;
  49. h3 {
  50. color:@link-color;
  51. margin: 10px 0px 10px 20px;
  52. }
  53. &.thumbnail-tag {
  54. height: 100px;
  55. }
  56. }
  57. .caption {
  58. // Override ShareLatex template styles
  59. background: none;
  60. border: none;
  61. text-align: center;
  62. }
  63. .caption__description {
  64. font-style: italic;
  65. padding: 0 0 5px 0;
  66. .text-overflow();
  67. }
  68. .caption__title {
  69. display: inline-block;
  70. width: 100%;
  71. text-align: center;
  72. .text-overflow();
  73. }
  74. }
  75. .template-large-pdf-preview {
  76. border: solid 1px @gray-lightest;
  77. margin-top: @margin-lg;
  78. }
  79. /* Media Queries */
  80. @media (max-width: @screen-xs-max) {
  81. .templates-container {
  82. column-count: 2;
  83. column-gap: 2em;
  84. }
  85. }
  86. @media (min-width: @screen-sm-min) {
  87. .templates-container {
  88. &.use-column {
  89. column-count: 3;
  90. column-gap: 3em;
  91. }
  92. &.use-percent {
  93. margin: 0 -1.5em;
  94. .template-thumbnail {
  95. width: 33.3333333%;
  96. padding: 0 1.5em;
  97. }
  98. }
  99. }
  100. }
  101. @media (min-width: @screen-md-min) {
  102. .template-large-pdf-preview {
  103. margin-top: 0;
  104. }
  105. }
  106. .section-tags {
  107. margin-bottom: @margin-xl;
  108. margin-top: @margin-md;
  109. }
  110. .search__container--addsearch {
  111. .search__input-bar {
  112. display: flex;
  113. }
  114. .search__input {
  115. flex: 1;
  116. margin-right: 10px;
  117. padding: 0 10px;
  118. }
  119. // AddSearch overrides
  120. #addsearch-results {
  121. min-height: 0 !important;
  122. .addsearch-result-item-container {
  123. background-size: auto 80px !important; // Resize image to be smaller
  124. padding: 10px;
  125. margin-left: 10px;
  126. margin-right: 10px;
  127. border-bottom: 2px solid rgb(236, 236, 236);
  128. }
  129. .addsearch-result-item-sub {
  130. min-height: 0 !important;
  131. background: none !important;
  132. border-bottom: none !important;
  133. h2 {
  134. font-family: @font-family-sans-serif;
  135. }
  136. // Unfortunately AddSearch doesn't add very useful classes, so have to use
  137. // some horrible nesting :/
  138. & > div {
  139. min-height: 0 !important;
  140. padding-left: 90px !important;
  141. // Hide some unnecessary metadata
  142. span {
  143. display: none !important;
  144. }
  145. }
  146. a {
  147. color: @ol-green !important;
  148. }
  149. &:hover a {
  150. color: @ol-dark-green !important;
  151. }
  152. }
  153. }
  154. #addsearch-results-bottom {
  155. height: auto !important;
  156. background: none !important;
  157. padding-top: 0 !important;
  158. #addsearch-rp-paging {
  159. margin-bottom: 10px;
  160. a {
  161. color: @ol-green !important;
  162. &.currentResultPage {
  163. color: @ol-blue-gray-5 !important;
  164. }
  165. }
  166. }
  167. }
  168. #addsearch-logo {
  169. display: none !important;
  170. }
  171. }