attachment.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. @charset "utf-8";
  2. /* dialog样式 */
  3. .wrapper {
  4. zoom: 1;
  5. width: 630px;
  6. *width: 626px;
  7. height: 380px;
  8. margin: 0 auto;
  9. padding: 10px;
  10. position: relative;
  11. font-family: sans-serif;
  12. }
  13. /*tab样式框大小*/
  14. .tabhead {
  15. float: left;
  16. }
  17. .tabbody {
  18. width: 100%;
  19. height: 346px;
  20. position: relative;
  21. clear: both;
  22. }
  23. .tabbody .panel {
  24. position: absolute;
  25. width: 0;
  26. height: 0;
  27. background: #fff;
  28. overflow: hidden;
  29. display: none;
  30. }
  31. .tabbody .panel.focus {
  32. width: 100%;
  33. height: 346px;
  34. display: block;
  35. }
  36. /* 上传附件 */
  37. .tabbody #upload.panel {
  38. width: 0;
  39. height: 0;
  40. overflow: hidden;
  41. position: absolute !important;
  42. clip: rect(1px, 1px, 1px, 1px);
  43. background: #fff;
  44. display: block;
  45. }
  46. .tabbody #upload.panel.focus {
  47. width: 100%;
  48. height: 346px;
  49. display: block;
  50. clip: auto;
  51. }
  52. #upload .queueList {
  53. margin: 0;
  54. width: 100%;
  55. height: 100%;
  56. position: absolute;
  57. overflow: hidden;
  58. }
  59. #upload p {
  60. margin: 0;
  61. }
  62. .element-invisible {
  63. width: 0 !important;
  64. height: 0 !important;
  65. border: 0;
  66. padding: 0;
  67. margin: 0;
  68. overflow: hidden;
  69. position: absolute !important;
  70. clip: rect(1px, 1px, 1px, 1px);
  71. }
  72. #upload .placeholder {
  73. margin: 10px;
  74. border: 2px dashed #e6e6e6;
  75. *border: 0px dashed #e6e6e6;
  76. height: 172px;
  77. padding-top: 150px;
  78. text-align: center;
  79. background: url(./images/image.png) center 70px no-repeat;
  80. color: #cccccc;
  81. font-size: 18px;
  82. position: relative;
  83. top: 0;
  84. *top: 10px;
  85. }
  86. #upload .placeholder .webuploader-pick {
  87. font-size: 18px;
  88. background: #00b7ee;
  89. border-radius: 3px;
  90. line-height: 44px;
  91. padding: 0 30px;
  92. *width: 120px;
  93. color: #fff;
  94. display: inline-block;
  95. margin: 0 auto 20px auto;
  96. cursor: pointer;
  97. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  98. }
  99. #upload .placeholder .webuploader-pick-hover {
  100. background: #00a2d4;
  101. }
  102. #filePickerContainer {
  103. text-align: center;
  104. }
  105. #upload .placeholder .flashTip {
  106. color: #666666;
  107. font-size: 12px;
  108. position: absolute;
  109. width: 100%;
  110. text-align: center;
  111. bottom: 20px;
  112. }
  113. #upload .placeholder .flashTip a {
  114. color: #0785d1;
  115. text-decoration: none;
  116. }
  117. #upload .placeholder .flashTip a:hover {
  118. text-decoration: underline;
  119. }
  120. #upload .placeholder.webuploader-dnd-over {
  121. border-color: #999999;
  122. }
  123. #upload .filelist {
  124. list-style: none;
  125. margin: 0;
  126. padding: 0;
  127. overflow-x: hidden;
  128. overflow-y: auto;
  129. position: relative;
  130. height: 300px;
  131. }
  132. #upload .filelist:after {
  133. content: '';
  134. display: block;
  135. width: 0;
  136. height: 0;
  137. overflow: hidden;
  138. clear: both;
  139. }
  140. #upload .filelist li {
  141. width: 113px;
  142. height: 113px;
  143. background: url(./images/bg.png);
  144. text-align: center;
  145. margin: 9px 0 0 9px;
  146. *margin: 6px 0 0 6px;
  147. position: relative;
  148. display: block;
  149. float: left;
  150. overflow: hidden;
  151. font-size: 12px;
  152. }
  153. #upload .filelist li p.log {
  154. position: relative;
  155. top: -45px;
  156. }
  157. #upload .filelist li p.title {
  158. position: absolute;
  159. top: 0;
  160. left: 0;
  161. width: 100%;
  162. overflow: hidden;
  163. white-space: nowrap;
  164. text-overflow: ellipsis;
  165. top: 5px;
  166. text-indent: 5px;
  167. text-align: left;
  168. }
  169. #upload .filelist li p.progress {
  170. position: absolute;
  171. width: 100%;
  172. bottom: 0;
  173. left: 0;
  174. height: 8px;
  175. overflow: hidden;
  176. z-index: 50;
  177. margin: 0;
  178. border-radius: 0;
  179. background: none;
  180. -webkit-box-shadow: 0 0 0;
  181. }
  182. #upload .filelist li p.progress span {
  183. display: none;
  184. overflow: hidden;
  185. width: 0;
  186. height: 100%;
  187. background: #1483d8 url(./images/progress.png) repeat-x;
  188. -webit-transition: width 200ms linear;
  189. -moz-transition: width 200ms linear;
  190. -o-transition: width 200ms linear;
  191. -ms-transition: width 200ms linear;
  192. transition: width 200ms linear;
  193. -webkit-animation: progressmove 2s linear infinite;
  194. -moz-animation: progressmove 2s linear infinite;
  195. -o-animation: progressmove 2s linear infinite;
  196. -ms-animation: progressmove 2s linear infinite;
  197. animation: progressmove 2s linear infinite;
  198. -webkit-transform: translateZ(0);
  199. }
  200. @
  201. -webkit-keyframes progressmove { 0% {
  202. background-position: 0 0;
  203. }
  204. 100%
  205. {
  206. background-position
  207. :
  208. 17
  209. px
  210. 0;
  211. }
  212. }
  213. @
  214. -moz-keyframes progressmove { 0% {
  215. background-position: 0 0;
  216. }
  217. 100%
  218. {
  219. background-position
  220. :
  221. 17
  222. px
  223. 0;
  224. }
  225. }
  226. @
  227. keyframes progressmove { 0% {
  228. background-position: 0 0;
  229. }
  230. 100%
  231. {
  232. background-position
  233. :
  234. 17
  235. px
  236. 0;
  237. }
  238. }
  239. #upload .filelist li p.imgWrap {
  240. position: relative;
  241. z-index: 2;
  242. line-height: 113px;
  243. vertical-align: middle;
  244. overflow: hidden;
  245. width: 113px;
  246. height: 113px;
  247. -webkit-transform-origin: 50% 50%;
  248. -moz-transform-origin: 50% 50%;
  249. -o-transform-origin: 50% 50%;
  250. -ms-transform-origin: 50% 50%;
  251. transform-origin: 50% 50%;
  252. -webit-transition: 200ms ease-out;
  253. -moz-transition: 200ms ease-out;
  254. -o-transition: 200ms ease-out;
  255. -ms-transition: 200ms ease-out;
  256. transition: 200ms ease-out;
  257. }
  258. #upload .filelist li p.imgWrap.notimage {
  259. margin-top: 0;
  260. width: 111px;
  261. height: 111px;
  262. border: 1px #eeeeee solid;
  263. }
  264. #upload .filelist li p.imgWrap.notimage i.file-preview {
  265. margin-top: 15px;
  266. }
  267. #upload .filelist li img {
  268. width: 100%;
  269. }
  270. #upload .filelist li p.error {
  271. background: #f43838;
  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. display: none;
  281. }
  282. #upload .filelist li .success {
  283. display: block;
  284. position: absolute;
  285. left: 0;
  286. bottom: 0;
  287. height: 40px;
  288. width: 100%;
  289. z-index: 200;
  290. background: url(./images/success.png) no-repeat right bottom;
  291. background-image: url(./images/success.gif) \9;
  292. }
  293. #upload .filelist li.filePickerBlock {
  294. width: 113px;
  295. height: 113px;
  296. background: url(./images/image.png) no-repeat center 12px;
  297. border: 1px solid #eeeeee;
  298. border-radius: 0;
  299. }
  300. #upload .filelist li.filePickerBlock div.webuploader-pick {
  301. width: 100%;
  302. height: 100%;
  303. margin: 0;
  304. padding: 0;
  305. opacity: 0;
  306. background: none;
  307. font-size: 0;
  308. }
  309. #upload .filelist div.file-panel {
  310. position: absolute;
  311. height: 0;
  312. filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,
  313. startColorstr='#80000000', endColorstr='#80000000') \0;
  314. background: rgba(0, 0, 0, 0.5);
  315. width: 100%;
  316. top: 0;
  317. left: 0;
  318. overflow: hidden;
  319. z-index: 300;
  320. }
  321. #upload .filelist div.file-panel span {
  322. width: 24px;
  323. height: 24px;
  324. display: inline;
  325. float: right;
  326. text-indent: -9999px;
  327. overflow: hidden;
  328. background: url(./images/icons.png) no-repeat;
  329. background: url(./images/icons.gif) no-repeat \9;
  330. margin: 5px 1px 1px;
  331. cursor: pointer;
  332. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  333. -webkit-user-select: none;
  334. -moz-user-select: none;
  335. -ms-user-select: none;
  336. user-select: none;
  337. }
  338. #upload .filelist div.file-panel span.rotateLeft {
  339. display: none;
  340. background-position: 0 -24px;
  341. }
  342. #upload .filelist div.file-panel span.rotateLeft:hover {
  343. background-position: 0 0;
  344. }
  345. #upload .filelist div.file-panel span.rotateRight {
  346. display: none;
  347. background-position: -24px -24px;
  348. }
  349. #upload .filelist div.file-panel span.rotateRight:hover {
  350. background-position: -24px 0;
  351. }
  352. #upload .filelist div.file-panel span.cancel {
  353. background-position: -48px -24px;
  354. }
  355. #upload .filelist div.file-panel span.cancel:hover {
  356. background-position: -48px 0;
  357. }
  358. #upload .statusBar {
  359. height: 45px;
  360. border-bottom: 1px solid #dadada;
  361. margin: 0 10px;
  362. padding: 0;
  363. line-height: 45px;
  364. vertical-align: middle;
  365. position: relative;
  366. }
  367. #upload .statusBar .progress {
  368. border: 1px solid #1483d8;
  369. width: 198px;
  370. background: #fff;
  371. height: 18px;
  372. position: absolute;
  373. top: 12px;
  374. display: none;
  375. text-align: center;
  376. line-height: 18px;
  377. color: #6dbfff;
  378. margin: 0 10px 0 0;
  379. }
  380. #upload .statusBar .progress span.percentage {
  381. width: 0;
  382. height: 100%;
  383. left: 0;
  384. top: 0;
  385. background: #1483d8;
  386. position: absolute;
  387. }
  388. #upload .statusBar .progress span.text {
  389. position: relative;
  390. z-index: 10;
  391. }
  392. #upload .statusBar .info {
  393. display: inline-block;
  394. font-size: 14px;
  395. color: #666666;
  396. }
  397. #upload .statusBar .btns {
  398. position: absolute;
  399. top: 7px;
  400. right: 0;
  401. line-height: 30px;
  402. }
  403. #filePickerBtn {
  404. display: inline-block;
  405. float: left;
  406. }
  407. #upload .statusBar .btns .webuploader-pick, #upload .statusBar .btns .uploadBtn,
  408. #upload .statusBar .btns .uploadBtn.state-uploading, #upload .statusBar .btns .uploadBtn.state-paused
  409. {
  410. background: #ffffff;
  411. border: 1px solid #cfcfcf;
  412. color: #565656;
  413. padding: 0 18px;
  414. display: inline-block;
  415. border-radius: 3px;
  416. margin-left: 10px;
  417. cursor: pointer;
  418. font-size: 14px;
  419. float: left;
  420. -webkit-user-select: none;
  421. -moz-user-select: none;
  422. -ms-user-select: none;
  423. user-select: none;
  424. }
  425. #upload .statusBar .btns .webuploader-pick-hover, #upload .statusBar .btns .uploadBtn:hover,
  426. #upload .statusBar .btns .uploadBtn.state-uploading:hover, #upload .statusBar .btns .uploadBtn.state-paused:hover
  427. {
  428. background: #f0f0f0;
  429. }
  430. #upload .statusBar .btns .uploadBtn, #upload .statusBar .btns .uploadBtn.state-paused
  431. {
  432. background: #00b7ee;
  433. color: #fff;
  434. border-color: transparent;
  435. }
  436. #upload .statusBar .btns .uploadBtn:hover, #upload .statusBar .btns .uploadBtn.state-paused:hover
  437. {
  438. background: #00a2d4;
  439. }
  440. #upload .statusBar .btns .uploadBtn.disabled {
  441. pointer-events: none;
  442. filter: alpha(opacity = 60);
  443. -moz-opacity: 0.6;
  444. -khtml-opacity: 0.6;
  445. opacity: 0.6;
  446. }
  447. /* 图片管理样式 */
  448. #online {
  449. width: 100%;
  450. height: 336px;
  451. padding: 10px 0 0 0;
  452. }
  453. #online #fileList {
  454. width: 100%;
  455. height: 100%;
  456. overflow-x: hidden;
  457. overflow-y: auto;
  458. position: relative;
  459. }
  460. #online ul {
  461. display: block;
  462. list-style: none;
  463. margin: 0;
  464. padding: 0;
  465. }
  466. #online li {
  467. float: left;
  468. display: block;
  469. list-style: none;
  470. padding: 0;
  471. width: 113px;
  472. height: 113px;
  473. margin: 0 0 9px 9px;
  474. *margin: 0 0 6px 6px;
  475. background-color: #eee;
  476. overflow: hidden;
  477. cursor: pointer;
  478. position: relative;
  479. }
  480. #online li.clearFloat {
  481. float: none;
  482. clear: both;
  483. display: block;
  484. width: 0;
  485. height: 0;
  486. margin: 0;
  487. padding: 0;
  488. }
  489. #online li img {
  490. cursor: pointer;
  491. }
  492. #online li div.file-wrapper {
  493. cursor: pointer;
  494. position: absolute;
  495. display: block;
  496. width: 111px;
  497. height: 111px;
  498. border: 1px solid #eee;
  499. background: url("./images/bg.png") repeat;
  500. }
  501. #online li div span.file-title {
  502. display: block;
  503. padding: 0 3px;
  504. margin: 3px 0 0 0;
  505. font-size: 12px;
  506. height: 13px;
  507. color: #555555;
  508. text-align: center;
  509. width: 107px;
  510. white-space: nowrap;
  511. word-break: break-all;
  512. overflow: hidden;
  513. text-overflow: ellipsis;
  514. }
  515. #online li .icon {
  516. cursor: pointer;
  517. width: 113px;
  518. height: 113px;
  519. position: absolute;
  520. top: 0;
  521. left: 0;
  522. z-index: 2;
  523. border: 0;
  524. background-repeat: no-repeat;
  525. }
  526. #online li .icon:hover {
  527. width: 107px;
  528. height: 107px;
  529. border: 3px solid #1094fa;
  530. }
  531. #online li.selected .icon {
  532. background-image: url(images/success.png);
  533. background-image: url(images/success.gif) \9;
  534. background-position: 75px 75px;
  535. }
  536. #online li.selected .icon:hover {
  537. width: 107px;
  538. height: 107px;
  539. border: 3px solid #1094fa;
  540. background-position: 72px 72px;
  541. }
  542. /* 在线文件的文件预览图标 */
  543. i.file-preview {
  544. display: block;
  545. margin: 10px auto;
  546. width: 70px;
  547. height: 70px;
  548. background-image: url("./images/file-icons.png");
  549. background-image: url("./images/file-icons.gif") \9;
  550. background-position: -140px center;
  551. background-repeat: no-repeat;
  552. }
  553. i.file-preview.file-type-dir {
  554. background-position: 0 center;
  555. }
  556. i.file-preview.file-type-file {
  557. background-position: -140px center;
  558. }
  559. i.file-preview.file-type-filelist {
  560. background-position: -210px center;
  561. }
  562. i.file-preview.file-type-zip, i.file-preview.file-type-rar, i.file-preview.file-type-7z,
  563. i.file-preview.file-type-tar, i.file-preview.file-type-gz, i.file-preview.file-type-bz2
  564. {
  565. background-position: -280px center;
  566. }
  567. i.file-preview.file-type-xls, i.file-preview.file-type-xlsx {
  568. background-position: -350px center;
  569. }
  570. i.file-preview.file-type-doc, i.file-preview.file-type-docx {
  571. background-position: -420px center;
  572. }
  573. i.file-preview.file-type-ppt, i.file-preview.file-type-pptx {
  574. background-position: -490px center;
  575. }
  576. i.file-preview.file-type-vsd {
  577. background-position: -560px center;
  578. }
  579. i.file-preview.file-type-pdf {
  580. background-position: -630px center;
  581. }
  582. i.file-preview.file-type-txt, i.file-preview.file-type-md, i.file-preview.file-type-json,
  583. i.file-preview.file-type-htm, i.file-preview.file-type-xml, i.file-preview.file-type-html,
  584. i.file-preview.file-type-js, i.file-preview.file-type-css, i.file-preview.file-type-php,
  585. i.file-preview.file-type-jsp, i.file-preview.file-type-asp {
  586. background-position: -700px center;
  587. }
  588. i.file-preview.file-type-apk {
  589. background-position: -770px center;
  590. }
  591. i.file-preview.file-type-exe {
  592. background-position: -840px center;
  593. }
  594. i.file-preview.file-type-ipa {
  595. background-position: -910px center;
  596. }
  597. i.file-preview.file-type-mp4, i.file-preview.file-type-swf, i.file-preview.file-type-mkv,
  598. i.file-preview.file-type-avi, i.file-preview.file-type-flv, i.file-preview.file-type-mov,
  599. i.file-preview.file-type-mpg, i.file-preview.file-type-mpeg, i.file-preview.file-type-ogv,
  600. i.file-preview.file-type-webm, i.file-preview.file-type-rm, i.file-preview.file-type-rmvb
  601. {
  602. background-position: -980px center;
  603. }
  604. i.file-preview.file-type-ogg, i.file-preview.file-type-wav, i.file-preview.file-type-wmv,
  605. i.file-preview.file-type-mid, i.file-preview.file-type-mp3 {
  606. background-position: -1050px center;
  607. }
  608. i.file-preview.file-type-jpg, i.file-preview.file-type-jpeg, i.file-preview.file-type-gif,
  609. i.file-preview.file-type-bmp, i.file-preview.file-type-png, i.file-preview.file-type-psd
  610. {
  611. background-position: -140px center;
  612. }