webuploader.css 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  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. object-fit: cover;
  275. }
  276. .web-uploader .filelist li p.error {
  277. background: var(--danger);
  278. color: #fff;
  279. position: absolute;
  280. bottom: 0;
  281. left: 0;
  282. height: 28px;
  283. line-height: 28px;
  284. width: 100%;
  285. z-index: 100
  286. }
  287. .web-uploader._files .filelist li p.error {
  288. background: var(--danger);
  289. color: #fff;
  290. font-weight: 500;
  291. padding: 0 20px;
  292. width: auto;
  293. margin-left: 40%;
  294. top: 0
  295. }
  296. .web-uploader .filelist li .success {
  297. display: block;
  298. position: absolute;
  299. left: 0;
  300. bottom: 0;
  301. height: 40px;
  302. width: 100%;
  303. z-index: 200
  304. }
  305. .web-uploader .filelist li .success em {
  306. position: absolute;
  307. right: 0;
  308. border-color: transparent;
  309. border-style: solid;
  310. border-width: 0 0 33px 40px;
  311. border-bottom-color: var(--success);
  312. bottom: -1px
  313. }
  314. .web-uploader li .success i {
  315. position: absolute;
  316. bottom: 5px;
  317. right: 0;
  318. color: #fff;
  319. background: none;
  320. border: none;
  321. font-weight: bold;
  322. outline: none;
  323. text-align: center;
  324. width: 20px
  325. }
  326. .web-uploader .filelist div.file-panel {
  327. position: absolute;
  328. height: 32px;
  329. width: 100%;
  330. bottom: 0;
  331. left: 0;
  332. overflow: hidden;
  333. z-index: 10
  334. }
  335. .web-uploader .filelist div.file-panel span {
  336. display: inline;
  337. float: left;
  338. width: 24px;
  339. height: 24px;
  340. line-height: 26px;
  341. overflow: hidden;
  342. margin: 5px 3px 5px;
  343. font-weight: bold;
  344. cursor: pointer;
  345. color: #fff;
  346. border-radius: 1px;
  347. font-size: 14px
  348. }
  349. .web-uploader .filelist div.file-panel a {
  350. float: left;
  351. margin-left: 3px
  352. }
  353. .web-uploader .statusBar {
  354. height: 53px;
  355. line-height: 53px;
  356. vertical-align: middle;
  357. position: relative
  358. }
  359. .web-uploader._files .statusBar {
  360. border-top: 0;
  361. padding: 0
  362. }
  363. .web-uploader .statusBar .upload-progress {
  364. border: 0;
  365. width: 198px;
  366. height: 18px;
  367. display: inline-block;
  368. text-align: center;
  369. line-height: 45px;
  370. color: #fff;
  371. margin-top: 20px;
  372. position: relative;
  373. margin-right: 10px;
  374. border-radius: 2px
  375. }
  376. .web-uploader .statusBar .upload-progress span.percentage {
  377. width: 0;
  378. height: 100%;
  379. left: 0;
  380. top: 0;
  381. background: #4099df;
  382. position: absolute
  383. }
  384. .web-uploader .statusBar .upload-progress span.text {
  385. position: relative;
  386. z-index: 10
  387. }
  388. .web-uploader .statusBar .info {
  389. display: inline-block;
  390. font-size: 14px;
  391. color: #666!important;
  392. }
  393. .web-uploader .statusBar .btns {
  394. margin-top: 4px;
  395. right: 20px;
  396. line-height: 40px;
  397. float: right
  398. }
  399. .web-uploader._files .statusBar .btns {
  400. right: 0
  401. }
  402. .add-file-button {
  403. display: inline-block;
  404. float: left
  405. }
  406. .web-uploader .placeholder:before {
  407. font-size: 80px;
  408. font-family: feather;
  409. content: "\e8e3";
  410. }