upload.scss 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. @import "../sass/variables/variables";
  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: $btn-shadow;
  13. border: 1px solid transparent;
  14. display: inline-block;
  15. padding: .55rem 12px;
  16. border-radius: .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. -ms-touch-action: manipulation;
  25. touch-action: manipulation;
  26. cursor: pointer;
  27. -webkit-user-select: none;
  28. -moz-user-select: none;
  29. -ms-user-select: none;
  30. user-select: none;
  31. background-image: none;
  32. color: #fff;
  33. background-color: lighten($primary, 2%)
  34. }
  35. .webuploader-pick-hover {
  36. opacity: .9
  37. }
  38. .webuploader-pick-disable {
  39. opacity: .6;
  40. pointer-events: none
  41. }
  42. .web-uploader {
  43. border: 0;
  44. color: #555;
  45. font-size: 12px;
  46. margin-top: 10px;
  47. background-color: transparent
  48. }
  49. .web-uploader.disabled {
  50. background-color: #eee;
  51. min-height: 34px;
  52. cursor: not-allowed
  53. }
  54. .web-uploader.file {
  55. border: 0
  56. }
  57. .element-invisible {
  58. position: absolute !important;
  59. clip: rect(1px 1px 1px 1px);
  60. clip: rect(1px, 1px, 1px, 1px)
  61. }
  62. .web-uploader .placeholder {
  63. /*padding-top: 85px;*/
  64. /*background: url(./image.png) center 15px no-repeat;*/
  65. border: 3px dashed #e6e6e6;
  66. padding-top: 5px;
  67. text-align: center;
  68. color: #ccc;
  69. font-size: 16px;
  70. position: relative;
  71. }
  72. .web-uploader .placeholder .webuploader-pick {
  73. background: lighten($primary, 2%);
  74. border-radius: 3px;
  75. line-height: 34px;
  76. padding: 0 25px;
  77. color: #fff;
  78. display: inline-block;
  79. margin: 0 auto 20px;
  80. cursor: pointer
  81. }
  82. .web-uploader .placeholder .webuploader-pick-hover {
  83. opacity: .9
  84. }
  85. .web-uploader .placeholder p {
  86. margin: 0 0 20px;
  87. }
  88. .web-uploader .placeholder .flashTip {
  89. color: #666;
  90. font-size: 12px;
  91. position: absolute;
  92. width: 100%;
  93. text-align: center;
  94. bottom: 20px
  95. }
  96. .web-uploader .placeholder .flashTip a {
  97. color: lighten($primary, 2%);
  98. text-decoration: none
  99. }
  100. .web-uploader .placeholder .flashTip a:hover {
  101. text-decoration: underline
  102. }
  103. .web-uploader .placeholder.webuploader-dnd-over {
  104. border-color: #999
  105. }
  106. .web-uploader .placeholder.webuploader-dnd-over.webuploader-dnd-denied {
  107. border-color: $red-darker
  108. }
  109. .web-uploader .filelist {
  110. list-style: none;
  111. margin: 0;
  112. padding: 0
  113. }
  114. .web-uploader .filelist:after {
  115. content: '';
  116. display: block;
  117. width: 0;
  118. height: 0;
  119. overflow: hidden;
  120. clear: both
  121. }
  122. .web-uploader .filelist li {
  123. width: 120px;
  124. text-align: center;
  125. position: relative;
  126. float: left;
  127. overflow: hidden;
  128. border-radius: 2px;
  129. font-size: 12px;
  130. box-shadow: $shadow-200;
  131. //color: #333;
  132. background: #fff;
  133. display: table;
  134. margin: 8px;
  135. height: 160px;
  136. padding: 6px;
  137. vertical-align: middle
  138. }
  139. .web-uploader.file .filelist li {
  140. width: 100%;
  141. height: 40px;
  142. background: $white;
  143. box-shadow: $shadow-100;
  144. margin: 0 8px 10px 0;
  145. border-radius: 5px;
  146. border: 0;
  147. padding: 0
  148. }
  149. .web-uploader.file .filelist li .file-action {
  150. float: right;
  151. margin: 16px 10px 0;
  152. cursor: pointer;
  153. font-size: 15px;
  154. position: absolute;
  155. right: 0;
  156. }
  157. .web-uploader .filelist li p.log {
  158. position: relative;
  159. top: -45px
  160. }
  161. .web-uploader .filelist li p.title {
  162. left: 0;
  163. overflow: hidden;
  164. white-space: nowrap;
  165. text-overflow: ellipsis;
  166. top: 35px;
  167. text-indent: 5px;
  168. width: 160px;
  169. text-align: center;
  170. padding-top: 4px;
  171. font-size: 11px;
  172. color: #555;
  173. margin: 3px auto
  174. }
  175. .web-uploader.file .filelist li p.title {
  176. font-weight: 600;
  177. font-size: 15px;
  178. vertical-align: middle;
  179. height: 42px;
  180. line-height: 35px;
  181. padding-left: 8px;
  182. float: left;
  183. text-align: left;
  184. //color: #333;
  185. width: 100%
  186. }
  187. .web-uploader .filelist .file-type {
  188. display: none;
  189. font-size: 18px;
  190. font-weight: bold;
  191. text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  192. margin: 20px 0 5px;
  193. height: 105px
  194. }
  195. .web-uploader .filelist li p.upload-progress {
  196. position: absolute;
  197. width: 100%;
  198. bottom: 0;
  199. left: 0;
  200. height: 8px;
  201. overflow: hidden;
  202. z-index: 50
  203. }
  204. .web-uploader .filelist li p.upload-progress span {
  205. display: none;
  206. overflow: hidden;
  207. width: 0;
  208. height: 100%;
  209. background: lighten($primary, 2%);
  210. //background: lighten($primary, 2%) url(./progress.png) repeat-x;
  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. height: 53px;
  355. line-height: 53px;
  356. vertical-align: middle;
  357. position: relative
  358. }
  359. .web-uploader.file .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: lighten($primary, 2%);
  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.file .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-family: feather;
  408. font-size: 70px;
  409. content: "\e8e3";
  410. }
  411. .red-dark {
  412. color: $red-darker
  413. }
  414. .green {
  415. color: $success;
  416. }
  417. .icon-success {
  418. font-weight:bold;
  419. font-size:17px;
  420. display:none;
  421. }