attachment.css 14KB

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