upload.scss 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  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. text-align: center;
  67. color: #ccc;
  68. font-size: 16px;
  69. position: relative;
  70. }
  71. .web-uploader .placeholder .webuploader-pick {
  72. background: lighten($primary, 1%);
  73. border-radius: 3px;
  74. line-height: 34px;
  75. padding: 0 25px;
  76. color: #fff;
  77. display: inline-block;
  78. margin: 0 auto 15px;
  79. cursor: pointer
  80. }
  81. .web-uploader .placeholder .webuploader-pick-hover {
  82. opacity: .9
  83. }
  84. .web-uploader .placeholder p {
  85. margin: 0 0 15px;
  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: lighten($primary, 1%);
  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: $red-darker
  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: $shadow-200;
  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: $white;
  142. box-shadow: $shadow-100;
  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: #555;
  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, .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: lighten($primary, 2%);
  209. //background: lighten($primary, 2%) url(./progress.png) repeat-x;
  210. -webit-transition: width 200ms linear;
  211. -moz-transition: width 200ms linear;
  212. -o-transition: width 200ms linear;
  213. -ms-transition: width 200ms linear;
  214. transition: width 200ms linear;
  215. -webkit-animation: progressmove 2s linear infinite;
  216. -moz-animation: progressmove 2s linear infinite;
  217. -o-animation: progressmove 2s linear infinite;
  218. -ms-animation: progressmove 2s linear infinite;
  219. animation: progressmove 2s linear infinite;
  220. -webkit-transform: translateZ(0)
  221. }
  222. @-webkit-keyframes progressmove {
  223. 0% {
  224. background-position: 0 0
  225. }
  226. 100% {
  227. background-position: 17px 0
  228. }
  229. }
  230. @-moz-keyframes progressmove {
  231. 0% {
  232. background-position: 0 0
  233. }
  234. 100% {
  235. background-position: 17px 0
  236. }
  237. }
  238. @keyframes progressmove {
  239. 0% {
  240. background-position: 0 0
  241. }
  242. 100% {
  243. background-position: 17px 0
  244. }
  245. }
  246. .web-uploader .filelist li .imgWrap {
  247. position: relative;
  248. z-index: 2;
  249. line-height: 100%;
  250. vertical-align: middle;
  251. overflow: hidden;
  252. width: 100%;
  253. height: 120px;
  254. -webkit-transform-origin: 50% 50%;
  255. -moz-transform-origin: 50% 50%;
  256. -o-transform-origin: 50% 50%;
  257. -ms-transform-origin: 50% 50%;
  258. transform-origin: 50% 50%;
  259. -webit-transition: 200ms ease-out;
  260. -moz-transition: 200ms ease-out;
  261. -o-transition: 200ms ease-out;
  262. -ms-transition: 200ms ease-out;
  263. transition: 200ms ease-out;
  264. margin-bottom: 0;
  265. }
  266. .web-uploader .filelist li img {
  267. max-width: 95%;
  268. height: 120px
  269. }
  270. .web-uploader .filelist li p.error {
  271. background: $red-darker;
  272. color: #fff;
  273. position: absolute;
  274. bottom: 0;
  275. left: 0;
  276. height: 28px;
  277. line-height: 28px;
  278. width: 100%;
  279. z-index: 100
  280. }
  281. .web-uploader.file .filelist li p.error {
  282. background: $red-darker;
  283. color: #fff;
  284. font-weight: 500;
  285. padding: 0 20px;
  286. width: auto;
  287. margin-left: 40%;
  288. top: 0
  289. }
  290. .web-uploader .filelist li .success {
  291. display: block;
  292. position: absolute;
  293. left: 0;
  294. bottom: 0;
  295. height: 40px;
  296. width: 100%;
  297. z-index: 2;
  298. }
  299. .web-uploader .filelist li .success em {
  300. position: absolute;
  301. right: 0;
  302. border-color: transparent;
  303. border-style: solid;
  304. border-width: 0 0 33px 40px;
  305. border-bottom-color: $success;
  306. bottom: -1px
  307. }
  308. .web-uploader li .success i {
  309. position: absolute;
  310. bottom: 5px;
  311. right: 0;
  312. color: #fff;
  313. background: none;
  314. border: none;
  315. font-weight: bold;
  316. outline: none;
  317. text-align: center;
  318. width: 20px
  319. }
  320. .web-uploader .filelist div.file-panel {
  321. position: absolute;
  322. height: 32px;
  323. width: 100%;
  324. bottom: 0;
  325. left: 0;
  326. overflow: hidden;
  327. z-index: 10
  328. }
  329. .web-uploader .filelist div.file-panel span {
  330. display: inline;
  331. float: left;
  332. width: 24px;
  333. height: 24px;
  334. line-height: 26px;
  335. overflow: hidden;
  336. margin: 5px 3px 5px;
  337. font-weight: bold;
  338. cursor: pointer;
  339. color: #fff;
  340. border-radius: 1px;
  341. font-size: 14px
  342. }
  343. .web-uploader .filelist div.file-panel a:first-child {
  344. margin-left: 6px;
  345. }
  346. .web-uploader .filelist div.file-panel a {
  347. float: left;
  348. box-shadow: none;
  349. padding-left: 8px!important;
  350. padding-right: 8px!important;
  351. }
  352. .web-uploader .statusBar {
  353. height: 53px;
  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. background: lighten($primary, 2%);
  381. position: absolute
  382. }
  383. .web-uploader .statusBar .upload-progress span.text {
  384. position: relative;
  385. z-index: 10
  386. }
  387. .web-uploader .statusBar .info {
  388. display: inline-block;
  389. font-size: 14px;
  390. color: #666!important;
  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. }