index.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. @keyframes PhotoView__rotate {
  2. from {
  3. transform: rotate(0deg);
  4. }
  5. to {
  6. transform: rotate(360deg);
  7. }
  8. }
  9. @keyframes PhotoView__delayShow {
  10. 0%,
  11. 50% {
  12. opacity: 0;
  13. }
  14. 100% {
  15. opacity: 1;
  16. }
  17. }
  18. .PhotoView__Spinner {
  19. animation: PhotoView__delayShow 0.4s linear both;
  20. }
  21. .PhotoView__Spinner svg {
  22. animation: PhotoView__rotate 0.6s linear infinite;
  23. }
  24. .PhotoView__Photo {
  25. will-change: transform;
  26. cursor: grab;
  27. }
  28. .PhotoView__Photo:active {
  29. cursor: grabbing;
  30. }
  31. @keyframes PhotoView__animateIn {
  32. from {
  33. opacity: 0.4;
  34. transform: scale(0.2);
  35. }
  36. to {
  37. opacity: 1;
  38. transform: scale(1);
  39. }
  40. }
  41. @keyframes PhotoView__animateOut {
  42. from {
  43. opacity: 1;
  44. transform: scale(1);
  45. }
  46. to {
  47. opacity: 0;
  48. transform: scale(0.2);
  49. }
  50. }
  51. .PhotoView__animateIn {
  52. opacity: 0.4;
  53. animation: PhotoView__animateIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  54. }
  55. .PhotoView__animateOut {
  56. opacity: 1;
  57. animation: PhotoView__animateOut 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  58. }
  59. .PhotoView__PhotoWrap {
  60. position: absolute;
  61. top: 0;
  62. left: 0;
  63. display: flex;
  64. justify-content: center;
  65. align-items: center;
  66. width: 100%;
  67. height: 100%;
  68. z-index: 10;
  69. overflow: hidden;
  70. }
  71. .PhotoView__PhotoBox {
  72. display: flex;
  73. justify-content: center;
  74. align-items: center;
  75. width: 0;
  76. height: 0;
  77. }
  78. .PhotoView__PhotoMask {
  79. position: absolute;
  80. top: 0;
  81. left: 0;
  82. width: 100%;
  83. height: 100%;
  84. z-index: -1;
  85. }
  86. .PhotoView-SlideWrap {
  87. position: fixed;
  88. top: 0;
  89. left: 0;
  90. width: 100%;
  91. height: 100%;
  92. z-index: 2000;
  93. overflow: hidden;
  94. }
  95. @keyframes PhotoView__fade {
  96. from {
  97. opacity: 0;
  98. }
  99. to {
  100. opacity: 1;
  101. }
  102. }
  103. .PhotoView-PhotoSlider__clean .PhotoView-PhotoSlider__BannerWrap,
  104. .PhotoView-PhotoSlider__clean .PhotoView-PhotoSlider__ArrowLeft,
  105. .PhotoView-PhotoSlider__clean .PhotoView-PhotoSlider__ArrowRight,
  106. .PhotoView-PhotoSlider__clean .PhotoView-PhotoSlider__FooterWrap {
  107. opacity: 0;
  108. }
  109. .PhotoView-PhotoSlider__willClose .PhotoView-PhotoSlider__BannerWrap:hover {
  110. opacity: 0;
  111. }
  112. .PhotoView-PhotoSlider__Backdrop {
  113. position: absolute;
  114. top: 0;
  115. left: 0;
  116. width: 100%;
  117. height: 100%;
  118. background: rgba(0, 0, 0, 0.6);
  119. z-index: -1;
  120. }
  121. .PhotoView-PhotoSlider__fadeIn {
  122. opacity: 0;
  123. animation: PhotoView__fade 0.4s linear both;
  124. }
  125. .PhotoView-PhotoSlider__fadeOut {
  126. opacity: 0;
  127. animation: PhotoView__fade 0.4s linear both reverse;
  128. }
  129. .PhotoView-PhotoSlider__BannerWrap {
  130. position: absolute;
  131. left: 0;
  132. top: 0;
  133. display: flex;
  134. justify-content: space-between;
  135. align-items: center;
  136. width: 100%;
  137. height: 44px;
  138. color: white;
  139. background-color: rgba(0, 0, 0, 0.5);
  140. transition: opacity 0.2s ease-out;
  141. z-index: 20;
  142. }
  143. .PhotoView-PhotoSlider__BannerWrap:hover {
  144. opacity: 1;
  145. }
  146. .PhotoView-PhotoSlider__Counter {
  147. padding: 0 10px;
  148. font-size: 14px;
  149. opacity: 0.75;
  150. }
  151. .PhotoView-PhotoSlider__BannerRight {
  152. display: flex;
  153. align-items: center;
  154. height: 100%;
  155. }
  156. .PhotoView-PhotoSlider__toolbarIcon {
  157. box-sizing: border-box;
  158. padding: 10px;
  159. opacity: 0.75;
  160. cursor: pointer;
  161. transition: opacity 0.2s linear;
  162. }
  163. .PhotoView-PhotoSlider__toolbarIcon:hover {
  164. opacity: 1;
  165. }
  166. .PhotoView-PhotoSlider__ArrowLeft,
  167. .PhotoView-PhotoSlider__ArrowRight {
  168. position: absolute;
  169. top: 0;
  170. bottom: 0;
  171. display: flex;
  172. justify-content: center;
  173. align-items: center;
  174. width: 70px;
  175. height: 100px;
  176. margin: auto;
  177. opacity: 0.75;
  178. z-index: 20;
  179. cursor: pointer;
  180. user-select: none;
  181. transition: opacity 0.2s linear;
  182. }
  183. .PhotoView-PhotoSlider__ArrowLeft:hover,
  184. .PhotoView-PhotoSlider__ArrowRight:hover {
  185. opacity: 1;
  186. }
  187. .PhotoView-PhotoSlider__ArrowLeft svg,
  188. .PhotoView-PhotoSlider__ArrowRight svg {
  189. box-sizing: content-box;
  190. padding: 10px;
  191. width: 24px;
  192. height: 24px;
  193. fill: white;
  194. background: rgba(0, 0, 0, 0.3);
  195. }
  196. .PhotoView-PhotoSlider__ArrowLeft {
  197. left: 0;
  198. }
  199. .PhotoView-PhotoSlider__ArrowRight {
  200. right: 0;
  201. }
  202. .PhotoView-PhotoSlider__FooterWrap {
  203. box-sizing: border-box;
  204. position: absolute;
  205. left: 0;
  206. bottom: 0;
  207. padding: 10px;
  208. width: 100%;
  209. min-height: 44px;
  210. line-height: 1.5;
  211. font-size: 14px;
  212. color: #ccc;
  213. background-color: rgba(0, 0, 0, 0.5);
  214. text-align: justify;
  215. transition: opacity 0.2s ease-out;
  216. z-index: 20;
  217. }