dropzone.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /* Dropzone */
  2. /* The MIT License */
  3. .dropzone,
  4. .dropzone *,
  5. .dropzone-previews,
  6. .dropzone-previews * {
  7. -webkit-box-sizing: border-box;
  8. -moz-box-sizing: border-box;
  9. box-sizing: border-box;
  10. }
  11. .dropzone {
  12. position: relative;
  13. padding: 1em;
  14. border: 1px solid rgba(0, 0, 0, .08);
  15. background: rgba(0, 0, 0, .02);
  16. }
  17. .dropzone.dz-clickable {
  18. cursor: pointer;
  19. }
  20. .dropzone.dz-clickable .dz-message,
  21. .dropzone.dz-clickable .dz-message span {
  22. cursor: pointer;
  23. }
  24. .dropzone.dz-clickable * {
  25. cursor: default;
  26. }
  27. .dropzone .dz-message {
  28. opacity: 1;
  29. -ms-filter: none;
  30. filter: none;
  31. }
  32. .dropzone.dz-drag-hover {
  33. border-color: rgba(0, 0, 0, .15);
  34. background: rgba(0, 0, 0, .04);
  35. }
  36. .dropzone.dz-started .dz-message {
  37. display: none;
  38. }
  39. .dropzone .dz-preview,
  40. .dropzone-previews .dz-preview {
  41. position: relative;
  42. display: inline-block;
  43. margin: 17px;
  44. padding: 6px 6px 6px 6px;
  45. vertical-align: top;
  46. border: 1px solid #acacac;
  47. background: rgba(255, 255, 255, .8);
  48. }
  49. .dropzone .dz-preview.dz-file-preview [data-dz-thumbnail],
  50. .dropzone-previews .dz-preview.dz-file-preview [data-dz-thumbnail] {
  51. display: none;
  52. }
  53. .dropzone .dz-preview .dz-details,
  54. .dropzone-previews .dz-preview .dz-details {
  55. position: relative;
  56. width: 100px;
  57. height: 100px;
  58. margin-bottom: 22px;
  59. padding: 5px;
  60. background: #ebebeb;
  61. }
  62. .dropzone .dz-preview .dz-details .dz-filename,
  63. .dropzone-previews .dz-preview .dz-details .dz-filename {
  64. overflow: hidden;
  65. height: 100%;
  66. }
  67. .dropzone .dz-preview .dz-details img,
  68. .dropzone-previews .dz-preview .dz-details img {
  69. position: absolute;
  70. top: 0;
  71. left: 0;
  72. width: 100px;
  73. height: 100px;
  74. }
  75. .dropzone .dz-preview .dz-details .dz-size,
  76. .dropzone-previews .dz-preview .dz-details .dz-size {
  77. line-height: 28px;
  78. position: absolute;
  79. bottom: -28px;
  80. left: 3px;
  81. height: 28px;
  82. }
  83. .dropzone .dz-preview.dz-error .dz-error-mark,
  84. .dropzone-previews .dz-preview.dz-error .dz-error-mark {
  85. display: block;
  86. }
  87. .dropzone .dz-preview.dz-success .dz-success-mark,
  88. .dropzone-previews .dz-preview.dz-success .dz-success-mark {
  89. display: block;
  90. }
  91. .dropzone .dz-preview:hover .dz-details img,
  92. .dropzone-previews .dz-preview:hover .dz-details img {
  93. display: none;
  94. }
  95. .dropzone .dz-preview .dz-success-mark,
  96. .dropzone-previews .dz-preview .dz-success-mark,
  97. .dropzone .dz-preview .dz-error-mark,
  98. .dropzone-previews .dz-preview .dz-error-mark {
  99. font-size: 30px;
  100. position: absolute;
  101. top: -10px;
  102. right: -10px;
  103. display: none;
  104. width: 40px;
  105. height: 40px;
  106. text-align: center;
  107. }
  108. .dropzone .dz-preview .dz-success-mark,
  109. .dropzone-previews .dz-preview .dz-success-mark {
  110. color: #8cc657;
  111. }
  112. .dropzone .dz-preview .dz-error-mark,
  113. .dropzone-previews .dz-preview .dz-error-mark {
  114. color: #ee162d;
  115. }
  116. .dropzone .dz-preview .dz-progress,
  117. .dropzone-previews .dz-preview .dz-progress {
  118. position: absolute;
  119. top: 100px;
  120. right: 6px;
  121. left: 6px;
  122. display: none;
  123. height: 6px;
  124. background: #d7d7d7;
  125. }
  126. .dropzone .dz-preview .dz-progress .dz-upload,
  127. .dropzone-previews .dz-preview .dz-progress .dz-upload {
  128. position: absolute;
  129. top: 0;
  130. bottom: 0;
  131. left: 0;
  132. width: 0;
  133. background-color: #8cc657;
  134. }
  135. .dropzone .dz-preview.dz-processing .dz-progress,
  136. .dropzone-previews .dz-preview.dz-processing .dz-progress {
  137. display: block;
  138. }
  139. .dropzone .dz-preview .dz-error-message,
  140. .dropzone-previews .dz-preview .dz-error-message {
  141. position: absolute;
  142. z-index: 500;
  143. top: -5px;
  144. left: -20px;
  145. display: none;
  146. min-width: 140px;
  147. max-width: 500px;
  148. padding: 8px 10px;
  149. color: #800;
  150. background: rgba(245, 245, 245, .8);
  151. }
  152. .dropzone .dz-preview:hover.dz-error .dz-error-message,
  153. .dropzone-previews .dz-preview:hover.dz-error .dz-error-message {
  154. display: block;
  155. }
  156. .dropzone {
  157. position: relative;
  158. min-height: 350px;
  159. cursor: pointer;
  160. }
  161. .dz-message {
  162. font-size: 35px;
  163. line-height: 50px;
  164. position: absolute;
  165. top: 50%;
  166. left: 50%;
  167. width: 50%;
  168. height: 50px;
  169. margin-top: -50px;
  170. margin-left: -25%;
  171. padding: 25px;
  172. text-align: center;
  173. }