dropzone.min.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. @-webkit-keyframes passing-through {
  2. 0% {
  3. opacity: 0;
  4. -webkit-transform: translateY(40px);
  5. -moz-transform: translateY(40px);
  6. -ms-transform: translateY(40px);
  7. -o-transform: translateY(40px);
  8. transform: translateY(40px)
  9. }
  10. 30%, 70% {
  11. opacity: 1;
  12. -webkit-transform: translateY(0px);
  13. -moz-transform: translateY(0px);
  14. -ms-transform: translateY(0px);
  15. -o-transform: translateY(0px);
  16. transform: translateY(0px)
  17. }
  18. 100% {
  19. opacity: 0;
  20. -webkit-transform: translateY(-40px);
  21. -moz-transform: translateY(-40px);
  22. -ms-transform: translateY(-40px);
  23. -o-transform: translateY(-40px);
  24. transform: translateY(-40px)
  25. }
  26. }
  27. @-moz-keyframes passing-through {
  28. 0% {
  29. opacity: 0;
  30. -webkit-transform: translateY(40px);
  31. -moz-transform: translateY(40px);
  32. -ms-transform: translateY(40px);
  33. -o-transform: translateY(40px);
  34. transform: translateY(40px)
  35. }
  36. 30%, 70% {
  37. opacity: 1;
  38. -webkit-transform: translateY(0px);
  39. -moz-transform: translateY(0px);
  40. -ms-transform: translateY(0px);
  41. -o-transform: translateY(0px);
  42. transform: translateY(0px)
  43. }
  44. 100% {
  45. opacity: 0;
  46. -webkit-transform: translateY(-40px);
  47. -moz-transform: translateY(-40px);
  48. -ms-transform: translateY(-40px);
  49. -o-transform: translateY(-40px);
  50. transform: translateY(-40px)
  51. }
  52. }
  53. @keyframes passing-through {
  54. 0% {
  55. opacity: 0;
  56. -webkit-transform: translateY(40px);
  57. -moz-transform: translateY(40px);
  58. -ms-transform: translateY(40px);
  59. -o-transform: translateY(40px);
  60. transform: translateY(40px)
  61. }
  62. 30%, 70% {
  63. opacity: 1;
  64. -webkit-transform: translateY(0px);
  65. -moz-transform: translateY(0px);
  66. -ms-transform: translateY(0px);
  67. -o-transform: translateY(0px);
  68. transform: translateY(0px)
  69. }
  70. 100% {
  71. opacity: 0;
  72. -webkit-transform: translateY(-40px);
  73. -moz-transform: translateY(-40px);
  74. -ms-transform: translateY(-40px);
  75. -o-transform: translateY(-40px);
  76. transform: translateY(-40px)
  77. }
  78. }
  79. @-webkit-keyframes slide-in {
  80. 0% {
  81. opacity: 0;
  82. -webkit-transform: translateY(40px);
  83. -moz-transform: translateY(40px);
  84. -ms-transform: translateY(40px);
  85. -o-transform: translateY(40px);
  86. transform: translateY(40px)
  87. }
  88. 30% {
  89. opacity: 1;
  90. -webkit-transform: translateY(0px);
  91. -moz-transform: translateY(0px);
  92. -ms-transform: translateY(0px);
  93. -o-transform: translateY(0px);
  94. transform: translateY(0px)
  95. }
  96. }
  97. @-moz-keyframes slide-in {
  98. 0% {
  99. opacity: 0;
  100. -webkit-transform: translateY(40px);
  101. -moz-transform: translateY(40px);
  102. -ms-transform: translateY(40px);
  103. -o-transform: translateY(40px);
  104. transform: translateY(40px)
  105. }
  106. 30% {
  107. opacity: 1;
  108. -webkit-transform: translateY(0px);
  109. -moz-transform: translateY(0px);
  110. -ms-transform: translateY(0px);
  111. -o-transform: translateY(0px);
  112. transform: translateY(0px)
  113. }
  114. }
  115. @keyframes slide-in {
  116. 0% {
  117. opacity: 0;
  118. -webkit-transform: translateY(40px);
  119. -moz-transform: translateY(40px);
  120. -ms-transform: translateY(40px);
  121. -o-transform: translateY(40px);
  122. transform: translateY(40px)
  123. }
  124. 30% {
  125. opacity: 1;
  126. -webkit-transform: translateY(0px);
  127. -moz-transform: translateY(0px);
  128. -ms-transform: translateY(0px);
  129. -o-transform: translateY(0px);
  130. transform: translateY(0px)
  131. }
  132. }
  133. @-webkit-keyframes pulse {
  134. 0% {
  135. -webkit-transform: scale(1);
  136. -moz-transform: scale(1);
  137. -ms-transform: scale(1);
  138. -o-transform: scale(1);
  139. transform: scale(1)
  140. }
  141. 10% {
  142. -webkit-transform: scale(1.1);
  143. -moz-transform: scale(1.1);
  144. -ms-transform: scale(1.1);
  145. -o-transform: scale(1.1);
  146. transform: scale(1.1)
  147. }
  148. 20% {
  149. -webkit-transform: scale(1);
  150. -moz-transform: scale(1);
  151. -ms-transform: scale(1);
  152. -o-transform: scale(1);
  153. transform: scale(1)
  154. }
  155. }
  156. @-moz-keyframes pulse {
  157. 0% {
  158. -webkit-transform: scale(1);
  159. -moz-transform: scale(1);
  160. -ms-transform: scale(1);
  161. -o-transform: scale(1);
  162. transform: scale(1)
  163. }
  164. 10% {
  165. -webkit-transform: scale(1.1);
  166. -moz-transform: scale(1.1);
  167. -ms-transform: scale(1.1);
  168. -o-transform: scale(1.1);
  169. transform: scale(1.1)
  170. }
  171. 20% {
  172. -webkit-transform: scale(1);
  173. -moz-transform: scale(1);
  174. -ms-transform: scale(1);
  175. -o-transform: scale(1);
  176. transform: scale(1)
  177. }
  178. }
  179. @keyframes pulse {
  180. 0% {
  181. -webkit-transform: scale(1);
  182. -moz-transform: scale(1);
  183. -ms-transform: scale(1);
  184. -o-transform: scale(1);
  185. transform: scale(1)
  186. }
  187. 10% {
  188. -webkit-transform: scale(1.1);
  189. -moz-transform: scale(1.1);
  190. -ms-transform: scale(1.1);
  191. -o-transform: scale(1.1);
  192. transform: scale(1.1)
  193. }
  194. 20% {
  195. -webkit-transform: scale(1);
  196. -moz-transform: scale(1);
  197. -ms-transform: scale(1);
  198. -o-transform: scale(1);
  199. transform: scale(1)
  200. }
  201. }
  202. .dropzone, .dropzone * {
  203. box-sizing: border-box
  204. }
  205. .dropzone {
  206. min-height: 150px;
  207. border: 2px solid rgba(0, 0, 0, 0.3);
  208. background: white;
  209. padding: 20px 20px
  210. }
  211. .dropzone.dz-clickable {
  212. cursor: pointer
  213. }
  214. .dropzone.dz-clickable * {
  215. cursor: default
  216. }
  217. .dropzone.dz-clickable .dz-message, .dropzone.dz-clickable .dz-message * {
  218. cursor: pointer
  219. }
  220. .dropzone.dz-started .dz-message {
  221. display: none
  222. }
  223. .dropzone.dz-drag-hover {
  224. border-style: solid
  225. }
  226. .dropzone.dz-drag-hover .dz-message {
  227. opacity: 0.5
  228. }
  229. .dropzone .dz-message {
  230. text-align: center;
  231. margin: 2em 0
  232. }
  233. .dropzone .dz-preview {
  234. position: relative;
  235. display: inline-block;
  236. vertical-align: top;
  237. margin: 16px;
  238. min-height: 100px
  239. }
  240. .dropzone .dz-preview:hover {
  241. z-index: 1000
  242. }
  243. .dropzone .dz-preview:hover .dz-details {
  244. opacity: 1
  245. }
  246. .dropzone .dz-preview.dz-file-preview .dz-image {
  247. border-radius: 20px;
  248. background: #999;
  249. background: linear-gradient(to bottom, #eee, #ddd)
  250. }
  251. .dropzone .dz-preview.dz-file-preview .dz-details {
  252. opacity: 1
  253. }
  254. .dropzone .dz-preview.dz-image-preview {
  255. background: white
  256. }
  257. .dropzone .dz-preview.dz-image-preview .dz-details {
  258. -webkit-transition: opacity 0.2s linear;
  259. -moz-transition: opacity 0.2s linear;
  260. -ms-transition: opacity 0.2s linear;
  261. -o-transition: opacity 0.2s linear;
  262. transition: opacity 0.2s linear
  263. }
  264. .dropzone .dz-preview .dz-remove {
  265. font-size: 14px;
  266. text-align: center;
  267. display: block;
  268. cursor: pointer;
  269. border: none
  270. }
  271. .dropzone .dz-preview .dz-remove:hover {
  272. text-decoration: underline
  273. }
  274. .dropzone .dz-preview:hover .dz-details {
  275. opacity: 1
  276. }
  277. .dropzone .dz-preview .dz-details {
  278. z-index: 20;
  279. position: absolute;
  280. top: 0;
  281. left: 0;
  282. opacity: 0;
  283. font-size: 13px;
  284. min-width: 100%;
  285. max-width: 100%;
  286. padding: 2em 1em;
  287. text-align: center;
  288. color: rgba(0, 0, 0, 0.9);
  289. line-height: 150%
  290. }
  291. .dropzone .dz-preview .dz-details .dz-size {
  292. margin-bottom: 1em;
  293. font-size: 16px
  294. }
  295. .dropzone .dz-preview .dz-details .dz-filename {
  296. white-space: nowrap
  297. }
  298. .dropzone .dz-preview .dz-details .dz-filename:hover span {
  299. border: 1px solid rgba(200, 200, 200, 0.8);
  300. background-color: rgba(255, 255, 255, 0.8)
  301. }
  302. .dropzone .dz-preview .dz-details .dz-filename:not(:hover) {
  303. overflow: hidden;
  304. text-overflow: ellipsis
  305. }
  306. .dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {
  307. border: 1px solid transparent
  308. }
  309. .dropzone .dz-preview .dz-details .dz-filename span, .dropzone .dz-preview .dz-details .dz-size span {
  310. background-color: rgba(255, 255, 255, 0.4);
  311. padding: 0 0.4em;
  312. border-radius: 3px
  313. }
  314. .dropzone .dz-preview:hover .dz-image img {
  315. -webkit-transform: scale(1.05, 1.05);
  316. -moz-transform: scale(1.05, 1.05);
  317. -ms-transform: scale(1.05, 1.05);
  318. -o-transform: scale(1.05, 1.05);
  319. transform: scale(1.05, 1.05);
  320. -webkit-filter: blur(8px);
  321. filter: blur(8px)
  322. }
  323. .dropzone .dz-preview .dz-image {
  324. border-radius: 20px;
  325. overflow: hidden;
  326. width: 120px;
  327. height: 120px;
  328. position: relative;
  329. display: block;
  330. z-index: 10
  331. }
  332. .dropzone .dz-preview .dz-image img {
  333. display: block
  334. }
  335. .dropzone .dz-preview.dz-success .dz-success-mark {
  336. -webkit-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  337. -moz-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  338. -ms-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  339. -o-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  340. animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1)
  341. }
  342. .dropzone .dz-preview.dz-error .dz-error-mark {
  343. opacity: 1;
  344. -webkit-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  345. -moz-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  346. -ms-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  347. -o-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  348. animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1)
  349. }
  350. .dropzone .dz-preview .dz-success-mark, .dropzone .dz-preview .dz-error-mark {
  351. pointer-events: none;
  352. opacity: 0;
  353. z-index: 500;
  354. position: absolute;
  355. display: block;
  356. top: 50%;
  357. left: 50%;
  358. margin-left: -27px;
  359. margin-top: -27px
  360. }
  361. .dropzone .dz-preview .dz-success-mark svg, .dropzone .dz-preview .dz-error-mark svg {
  362. display: block;
  363. width: 54px;
  364. height: 54px
  365. }
  366. .dropzone .dz-preview.dz-processing .dz-progress {
  367. opacity: 1;
  368. -webkit-transition: all 0.2s linear;
  369. -moz-transition: all 0.2s linear;
  370. -ms-transition: all 0.2s linear;
  371. -o-transition: all 0.2s linear;
  372. transition: all 0.2s linear
  373. }
  374. .dropzone .dz-preview.dz-complete .dz-progress {
  375. opacity: 0;
  376. -webkit-transition: opacity 0.4s ease-in;
  377. -moz-transition: opacity 0.4s ease-in;
  378. -ms-transition: opacity 0.4s ease-in;
  379. -o-transition: opacity 0.4s ease-in;
  380. transition: opacity 0.4s ease-in
  381. }
  382. .dropzone .dz-preview:not(.dz-processing) .dz-progress {
  383. -webkit-animation: pulse 6s ease infinite;
  384. -moz-animation: pulse 6s ease infinite;
  385. -ms-animation: pulse 6s ease infinite;
  386. -o-animation: pulse 6s ease infinite;
  387. animation: pulse 6s ease infinite
  388. }
  389. .dropzone .dz-preview .dz-progress {
  390. opacity: 1;
  391. z-index: 1000;
  392. pointer-events: none;
  393. position: absolute;
  394. height: 16px;
  395. left: 50%;
  396. top: 50%;
  397. margin-top: -8px;
  398. width: 80px;
  399. margin-left: -40px;
  400. background: rgba(255, 255, 255, 0.9);
  401. -webkit-transform: scale(1);
  402. border-radius: 8px;
  403. overflow: hidden
  404. }
  405. .dropzone .dz-preview .dz-progress .dz-upload {
  406. background: #333;
  407. background: linear-gradient(to bottom, #666, #444);
  408. position: absolute;
  409. top: 0;
  410. left: 0;
  411. bottom: 0;
  412. width: 0;
  413. -webkit-transition: width 300ms ease-in-out;
  414. -moz-transition: width 300ms ease-in-out;
  415. -ms-transition: width 300ms ease-in-out;
  416. -o-transition: width 300ms ease-in-out;
  417. transition: width 300ms ease-in-out
  418. }
  419. .dropzone .dz-preview.dz-error .dz-error-message {
  420. display: block
  421. }
  422. .dropzone .dz-preview.dz-error:hover .dz-error-message {
  423. transform: scale(1.5);
  424. pointer-events: auto
  425. }
  426. .dropzone .dz-preview .dz-error-message {
  427. pointer-events: none;
  428. z-index: 1000;
  429. position: absolute;
  430. display: block;
  431. display: none;
  432. opacity: 1;
  433. -webkit-transition: all 0.3s ease;
  434. -moz-transition: all 0.3s ease;
  435. -ms-transition: all 0.3s ease;
  436. -o-transition: all 0.3s ease;
  437. transition: all 0.3s ease;
  438. border-radius: 8px;
  439. font-size: 13px;
  440. top: 130px;
  441. left: -10px;
  442. width: 140px;
  443. background: #be2626;
  444. background: linear-gradient(to bottom, #be2626, #a92222);
  445. padding: 0.5em 1.2em;
  446. color: white
  447. }
  448. .dropzone .dz-preview .dz-error-message:after {
  449. content: '';
  450. position: absolute;
  451. top: -6px;
  452. left: 64px;
  453. width: 0;
  454. height: 0;
  455. border-left: 6px solid transparent;
  456. border-right: 6px solid transparent;
  457. border-bottom: 6px solid #be2626
  458. }