templates-v2.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. .gallery-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. .gallery-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. .gallery-abstract {
  30. word-break: break-word;
  31. hyphens: auto;
  32. a {
  33. hyphens: none;
  34. }
  35. }
  36. .gallery-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-alt;
  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. .gallery-large-pdf-preview {
  76. border: solid 1px @gray-lightest;
  77. margin-top: @margin-lg;
  78. img {
  79. max-width: 100%;
  80. }
  81. }
  82. /* Media Queries */
  83. @media (max-width: @screen-xs-max) {
  84. .gallery-container {
  85. column-count: 2;
  86. column-gap: 2em;
  87. }
  88. }
  89. @media (min-width: @screen-sm-min) {
  90. .gallery-container {
  91. &.use-column {
  92. column-count: 3;
  93. column-gap: 3em;
  94. }
  95. &.use-percent {
  96. margin: 0 -1.5em;
  97. .gallery-thumbnail {
  98. width: 33.3333333%;
  99. padding: 0 1.5em;
  100. }
  101. }
  102. }
  103. }
  104. @media (min-width: @screen-md-min) {
  105. .gallery-large-pdf-preview {
  106. margin-top: 0;
  107. }
  108. }
  109. .section-tags {
  110. margin-bottom: @margin-xl;
  111. margin-top: @margin-md;
  112. }
  113. .search__container--addsearch {
  114. .search__input-bar {
  115. display: flex;
  116. }
  117. .search__input {
  118. flex: 1;
  119. margin-right: 10px;
  120. padding: 0 10px;
  121. }
  122. // AddSearch overrides
  123. #addsearch-results {
  124. min-height: 0 !important;
  125. .addsearch-result-item-container {
  126. background-size: auto 80px !important; // Resize image to be smaller
  127. padding: 10px;
  128. margin-left: 10px;
  129. margin-right: 10px;
  130. border-bottom: 2px solid rgb(236, 236, 236);
  131. }
  132. .addsearch-result-item-sub {
  133. min-height: 0 !important;
  134. background: none !important;
  135. border-bottom: none !important;
  136. h2 {
  137. font-family: @font-family-sans-serif;
  138. }
  139. // Unfortunately AddSearch doesn't add very useful classes, so have to use
  140. // some horrible nesting :/
  141. & > div {
  142. min-height: 0 !important;
  143. padding-left: 90px !important;
  144. // Hide some unnecessary metadata
  145. span {
  146. display: none !important;
  147. }
  148. }
  149. a {
  150. color: @link-color-alt !important;
  151. }
  152. &:hover a {
  153. color: @link-hover-color-alt !important;
  154. }
  155. }
  156. }
  157. #addsearch-results-bottom {
  158. height: auto !important;
  159. background: none !important;
  160. padding-top: 0 !important;
  161. #addsearch-rp-paging {
  162. margin-bottom: 10px;
  163. a {
  164. color: @link-color-alt !important;
  165. &.currentResultPage {
  166. color: @ol-blue-gray-5 !important;
  167. }
  168. }
  169. }
  170. }
  171. #addsearch-logo {
  172. display: none !important;
  173. }
  174. }