detail.less 5.1 KB

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