index.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. .ant-image {
  4. position: relative;
  5. display: inline-block;
  6. }
  7. .ant-image-img {
  8. width: 100%;
  9. height: auto;
  10. vertical-align: middle;
  11. }
  12. .ant-image-img-placeholder {
  13. background-color: #f5f5f5;
  14. background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=');
  15. background-repeat: no-repeat;
  16. background-position: center center;
  17. background-size: 30%;
  18. }
  19. .ant-image-mask {
  20. position: absolute;
  21. top: 0;
  22. right: 0;
  23. bottom: 0;
  24. left: 0;
  25. display: flex;
  26. align-items: center;
  27. justify-content: center;
  28. color: #fff;
  29. background: rgba(0, 0, 0, 0.5);
  30. cursor: pointer;
  31. opacity: 0;
  32. transition: opacity 0.3s;
  33. }
  34. .ant-image-mask-info {
  35. padding: 0 4px;
  36. overflow: hidden;
  37. white-space: nowrap;
  38. text-overflow: ellipsis;
  39. }
  40. .ant-image-mask-info .anticon {
  41. margin-inline-end: 4px;
  42. }
  43. .ant-image-mask:hover {
  44. opacity: 1;
  45. }
  46. .ant-image-placeholder {
  47. position: absolute;
  48. top: 0;
  49. right: 0;
  50. bottom: 0;
  51. left: 0;
  52. }
  53. .ant-image-preview {
  54. pointer-events: none;
  55. height: 100%;
  56. text-align: center;
  57. }
  58. .ant-image-preview.ant-zoom-enter,
  59. .ant-image-preview.ant-zoom-appear {
  60. transform: none;
  61. opacity: 0;
  62. animation-duration: 0.3s;
  63. user-select: none;
  64. }
  65. .ant-image-preview-mask {
  66. position: fixed;
  67. top: 0;
  68. right: 0;
  69. bottom: 0;
  70. left: 0;
  71. z-index: 1000;
  72. height: 100%;
  73. background-color: rgba(0, 0, 0, 0.45);
  74. }
  75. .ant-image-preview-mask-hidden {
  76. display: none;
  77. }
  78. .ant-image-preview-wrap {
  79. position: fixed;
  80. top: 0;
  81. right: 0;
  82. bottom: 0;
  83. left: 0;
  84. overflow: auto;
  85. outline: 0;
  86. }
  87. .ant-image-preview-body {
  88. position: absolute;
  89. top: 0;
  90. right: 0;
  91. bottom: 0;
  92. left: 0;
  93. overflow: hidden;
  94. }
  95. .ant-image-preview-img {
  96. max-width: 100%;
  97. max-height: 100%;
  98. vertical-align: middle;
  99. transform: scale3d(1, 1, 1);
  100. cursor: grab;
  101. transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  102. user-select: none;
  103. pointer-events: auto;
  104. }
  105. .ant-image-preview-img-wrapper {
  106. position: absolute;
  107. top: 0;
  108. right: 0;
  109. bottom: 0;
  110. left: 0;
  111. transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  112. }
  113. .ant-image-preview-img-wrapper::before {
  114. display: inline-block;
  115. width: 1px;
  116. height: 50%;
  117. margin-right: -1px;
  118. content: '';
  119. }
  120. .ant-image-preview-moving .ant-image-preview-img {
  121. cursor: grabbing;
  122. }
  123. .ant-image-preview-moving .ant-image-preview-img-wrapper {
  124. transition-duration: 0s;
  125. }
  126. .ant-image-preview-wrap {
  127. z-index: 1080;
  128. }
  129. .ant-image-preview-operations-wrapper {
  130. position: fixed;
  131. top: 0;
  132. right: 0;
  133. z-index: 1081;
  134. width: 100%;
  135. }
  136. .ant-image-preview-operations {
  137. box-sizing: border-box;
  138. margin: 0;
  139. padding: 0;
  140. color: rgba(0, 0, 0, 0.85);
  141. font-size: 14px;
  142. font-variant: tabular-nums;
  143. line-height: 1.5715;
  144. font-feature-settings: 'tnum';
  145. display: flex;
  146. flex-direction: row-reverse;
  147. align-items: center;
  148. color: rgba(255, 255, 255, 0.85);
  149. list-style: none;
  150. background: rgba(0, 0, 0, 0.1);
  151. pointer-events: auto;
  152. }
  153. .ant-image-preview-operations-operation {
  154. margin-left: 12px;
  155. padding: 12px;
  156. cursor: pointer;
  157. transition: all 0.3s;
  158. }
  159. .ant-image-preview-operations-operation:hover {
  160. background: rgba(0, 0, 0, 0.2);
  161. }
  162. .ant-image-preview-operations-operation-disabled {
  163. color: rgba(255, 255, 255, 0.25);
  164. pointer-events: none;
  165. }
  166. .ant-image-preview-operations-operation:last-of-type {
  167. margin-left: 0;
  168. }
  169. .ant-image-preview-operations-progress {
  170. position: absolute;
  171. left: 50%;
  172. transform: translateX(-50%);
  173. }
  174. .ant-image-preview-operations-icon {
  175. font-size: 18px;
  176. }
  177. .ant-image-preview-switch-left,
  178. .ant-image-preview-switch-right {
  179. position: fixed;
  180. top: 50%;
  181. right: 8px;
  182. z-index: 1081;
  183. display: flex;
  184. align-items: center;
  185. justify-content: center;
  186. width: 44px;
  187. height: 44px;
  188. color: rgba(255, 255, 255, 0.85);
  189. background: rgba(0, 0, 0, 0.1);
  190. border-radius: 50%;
  191. transform: translateY(-50%);
  192. cursor: pointer;
  193. transition: all 0.3s;
  194. pointer-events: auto;
  195. }
  196. .ant-image-preview-switch-left:hover,
  197. .ant-image-preview-switch-right:hover {
  198. background: rgba(0, 0, 0, 0.2);
  199. }
  200. .ant-image-preview-switch-left-disabled,
  201. .ant-image-preview-switch-right-disabled,
  202. .ant-image-preview-switch-left-disabled:hover,
  203. .ant-image-preview-switch-right-disabled:hover {
  204. color: rgba(255, 255, 255, 0.25);
  205. background: rgba(0, 0, 0, 0.1);
  206. cursor: not-allowed;
  207. }
  208. .ant-image-preview-switch-left-disabled > .anticon,
  209. .ant-image-preview-switch-right-disabled > .anticon,
  210. .ant-image-preview-switch-left-disabled:hover > .anticon,
  211. .ant-image-preview-switch-right-disabled:hover > .anticon {
  212. cursor: not-allowed;
  213. }
  214. .ant-image-preview-switch-left > .anticon,
  215. .ant-image-preview-switch-right > .anticon {
  216. font-size: 18px;
  217. }
  218. .ant-image-preview-switch-left {
  219. left: 8px;
  220. }
  221. .ant-image-preview-switch-right {
  222. right: 8px;
  223. }
  224. .ant-image-preview-focus-trap {
  225. width: 0;
  226. height: 0;
  227. overflow: hidden;
  228. outline: none;
  229. }
  230. .cdk-overlay-backdrop.ant-image-preview-mask {
  231. opacity: 1;
  232. }
  233. .cdk-global-overlay-wrapper[dir='rtl'] .ant-image-preview-switch-left {
  234. right: 10px;
  235. left: unset;
  236. rotate: 180deg;
  237. }
  238. .cdk-global-overlay-wrapper[dir='rtl'] .ant-image-preview-switch-right {
  239. right: unset;
  240. left: 10px;
  241. rotate: 180deg;
  242. }