upload.scss 8.9 KB

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