upload.css 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. @charset "UTF-8";
  2. .webuploader-container {
  3. position: relative;
  4. }
  5. .webuploader-element-invisible {
  6. position: absolute !important;
  7. clip: rect(1px 1px 1px 1px);
  8. clip: rect(1px, 1px, 1px, 1px);
  9. }
  10. .webuploader-pick {
  11. will-change: box-shadow !important;
  12. box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.05), 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 5px 1px rgba(0, 0, 0, 0.05);
  13. border: 1px solid transparent;
  14. display: inline-block;
  15. padding: 0.55rem 12px;
  16. border-radius: 0.2rem;
  17. margin-bottom: 0;
  18. font-size: 14px;
  19. font-weight: 400;
  20. line-height: 1.42857143;
  21. text-align: center;
  22. white-space: nowrap;
  23. vertical-align: middle;
  24. touch-action: manipulation;
  25. cursor: pointer;
  26. -webkit-user-select: none;
  27. -moz-user-select: none;
  28. -ms-user-select: none;
  29. user-select: none;
  30. background-image: none;
  31. color: #fff;
  32. background-color: #6472c9;
  33. }
  34. .webuploader-pick-hover {
  35. opacity: 0.9;
  36. }
  37. .webuploader-pick-disable {
  38. opacity: 0.6;
  39. pointer-events: none;
  40. }
  41. .web-uploader {
  42. border: 0;
  43. color: #838383;
  44. font-size: 12px;
  45. margin-top: 10px;
  46. background-color: transparent;
  47. }
  48. .web-uploader.disabled {
  49. background-color: #eee;
  50. min-height: 34px;
  51. cursor: not-allowed;
  52. }
  53. .web-uploader._files {
  54. border: 0;
  55. }
  56. .element-invisible {
  57. position: absolute !important;
  58. clip: rect(1px 1px 1px 1px);
  59. clip: rect(1px, 1px, 1px, 1px);
  60. }
  61. .web-uploader .placeholder {
  62. /*padding-top: 85px;*/
  63. /*background: url(./image.png) center 15px no-repeat;*/
  64. border: 3px dashed #e6e6e6;
  65. padding-top: 5px;
  66. text-align: center;
  67. color: #ccc;
  68. font-size: 16px;
  69. position: relative;
  70. }
  71. .web-uploader .placeholder .webuploader-pick {
  72. background: #6472c9;
  73. border-radius: 3px;
  74. line-height: 34px;
  75. padding: 0 25px;
  76. color: #fff;
  77. display: inline-block;
  78. margin: 0 auto 20px;
  79. cursor: pointer;
  80. }
  81. .web-uploader .placeholder .webuploader-pick-hover {
  82. opacity: 0.9;
  83. }
  84. .web-uploader .placeholder p {
  85. margin: 0 0 20px;
  86. }
  87. .web-uploader .placeholder .flashTip {
  88. color: #666;
  89. font-size: 12px;
  90. position: absolute;
  91. width: 100%;
  92. text-align: center;
  93. bottom: 20px;
  94. }
  95. .web-uploader .placeholder .flashTip a {
  96. color: #6472c9;
  97. text-decoration: none;
  98. }
  99. .web-uploader .placeholder .flashTip a:hover {
  100. text-decoration: underline;
  101. }
  102. .web-uploader .placeholder.webuploader-dnd-over {
  103. border-color: #999;
  104. }
  105. .web-uploader .placeholder.webuploader-dnd-over.webuploader-dnd-denied {
  106. border-color: #bd4147;
  107. }
  108. .web-uploader .filelist {
  109. list-style: none;
  110. margin: 0;
  111. padding: 0;
  112. }
  113. .web-uploader .filelist:after {
  114. content: "";
  115. display: block;
  116. width: 0;
  117. height: 0;
  118. overflow: hidden;
  119. clear: both;
  120. }
  121. .web-uploader .filelist li {
  122. width: 120px;
  123. text-align: center;
  124. position: relative;
  125. float: left;
  126. overflow: hidden;
  127. border-radius: 2px;
  128. font-size: 12px;
  129. box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.1), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 5px 1px rgba(0, 0, 0, 0.1);
  130. color: #333;
  131. background: #fff;
  132. display: table;
  133. margin: 8px;
  134. height: 160px;
  135. padding: 6px;
  136. vertical-align: middle;
  137. }
  138. .web-uploader._files .filelist li {
  139. width: 100%;
  140. height: 40px;
  141. background: #f3f4fb;
  142. margin: 0 8px 10px 0;
  143. box-shadow: none;
  144. -webkit-box-shadow: none;
  145. border-radius: 5px;
  146. border: 0;
  147. padding: 0;
  148. }
  149. .web-uploader._files .filelist li ._act {
  150. float: right;
  151. margin: 16px 10px 0;
  152. cursor: pointer;
  153. font-size: 15px;
  154. position: absolute;
  155. right: 0;
  156. }
  157. .web-uploader .filelist li p.log {
  158. position: relative;
  159. top: -45px;
  160. }
  161. .web-uploader .filelist li p.title {
  162. left: 0;
  163. overflow: hidden;
  164. white-space: nowrap;
  165. text-overflow: ellipsis;
  166. top: 35px;
  167. text-indent: 5px;
  168. width: 160px;
  169. text-align: center;
  170. padding-top: 4px;
  171. font-size: 11px;
  172. color: #777;
  173. margin: 3px auto;
  174. }
  175. .web-uploader._files .filelist li p.title {
  176. font-weight: 600;
  177. font-size: 15px;
  178. vertical-align: middle;
  179. height: 42px;
  180. line-height: 35px;
  181. padding-left: 8px;
  182. float: left;
  183. text-align: left;
  184. color: #333;
  185. width: 450px;
  186. }
  187. .web-uploader .filelist .file-type {
  188. display: none;
  189. font-size: 18px;
  190. font-weight: bold;
  191. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  192. margin: 20px 0 5px;
  193. height: 105px;
  194. }
  195. .web-uploader .filelist li p.upload-progress {
  196. position: absolute;
  197. width: 100%;
  198. bottom: 0;
  199. left: 0;
  200. height: 8px;
  201. overflow: hidden;
  202. z-index: 50;
  203. }
  204. .web-uploader .filelist li p.upload-progress span {
  205. display: none;
  206. overflow: hidden;
  207. width: 0;
  208. height: 100%;
  209. background: #6472c9;
  210. -webit-transition: width 200ms linear;
  211. transition: width 200ms linear;
  212. -webkit-animation: progressmove 2s linear infinite;
  213. animation: progressmove 2s linear infinite;
  214. -webkit-transform: translateZ(0);
  215. }
  216. @-webkit-keyframes progressmove {
  217. 0% {
  218. background-position: 0 0;
  219. }
  220. 100% {
  221. background-position: 17px 0;
  222. }
  223. }
  224. @keyframes progressmove {
  225. 0% {
  226. background-position: 0 0;
  227. }
  228. 100% {
  229. background-position: 17px 0;
  230. }
  231. }
  232. .web-uploader .filelist li .imgWrap {
  233. position: relative;
  234. z-index: 2;
  235. line-height: 100%;
  236. vertical-align: middle;
  237. overflow: hidden;
  238. width: 100%;
  239. height: 120px;
  240. transform-origin: 50% 50%;
  241. -webit-transition: 200ms ease-out;
  242. transition: 200ms ease-out;
  243. margin-bottom: 0;
  244. }
  245. .web-uploader .filelist li img {
  246. width: auto;
  247. height: 120px;
  248. }
  249. .web-uploader .filelist li p.error {
  250. background: #bd4147;
  251. color: #fff;
  252. position: absolute;
  253. bottom: 0;
  254. left: 0;
  255. height: 28px;
  256. line-height: 28px;
  257. width: 100%;
  258. z-index: 100;
  259. }
  260. .web-uploader._files .filelist li p.error {
  261. background: #bd4147;
  262. color: #fff;
  263. font-weight: 500;
  264. padding: 0 20px;
  265. width: auto;
  266. margin-left: 40%;
  267. top: 0;
  268. }
  269. .web-uploader .filelist li .success {
  270. display: block;
  271. position: absolute;
  272. left: 0;
  273. bottom: 0;
  274. height: 40px;
  275. width: 100%;
  276. z-index: 2;
  277. }
  278. .web-uploader .filelist li .success em {
  279. position: absolute;
  280. right: 0;
  281. border-color: transparent;
  282. border-style: solid;
  283. border-width: 0 0 33px 40px;
  284. border-bottom-color: #21b978;
  285. bottom: -1px;
  286. }
  287. .web-uploader li .success i {
  288. position: absolute;
  289. bottom: 5px;
  290. right: 0;
  291. color: #fff;
  292. background: none;
  293. border: none;
  294. font-weight: bold;
  295. outline: none;
  296. text-align: center;
  297. width: 20px;
  298. }
  299. .web-uploader .filelist div.file-panel {
  300. position: absolute;
  301. height: 32px;
  302. width: 100%;
  303. bottom: 0;
  304. left: 0;
  305. overflow: hidden;
  306. z-index: 10;
  307. }
  308. .web-uploader .filelist div.file-panel span {
  309. display: inline;
  310. float: left;
  311. width: 24px;
  312. height: 24px;
  313. line-height: 26px;
  314. overflow: hidden;
  315. margin: 5px 3px 5px;
  316. font-weight: bold;
  317. cursor: pointer;
  318. color: #fff;
  319. border-radius: 1px;
  320. font-size: 14px;
  321. }
  322. .web-uploader .filelist div.file-panel a {
  323. float: left;
  324. margin-left: 3px;
  325. }
  326. .web-uploader .statusBar {
  327. height: 53px;
  328. line-height: 53px;
  329. vertical-align: middle;
  330. position: relative;
  331. }
  332. .web-uploader._files .statusBar {
  333. border-top: 0;
  334. padding: 0;
  335. }
  336. .web-uploader .statusBar .upload-progress {
  337. border: 0;
  338. width: 198px;
  339. height: 18px;
  340. display: inline-block;
  341. text-align: center;
  342. line-height: 45px;
  343. color: #fff;
  344. margin-top: 20px;
  345. position: relative;
  346. margin-right: 10px;
  347. border-radius: 2px;
  348. }
  349. .web-uploader .statusBar .upload-progress span.percentage {
  350. width: 0;
  351. height: 100%;
  352. left: 0;
  353. top: 0;
  354. background: #6472c9;
  355. position: absolute;
  356. }
  357. .web-uploader .statusBar .upload-progress span.text {
  358. position: relative;
  359. z-index: 10;
  360. }
  361. .web-uploader .statusBar .info {
  362. display: inline-block;
  363. font-size: 14px;
  364. color: #666 !important;
  365. }
  366. .web-uploader .statusBar .btns {
  367. margin-top: 4px;
  368. right: 20px;
  369. line-height: 40px;
  370. float: right;
  371. }
  372. .web-uploader._files .statusBar .btns {
  373. right: 0;
  374. }
  375. .add-file-button {
  376. display: inline-block;
  377. float: left;
  378. }
  379. .web-uploader .placeholder:before {
  380. font-size: 80px;
  381. font-family: feather;
  382. content: "\E8E3";
  383. }
  384. .red-dark {
  385. color: #bd4147;
  386. }
  387. .green {
  388. color: #21b978;
  389. }