upload.scss 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  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. //color: #333;
  137. background: #fff;
  138. display: table;
  139. margin: 8px;
  140. height: 160px;
  141. padding: 6px;
  142. vertical-align: middle
  143. }
  144. .web-uploader.file .filelist li {
  145. width: 100%;
  146. height: 40px;
  147. background: $white;
  148. box-shadow: $shadow-100;
  149. margin: 0 8px 10px 0;
  150. border-radius: 5px;
  151. border: 0;
  152. padding: 0
  153. }
  154. .web-uploader.file .filelist li .file-action {
  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: #555;
  178. margin: 3px auto
  179. }
  180. .web-uploader.file .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: 100%
  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: lighten($primary, 2%);
  215. //background: lighten($primary, 2%) url(./progress.png) repeat-x;
  216. -webit-transition: width 200ms linear;
  217. -moz-transition: width 200ms linear;
  218. -o-transition: width 200ms linear;
  219. -ms-transition: width 200ms linear;
  220. transition: width 200ms linear;
  221. -webkit-animation: progressmove 2s linear infinite;
  222. -moz-animation: progressmove 2s linear infinite;
  223. -o-animation: progressmove 2s linear infinite;
  224. -ms-animation: progressmove 2s linear infinite;
  225. animation: progressmove 2s linear infinite;
  226. -webkit-transform: translateZ(0)
  227. }
  228. @-webkit-keyframes progressmove {
  229. 0% {
  230. background-position: 0 0
  231. }
  232. 100% {
  233. background-position: 17px 0
  234. }
  235. }
  236. @-moz-keyframes progressmove {
  237. 0% {
  238. background-position: 0 0
  239. }
  240. 100% {
  241. background-position: 17px 0
  242. }
  243. }
  244. @keyframes progressmove {
  245. 0% {
  246. background-position: 0 0
  247. }
  248. 100% {
  249. background-position: 17px 0
  250. }
  251. }
  252. .web-uploader .filelist li .imgWrap {
  253. position: relative;
  254. z-index: 2;
  255. line-height: 100%;
  256. vertical-align: middle;
  257. overflow: hidden;
  258. width: 100%;
  259. height: 120px;
  260. -webkit-transform-origin: 50% 50%;
  261. -moz-transform-origin: 50% 50%;
  262. -o-transform-origin: 50% 50%;
  263. -ms-transform-origin: 50% 50%;
  264. transform-origin: 50% 50%;
  265. -webit-transition: 200ms ease-out;
  266. -moz-transition: 200ms ease-out;
  267. -o-transition: 200ms ease-out;
  268. -ms-transition: 200ms ease-out;
  269. transition: 200ms ease-out;
  270. margin-bottom: 0;
  271. }
  272. .web-uploader .filelist li img {
  273. max-width: 95%;
  274. height: 120px
  275. }
  276. .web-uploader .filelist li p.error {
  277. background: $red-darker;
  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.file .filelist li p.error {
  288. background: $red-darker;
  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: 2;
  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: $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:first-child {
  350. margin-left: 6px;
  351. }
  352. .web-uploader .filelist div.file-panel a {
  353. float: left;
  354. box-shadow: none;
  355. padding-left: 8px!important;
  356. padding-right: 8px!important;
  357. }
  358. .web-uploader .statusBar {
  359. height: 53px;
  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. }
  398. .web-uploader .statusBar .btns {
  399. margin-top: 4px;
  400. right: 20px;
  401. line-height: 40px;
  402. float: right
  403. }
  404. .web-uploader.file .statusBar .btns {
  405. right: 0
  406. }
  407. .add-file-button {
  408. display: inline-block;
  409. float: left
  410. }
  411. .web-uploader .placeholder:before {
  412. font-family: feather;
  413. font-size: 58px;
  414. content: "\e8e3";
  415. }
  416. .red-dark {
  417. color: $red-darker
  418. }
  419. .green {
  420. color: $success;
  421. }
  422. .icon-success {
  423. font-weight:bold;
  424. font-size:17px;
  425. display:none;
  426. }