webuploader.css 8.0 KB

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