detail.less 5.3 KB

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