detail.less 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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. .ltr-left(56.75rem) !important;
  6. .ltr-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. .ltr-left(60rem);
  16. .ltr-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. height: inherit;
  38. max-width: 100%;
  39. min-height: inherit;
  40. max-height: calc(100vh - 25rem - 7rem);
  41. background: inherit;
  42. }
  43. }
  44. .result-images-labels {
  45. color: var(--color-result-detail-font);
  46. height: 19rem;
  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. margin-bottom: 0;
  57. }
  58. p {
  59. color: var(--color-result-detail-label-font);
  60. font-size: 0.9rem;
  61. white-space: nowrap;
  62. text-overflow: ellipsis;
  63. overflow: hidden;
  64. margin: 0.8rem 0;
  65. span {
  66. display: inline-block;
  67. width: 12rem;
  68. }
  69. }
  70. h4,
  71. p,
  72. a {
  73. .ltr-text-align-left();
  74. }
  75. p.result-content {
  76. height: 2rem;
  77. line-height: unset;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. }
  81. p.result-url {
  82. white-space: nowrap;
  83. overflow: hidden hidden;
  84. text-overflow: ellipsis;
  85. }
  86. p.result-content:hover,
  87. p.result-url:hover {
  88. position: relative;
  89. overflow: inherit !important;
  90. background: var(--color-result-detail-background);
  91. text-overflow: inherit !important;
  92. }
  93. a,
  94. a:visited,
  95. a:hover,
  96. a:active {
  97. color: var(--color-result-detail-link);
  98. }
  99. a:hover {
  100. text-decoration: underline;
  101. }
  102. }
  103. a.result-detail-close {
  104. top: 1rem;
  105. .ltr-left(1rem);
  106. padding: 0.4rem;
  107. }
  108. a.result-detail-previous {
  109. top: 1rem;
  110. .ltr-right(6rem);
  111. // center the icon by moving it slightly on the left
  112. padding-top: 0.4rem;
  113. .ltr-padding-right(0.5rem);
  114. padding-bottom: 0.4rem;
  115. .ltr-padding-left(0.3rem);
  116. }
  117. a.result-detail-next {
  118. top: 1rem;
  119. .ltr-right(2rem);
  120. padding: 0.4rem;
  121. }
  122. a.result-detail-close,
  123. a.result-detail-next,
  124. a.result-detail-previous {
  125. border-radius: 50%;
  126. display: block;
  127. width: 1.5rem;
  128. height: 1.5rem;
  129. position: absolute;
  130. filter: opacity(40%);
  131. z-index: 2000002;
  132. span {
  133. display: block;
  134. width: 1.5rem;
  135. height: 1.5rem;
  136. text-align: center;
  137. }
  138. }
  139. a.result-detail-next,
  140. a.result-detail-previous {
  141. span::before {
  142. // vertical center small icons
  143. vertical-align: sub;
  144. }
  145. }
  146. a.result-detail-close,
  147. a.result-detail-close:visited,
  148. a.result-detail-close:hover,
  149. a.result-detail-close:active,
  150. a.result-detail-previous,
  151. a.result-detail-previous:visited,
  152. a.result-detail-previous:hover,
  153. a.result-detail-previous:active,
  154. a.result-detail-next,
  155. a.result-detail-next:visited,
  156. a.result-detail-next:hover,
  157. a.result-detail-next:active {
  158. color: var(--color-result-detail-font);
  159. background: var(--color-result-detail-background);
  160. border: 1px solid var(--color-result-detail-font);
  161. }
  162. a.result-detail-close:focus,
  163. a.result-detail-close:hover,
  164. a.result-detail-previous:focus,
  165. a.result-detail-previous:hover,
  166. a.result-detail-next:focus,
  167. a.result-detail-next:hover {
  168. filter: opacity(80%);
  169. }
  170. .loader {
  171. position: absolute;
  172. top: 1rem;
  173. .ltr-right(50%);
  174. border-top: 0.5em solid var(--color-result-detail-loader-border);
  175. border-right: 0.5em solid var(--color-result-detail-loader-border);
  176. border-bottom: 0.5em solid var(--color-result-detail-loader-border);
  177. border-left: 0.5em solid var(--color-result-detail-loader-borderleft);
  178. }
  179. }
  180. #results.image-detail-open.scrolling article.result-images[data-vim-selected] .detail {
  181. top: 0;
  182. a.result-images-source img {
  183. max-height: calc(100vh - 25rem);
  184. }
  185. }
  186. @media screen and (max-width: @tablet) {
  187. #results.image-detail-open article.result-images[data-vim-selected] .detail {
  188. top: 0;
  189. .ltr-left(0);
  190. a.result-images-source {
  191. display: flex;
  192. flex-direction: column;
  193. justify-content: center;
  194. img {
  195. width: 100%;
  196. max-height: calc(100vh - 24rem);
  197. }
  198. }
  199. a.result-detail-next {
  200. .ltr-right(1rem);
  201. }
  202. }
  203. }
  204. @media screen and (max-width: @phone) {
  205. #results.image-detail-open article.result-images[data-vim-selected] .detail {
  206. top: 0;
  207. .ltr-left(0);
  208. padding: 1rem;
  209. a.result-images-source img {
  210. width: 100%;
  211. max-height: calc(100vh - 20rem);
  212. margin: 0;
  213. }
  214. .result-images-labels p span {
  215. width: inherit;
  216. .ltr-margin-right(1rem);
  217. }
  218. }
  219. }