upload.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  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.file {
  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.file .filelist li {
  139. width: 100%;
  140. height: 40px;
  141. background: #fff;
  142. 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);
  143. margin: 0 8px 10px 0;
  144. border-radius: 5px;
  145. border: 0;
  146. padding: 0;
  147. }
  148. .web-uploader.file .filelist li .file-action {
  149. float: right;
  150. margin: 16px 10px 0;
  151. cursor: pointer;
  152. font-size: 15px;
  153. position: absolute;
  154. right: 0;
  155. }
  156. .web-uploader .filelist li p.log {
  157. position: relative;
  158. top: -45px;
  159. }
  160. .web-uploader .filelist li p.title {
  161. left: 0;
  162. overflow: hidden;
  163. white-space: nowrap;
  164. text-overflow: ellipsis;
  165. top: 35px;
  166. text-indent: 5px;
  167. width: 160px;
  168. text-align: center;
  169. padding-top: 4px;
  170. font-size: 11px;
  171. color: #777;
  172. margin: 3px auto;
  173. }
  174. .web-uploader.file .filelist li p.title {
  175. font-weight: 600;
  176. font-size: 15px;
  177. vertical-align: middle;
  178. height: 42px;
  179. line-height: 35px;
  180. padding-left: 8px;
  181. float: left;
  182. text-align: left;
  183. color: #333;
  184. width: 100%;
  185. }
  186. .web-uploader .filelist .file-type {
  187. display: none;
  188. font-size: 18px;
  189. font-weight: bold;
  190. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  191. margin: 20px 0 5px;
  192. height: 105px;
  193. }
  194. .web-uploader .filelist li p.upload-progress {
  195. position: absolute;
  196. width: 100%;
  197. bottom: 0;
  198. left: 0;
  199. height: 8px;
  200. overflow: hidden;
  201. z-index: 50;
  202. }
  203. .web-uploader .filelist li p.upload-progress span {
  204. display: none;
  205. overflow: hidden;
  206. width: 0;
  207. height: 100%;
  208. background: #6472c9;
  209. -webit-transition: width 200ms linear;
  210. transition: width 200ms linear;
  211. -webkit-animation: progressmove 2s linear infinite;
  212. animation: progressmove 2s linear infinite;
  213. -webkit-transform: translateZ(0);
  214. }
  215. @-webkit-keyframes progressmove {
  216. 0% {
  217. background-position: 0 0;
  218. }
  219. 100% {
  220. background-position: 17px 0;
  221. }
  222. }
  223. @keyframes progressmove {
  224. 0% {
  225. background-position: 0 0;
  226. }
  227. 100% {
  228. background-position: 17px 0;
  229. }
  230. }
  231. .web-uploader .filelist li .imgWrap {
  232. position: relative;
  233. z-index: 2;
  234. line-height: 100%;
  235. vertical-align: middle;
  236. overflow: hidden;
  237. width: 100%;
  238. height: 120px;
  239. transform-origin: 50% 50%;
  240. -webit-transition: 200ms ease-out;
  241. transition: 200ms ease-out;
  242. margin-bottom: 0;
  243. }
  244. .web-uploader .filelist li img {
  245. width: auto;
  246. height: 120px;
  247. }
  248. .web-uploader .filelist li p.error {
  249. background: #bd4147;
  250. color: #fff;
  251. position: absolute;
  252. bottom: 0;
  253. left: 0;
  254. height: 28px;
  255. line-height: 28px;
  256. width: 100%;
  257. z-index: 100;
  258. }
  259. .web-uploader.file .filelist li p.error {
  260. background: #bd4147;
  261. color: #fff;
  262. font-weight: 500;
  263. padding: 0 20px;
  264. width: auto;
  265. margin-left: 40%;
  266. top: 0;
  267. }
  268. .web-uploader .filelist li .success {
  269. display: block;
  270. position: absolute;
  271. left: 0;
  272. bottom: 0;
  273. height: 40px;
  274. width: 100%;
  275. z-index: 2;
  276. }
  277. .web-uploader .filelist li .success em {
  278. position: absolute;
  279. right: 0;
  280. border-color: transparent;
  281. border-style: solid;
  282. border-width: 0 0 33px 40px;
  283. border-bottom-color: #21b978;
  284. bottom: -1px;
  285. }
  286. .web-uploader li .success i {
  287. position: absolute;
  288. bottom: 5px;
  289. right: 0;
  290. color: #fff;
  291. background: none;
  292. border: none;
  293. font-weight: bold;
  294. outline: none;
  295. text-align: center;
  296. width: 20px;
  297. }
  298. .web-uploader .filelist div.file-panel {
  299. position: absolute;
  300. height: 32px;
  301. width: 100%;
  302. bottom: 0;
  303. left: 0;
  304. overflow: hidden;
  305. z-index: 10;
  306. }
  307. .web-uploader .filelist div.file-panel span {
  308. display: inline;
  309. float: left;
  310. width: 24px;
  311. height: 24px;
  312. line-height: 26px;
  313. overflow: hidden;
  314. margin: 5px 3px 5px;
  315. font-weight: bold;
  316. cursor: pointer;
  317. color: #fff;
  318. border-radius: 1px;
  319. font-size: 14px;
  320. }
  321. .web-uploader .filelist div.file-panel a {
  322. float: left;
  323. margin-left: 3px;
  324. }
  325. .web-uploader .statusBar {
  326. height: 53px;
  327. line-height: 53px;
  328. vertical-align: middle;
  329. position: relative;
  330. }
  331. .web-uploader.file .statusBar {
  332. border-top: 0;
  333. padding: 0;
  334. }
  335. .web-uploader .statusBar .upload-progress {
  336. border: 0;
  337. width: 198px;
  338. height: 18px;
  339. display: inline-block;
  340. text-align: center;
  341. line-height: 45px;
  342. color: #fff;
  343. margin-top: 20px;
  344. position: relative;
  345. margin-right: 10px;
  346. border-radius: 2px;
  347. }
  348. .web-uploader .statusBar .upload-progress span.percentage {
  349. width: 0;
  350. height: 100%;
  351. left: 0;
  352. top: 0;
  353. background: #6472c9;
  354. position: absolute;
  355. }
  356. .web-uploader .statusBar .upload-progress span.text {
  357. position: relative;
  358. z-index: 10;
  359. }
  360. .web-uploader .statusBar .info {
  361. display: inline-block;
  362. font-size: 14px;
  363. color: #666 !important;
  364. }
  365. .web-uploader .statusBar .btns {
  366. margin-top: 4px;
  367. right: 20px;
  368. line-height: 40px;
  369. float: right;
  370. }
  371. .web-uploader.file .statusBar .btns {
  372. right: 0;
  373. }
  374. .add-file-button {
  375. display: inline-block;
  376. float: left;
  377. }
  378. .web-uploader .placeholder:before {
  379. font-family: feather;
  380. font-size: 70px;
  381. content: "\E8E3";
  382. }
  383. .red-dark {
  384. color: #bd4147;
  385. }
  386. .green {
  387. color: #21b978;
  388. }
  389. .icon-success {
  390. font-weight: bold;
  391. font-size: 17px;
  392. display: none;
  393. }