detail.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. #main_results #results.image-detail-open.only_template_images {
  2. width: min(98%, 59.25rem) !important;
  3. }
  4. #main_results #results.only_template_images.image-detail-open #backToTop {
  5. left: 56.75rem !important;
  6. right: inherit;
  7. }
  8. article.result-images .detail {
  9. display: none;
  10. }
  11. #results.image-detail-open article.result-images[data-vim-selected] .detail {
  12. display: flex;
  13. flex-direction: column;
  14. position: fixed;
  15. left: 60rem;
  16. right: 0;
  17. top: @search-height;
  18. transition: top 0.064s ease-in 0s;
  19. bottom: 0;
  20. background: var(--color-result-detail-background);
  21. border: 1px solid var(--color-result-detail-background);
  22. z-index: 10000;
  23. padding: 4rem 3rem 3rem 3rem;
  24. a.result-images-source {
  25. display: block;
  26. flex: 1;
  27. text-align: left;
  28. width: 100%;
  29. border: none;
  30. text-decoration: none;
  31. img {
  32. padding: 0;
  33. margin: 0;
  34. border: none;
  35. object-fit: contain;
  36. width: inherit;
  37. max-width: 100%;
  38. min-height: inherit;
  39. max-height: calc(100vh - 25rem - 7rem);
  40. background: inherit;
  41. }
  42. }
  43. .result-images-labels {
  44. color: var(--color-result-detail-font);
  45. max-height: 16rem;
  46. min-height: 16rem;
  47. hr {
  48. border-top: 1px solid var(--color-result-detail-hr);
  49. border-bottom: none;
  50. }
  51. h4 {
  52. height: 2rem;
  53. overflow: hidden;
  54. text-overflow: ellipsis;
  55. font-size: 0.9rem;
  56. }
  57. p {
  58. color: var(--color-result-detail-label-font);
  59. font-size: 0.9rem;
  60. span {
  61. display: inline-block;
  62. width: 12rem;
  63. }
  64. }
  65. h4,
  66. p,
  67. a {
  68. text-align: left;
  69. }
  70. p.result-content {
  71. height: 2rem;
  72. overflow: hidden;
  73. text-overflow: ellipsis;
  74. }
  75. p.result-url {
  76. white-space: nowrap;
  77. overflow-x: hidden;
  78. text-overflow: ellipsis;
  79. }
  80. p.result-content:hover,
  81. p.result-url:hover {
  82. position: relative;
  83. overflow: inherit !important;
  84. background: var(--color-result-detail-background);
  85. text-overflow: inherit !important;
  86. }
  87. a,
  88. a:visited,
  89. a:hover,
  90. a:active {
  91. color: var(--color-result-detail-link);
  92. }
  93. a:hover {
  94. text-decoration: underline;
  95. }
  96. }
  97. a.result-detail-close {
  98. top: 1rem;
  99. left: 1rem;
  100. padding: 0.4rem;
  101. }
  102. a.result-detail-previous {
  103. top: 1rem;
  104. right: 6rem;
  105. // center the icon by moving it slightly on the left
  106. padding: 0.4rem 0.5rem 0.4rem 0.3rem;
  107. }
  108. a.result-detail-next {
  109. top: 1rem;
  110. right: 2rem;
  111. padding: 0.4rem;
  112. }
  113. a.result-detail-close,
  114. a.result-detail-next,
  115. a.result-detail-previous {
  116. border-radius: 50%;
  117. display: block;
  118. width: 1.5rem;
  119. height: 1.5rem;
  120. position: absolute;
  121. filter: opacity(40%);
  122. z-index: 2000002;
  123. span {
  124. display: block;
  125. width: 1.5rem;
  126. height: 1.5rem;
  127. text-align: center;
  128. }
  129. }
  130. a.result-detail-next,
  131. a.result-detail-previous {
  132. span::before {
  133. // vertical center small icons
  134. vertical-align: sub;
  135. }
  136. }
  137. a.result-detail-close,
  138. a.result-detail-close:visited,
  139. a.result-detail-close:hover,
  140. a.result-detail-close:active,
  141. a.result-detail-previous,
  142. a.result-detail-previous:visited,
  143. a.result-detail-previous:hover,
  144. a.result-detail-previous:active,
  145. a.result-detail-next,
  146. a.result-detail-next:visited,
  147. a.result-detail-next:hover,
  148. a.result-detail-next:active {
  149. color: var(--color-result-detail-font);
  150. background: var(--color-result-detail-background);
  151. border: 1px solid var(--color-result-detail-font);
  152. }
  153. a.result-detail-close:focus,
  154. a.result-detail-close:hover,
  155. a.result-detail-previous:focus,
  156. a.result-detail-previous:hover,
  157. a.result-detail-next:focus,
  158. a.result-detail-next:hover {
  159. filter: opacity(80%);
  160. }
  161. .loader {
  162. position: absolute;
  163. top: 1rem;
  164. right: 50%;
  165. border-top: 0.5em solid var(--color-result-detail-loader-border);
  166. border-right: 0.5em solid var(--color-result-detail-loader-border);
  167. border-bottom: 0.5em solid var(--color-result-detail-loader-border);
  168. border-left: 0.5em solid var(--color-result-detail-loader-borderleft);
  169. }
  170. }
  171. #results.image-detail-open.scrolling article.result-images[data-vim-selected] .detail {
  172. top: 0;
  173. a.result-images-source img {
  174. max-height: calc(100vh - 25rem);
  175. }
  176. }
  177. @media screen and (max-width: @tablet) {
  178. #results.image-detail-open article.result-images[data-vim-selected] .detail {
  179. top: 0;
  180. left: 0;
  181. a.result-images-source {
  182. display: flex;
  183. flex-direction: column;
  184. justify-content: center;
  185. img {
  186. width: 100%;
  187. max-height: calc(100vh - 24rem);
  188. }
  189. }
  190. a.result-detail-next {
  191. right: 1rem;
  192. }
  193. }
  194. }
  195. @media screen and (max-width: @phone) {
  196. #results.image-detail-open article.result-images[data-vim-selected] .detail {
  197. top: 0;
  198. left: 0;
  199. padding: 1rem;
  200. a.result-images-source img {
  201. width: 100%;
  202. max-height: calc(100vh - 20rem);
  203. margin: 0;
  204. }
  205. .result-images-labels p span {
  206. width: inherit;
  207. margin-right: 1rem;
  208. }
  209. }
  210. }