upload.scss 9.1 KB

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