upload.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. $dialogWidth:652px;
  2. $dialogZindex:811213;
  3. $fontsize:14px;
  4. .uedbody{
  5. div, dl, dt, dd, ul, li,ol, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, button, textarea, blockquote,p{margin:0; padding:0;}
  6. h1,h2,h3,h4,h5,h6 {font-weight:normal;}
  7. li{list-style-type:none;}
  8. ol,ul,dl{list-style:none;}
  9. em{font-style:normal;}
  10. img{border:none;vertical-align:middle;}
  11. select,label,input{vertical-align:middle; padding:0; margin:0;outline:medium;font-size:12px;}
  12. textarea{resize: none; line-height:18px;}
  13. table { border-collapse: collapse; border-spacing: 0; empty-cell:show;}
  14. a{text-decoration:none;color:#333;outline:none; cursor:pointer;}
  15. a:hover{cursor:pointer;blr:expression(this.onFocus=this.blur());}
  16. box-sizing : content-box !important;
  17. -webkit-box-sizing: content-box !important;
  18. -moz-box-sizing: content-box !important;
  19. * {
  20. padding: 0; margin: 0;
  21. box-sizing : content-box !important;
  22. -webkit-box-sizing: content-box !important;
  23. -moz-box-sizing: content-box !important;
  24. }
  25. .clearfix:before, .clearfix:after {
  26. content: "";
  27. display: table;
  28. }
  29. .clearfix:after{
  30. clear: both;
  31. }
  32. .clearfix{
  33. *zoom: 1;
  34. }
  35. .fr{float: right;}
  36. .fl{float: left;}
  37. width: $dialogWidth;
  38. position: fixed;
  39. padding: 2px 0px 0px 2px;
  40. background-color: #FFF;
  41. border: 1px solid rgba(0, 0, 0, 0.2);
  42. border-radius: 6px;
  43. box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  44. z-index: $dialogZindex;
  45. font-family:"微软雅黑";
  46. font-size: 12px;
  47. margin: 0px auto;
  48. //start of ued_title
  49. .ued_title{
  50. height: 26px;
  51. border-bottom: 1px solid #C6C6C6;
  52. background: transparent url("images/dialog-title-bg.png") repeat-x scroll 0% 0%;
  53. position: relative;
  54. cursor: move;
  55. .icon{background: url("images/icons-all.gif") no-repeat center;}
  56. .uedbar {
  57. span{
  58. font-weight: bold;
  59. font-size: 14px;
  60. color: #444;
  61. line-height: 26px;
  62. padding-left: 5px;
  63. }
  64. }
  65. .close_btn{
  66. height: 20px;
  67. width: 20px;
  68. cursor: pointer;
  69. background-position :0px -59px;
  70. position: absolute;
  71. right: 5px;
  72. top: 3px;
  73. &:hover{background-position: 0px -89px;}
  74. }
  75. }
  76. //end of ued_title
  77. //button styles
  78. .btn {
  79. display: inline-block;
  80. margin-bottom: 0px;
  81. margin-right: 5px;
  82. padding: 4px 10px;
  83. font-weight: 400;
  84. text-align: center;
  85. cursor: pointer;
  86. border: 1px solid transparent;
  87. white-space: nowrap;
  88. font-size: $fontsize;
  89. border-radius: 3px;
  90. -moz-user-select: none;
  91. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  92. padding: 5px 14px;
  93. }
  94. .btn-default {
  95. border: 1px solid #CFCFCF;
  96. color: #565656;
  97. background: #ffffff;
  98. &:hover {
  99. background: #f0f0f0;
  100. }
  101. }
  102. .btn-primary {
  103. background:#00b7ee;
  104. color: #ffffff;
  105. &:hover {
  106. background: #00a2d4;
  107. }
  108. }//button style end
  109. .btn.disabled {
  110. cursor: not-allowed;
  111. opacity: .65;
  112. &:hover {
  113. background: #00b7ee;
  114. }
  115. }
  116. //start of wrapper
  117. .wrapper {
  118. width: 630px;
  119. height: 380px;
  120. margin: 0px auto;
  121. padding: 10px;
  122. position: relative;
  123. font-family: sans-serif;
  124. //start of wra_head
  125. .wra_head {
  126. span {
  127. float: left;
  128. padding: 0px 5px;
  129. margin-right:3px;
  130. height: 30px;
  131. border: 1px solid #CCC;
  132. background: transparent url("images/dialog-title-bg.png") repeat-x scroll 0% 0%;
  133. text-align: center;
  134. line-height: 30px;
  135. cursor: pointer;
  136. position: relative;
  137. }
  138. span.focus {
  139. height: 31px;
  140. border-bottom: medium none;
  141. background: #FFF none repeat scroll 0% 0%;
  142. position: relative;
  143. z-index: 2;
  144. }
  145. }//end of wra_head
  146. //start of wra_body
  147. .wra_body{
  148. width: 100%;
  149. height: 346px;
  150. clear: both;
  151. margin: 0px auto;
  152. border: 1px solid #CCC;
  153. display: block;
  154. clip: auto;
  155. overflow: hidden;
  156. top: -1px;
  157. position: relative;
  158. //upload panel start
  159. .upload-panel {
  160. .wra_pla {
  161. zoom: 1; overflow: hidden;
  162. text-align: center;
  163. .upload-image-placeholder {
  164. margin: 10px;
  165. border: 2px dashed #e6e6e6;
  166. height: 172px;
  167. padding-top: 150px;
  168. text-align: center;
  169. background: url("images/image.png") center 70px no-repeat;
  170. position: relative;
  171. top: 0;
  172. .webuploader-element-invisible {
  173. //width: 145px;
  174. //height: 40px;
  175. //position: absolute;
  176. //left: 225px;
  177. opacity: 0;
  178. width: 0; height: 0;
  179. }
  180. .image-select {
  181. padding: 10px 30px;
  182. cursor: pointer;
  183. }
  184. }
  185. }
  186. //image list box start
  187. .image-list-box {
  188. .wra_bar {
  189. border-bottom: 1px solid #DADADA;
  190. padding: 8px;
  191. vertical-align: middle;
  192. position: relative;
  193. zoom: 1; overflow: hidden;
  194. .info{
  195. font-size: $fontsize;
  196. color: #666;
  197. margin-top: 6px;
  198. }
  199. .fr {
  200. .btn {padding: 6px 15px;}
  201. }
  202. }
  203. //filelist start
  204. .filelist{
  205. list-style: outside none none;
  206. margin: 0px;
  207. padding: 0px;
  208. overflow-x: hidden;
  209. overflow-y: auto;
  210. position: relative;
  211. height: 300px;
  212. li {
  213. width: 113px;
  214. height: 113px;
  215. margin: 9px 0px 0px 9px;
  216. position: relative;
  217. display: block;
  218. float: left;
  219. overflow: hidden;
  220. font-size: 12px;
  221. .imgWrap{
  222. position: relative;
  223. vertical-align: middle;
  224. text-align: center;
  225. overflow: hidden;
  226. width: 113px;
  227. height: 113px;
  228. transform-origin: 50% 50% 0px;
  229. transition: all 200ms ease-out 0s;
  230. }
  231. //file opt box start
  232. .file-opt-box{
  233. position: absolute;
  234. display: none;
  235. background: rgba(0, 0, 0, 0.5) none repeat scroll 0% 0%;
  236. width: 100%;
  237. top: 0px;
  238. left: 0px;
  239. overflow: hidden;
  240. span {
  241. width: 24px;
  242. height: 24px;
  243. display: inline;
  244. float: right;
  245. text-indent: -9999px;
  246. overflow: hidden;
  247. background: url("images/icons.png") no-repeat;
  248. margin: 5px 1px 1px;
  249. cursor: pointer;
  250. -webkit-tap-highlight-color: rgba(0,0,0,0);
  251. -webkit-user-select: none;
  252. -moz-user-select: none;
  253. -ms-user-select: none;
  254. user-select: none;
  255. }
  256. .remove{
  257. background-position: -48px -24px;
  258. &:hover{
  259. background-position: -48px -0px;
  260. }
  261. }
  262. .rotateRight{
  263. display: none;
  264. background-position: -24px -24px;
  265. &:hover{
  266. background-position: -24px -0px;
  267. }
  268. }
  269. .rotateLeft{
  270. display: none;
  271. background-position: 0px -24px;
  272. &:hover{
  273. background-position: 0px 0px;
  274. }
  275. }
  276. }//file opt box end
  277. .success{
  278. background: url("images/success.png") no-repeat right;
  279. position: absolute;
  280. display: none;
  281. left: 0px;
  282. bottom: 0px;
  283. height: 40px;
  284. width: 100%;
  285. }
  286. .error {
  287. position: absolute;
  288. width: 100%;
  289. display: none;
  290. background: rgba(255, 255, 255, 0.7) none repeat scroll 0% 0%;
  291. left: 0;
  292. padding:5px 3px;
  293. color: #cc0000;
  294. border: 1px solid #cccccc;
  295. bottom: 0;
  296. }
  297. .progress {
  298. position: absolute;
  299. width: 100%;
  300. bottom: 0;
  301. left: 0;
  302. bottom: 0;
  303. height: 8px;
  304. overflow: hidden;
  305. z-index: 50;
  306. margin: 0;
  307. border-radius: 0;
  308. background: none;
  309. -webkit-box-shadow: 0 0 0;
  310. span {
  311. width: 0;
  312. height: 100%;
  313. background: #1483d8 url("images/progress.png") repeat-x;
  314. -webit-transition: width 200ms linear;
  315. -moz-transition: width 200ms linear;
  316. -o-transition: width 200ms linear;
  317. -ms-transition: width 200ms linear;
  318. transition: width 200ms linear;
  319. -webkit-animation: progressmove 2s linear infinite;
  320. -moz-animation: progressmove 2s linear infinite;
  321. -o-animation: progressmove 2s linear infinite;
  322. -ms-animation: progressmove 2s linear infinite;
  323. animation: progressmove 2s linear infinite;
  324. -webkit-transform: translateZ(0);
  325. }
  326. }
  327. }//end li
  328. }//filelist end
  329. }//image list box end
  330. }//upload panel end
  331. //image online start
  332. .online{
  333. width: 100%;
  334. height: 336px;
  335. padding: 10px 0px 0px;
  336. display: none;
  337. .imagelist {
  338. width: 100%;
  339. height: 100%;
  340. overflow-x: hidden;
  341. overflow-y: auto;
  342. position: relative;
  343. .list {
  344. li {
  345. float: left;
  346. display: block;
  347. list-style: outside none none;
  348. padding: 0px;
  349. width: 113px;
  350. height: 113px;
  351. margin: 0px 0px 9px 9px;
  352. background-color: #EEE;
  353. overflow: hidden;
  354. cursor: pointer;
  355. position: relative;
  356. img{cursor: pointer;}
  357. span.ic {
  358. position: absolute;
  359. top: 0px;
  360. left: 0px;
  361. cursor: pointer;
  362. width: 113px;
  363. height: 113px;
  364. .img-size {
  365. font-size:12px;
  366. padding: 5px;
  367. background:rgba(0,0,0,0.6);
  368. display: none;
  369. color: #ffffff;
  370. }
  371. &:hover{
  372. width: 107px;
  373. height: 107px;
  374. border: 3px solid #1094FA;
  375. background-position: 72px 72px;
  376. .img-size {
  377. display: inline-block;
  378. width: 97px;
  379. }
  380. }
  381. }
  382. span.selected {
  383. background: url("images/success.png") no-repeat 75px 75px;
  384. }
  385. }
  386. }
  387. }
  388. } //image online end
  389. //image search start
  390. .searchbox {
  391. width: 100%;
  392. padding: 10px 0px 0px;
  393. zoom: 1; overflow: hidden;
  394. display: none;
  395. //搜索条
  396. .search-bar {
  397. .searTxt{
  398. margin-left: 5px;
  399. background: #FFF none repeat scroll 0% 0%;
  400. width: 300px;
  401. height: 21px;
  402. line-height: 21px;
  403. padding: 3px 6px;
  404. font-size: $fontsize;
  405. line-height: 1.42857;
  406. border: 1px solid #CCC;
  407. border-radius: 4px;
  408. box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;
  409. transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
  410. margin-right:10px;
  411. }
  412. .searchBtn {
  413. color: #FFF;
  414. border-color: #285E8E;
  415. background-color: #3B97D7;
  416. }
  417. .searchRese{
  418. color: #333;
  419. border-color: #CCC;
  420. background-color: #FFF;
  421. }
  422. }
  423. .search-imagelist-box {
  424. width: 100%;
  425. height: 292px;
  426. overflow-x: hidden;
  427. overflow-y: auto;
  428. position: relative;
  429. margin-top:10px;
  430. .search-list {
  431. zoom:1; overflow: hidden;
  432. li {
  433. float: left;
  434. display: block;
  435. list-style: outside none none;
  436. padding: 0px;
  437. width: 113px;
  438. height: 113px;
  439. margin: 0px 0px 9px 9px;
  440. background-color: #EEE;
  441. overflow: hidden;
  442. cursor: pointer;
  443. position: relative;
  444. img {
  445. cursor: pointer;
  446. }
  447. span.ic {
  448. position: absolute;
  449. top: 0px;
  450. left: 0px;
  451. cursor: pointer;
  452. width: 113px;
  453. height: 113px;
  454. .img-size {
  455. font-size:12px;
  456. padding: 5px;
  457. background:rgba(0,0,0,0.6);
  458. display: none;
  459. color: #ffffff;
  460. }
  461. &:hover {
  462. width: 107px;
  463. height: 107px;
  464. border: 3px solid #1094FA;
  465. background-position: 72px 72px;
  466. overflow: hidden;
  467. .img-size {
  468. display: inline-block;
  469. width: 97px;
  470. }
  471. }
  472. }
  473. span.selected {
  474. background: url("images/success.png") no-repeat 75px 75px;
  475. }
  476. }
  477. }
  478. }
  479. }//image search start end
  480. .no-data {
  481. line-height: 40px;
  482. height: 40px;
  483. font-size:$fontsize;
  484. color: #999999;
  485. text-align: center;
  486. display: none;
  487. .error {
  488. color: #cc0000;
  489. }
  490. }
  491. .loading-icon {
  492. background:rgba(0,0,0,0.4) url("images/loader.gif") no-repeat center center;
  493. position: absolute;
  494. width: 100%;
  495. height: 346px;
  496. top:0; left: 0;
  497. display: none;
  498. text-align: center;
  499. .loading-message {
  500. position: absolute;
  501. font-size: 14px;
  502. color: #f0f0f0;
  503. top: 210px;
  504. left:253px;
  505. }
  506. }
  507. //图片占位符
  508. .icon-placeholder {
  509. background-size: 113px 113px;
  510. display: block;
  511. width: 113px;
  512. height: 113px;
  513. }
  514. .icon-aep, .icon-aepx {background-image: url("icons/aep.png");}
  515. .icon-asp {background-image: url("icons/asp.png");}
  516. .icon-avi {background-image: url("icons/avi.png");}
  517. .icon-c, .icon-cpp {background-image: url("icons/c.png");}
  518. .icon-conf {background-image: url("icons/conf.png");}
  519. .icon-css {background-image: url("icons/css.png");}
  520. .icon-htm,.icon-html {background-image: url("icons/htm.png");}
  521. .icon-default {background-image: url("icons/txt.png");}
  522. .icon-doc,.icon-docx {background-image: url("icons/doc.png");}
  523. .icon-eps {background-image: url("icons/eps.png");}
  524. .icon-fla,.icon-swf {background-image: url("icons/fla.png");}
  525. .icon-idn {background-image: url("icons/idn.png");}
  526. .icon-ini {background-image: url("icons/ini.png");}
  527. .icon-java, .icon-jar, .icon-war {background-image: url("icons/java.png");}
  528. .icon-js {background-image: url("icons/js.png");}
  529. .icon-jsf {background-image: url("icons/jsf.png");}
  530. .icon-md, .icon-markdown {background-image: url("icons/markdown.png");}
  531. .icon-mdb {background-image: url("icons/mdb.png");}
  532. .icon-midi {background-image: url("icons/midi.png");}
  533. .icon-mov {background-image: url("icons/mov.png");}
  534. .icon-mp3 {background-image: url("icons/mp3.png");}
  535. .icon-mpeg {background-image: url("icons/mpeg.png");}
  536. .icon-pdf {background-image: url("icons/pdf.png");}
  537. .icon-php {background-image: url("icons/php.png");}
  538. .icon-ppt, .icon-pptx {background-image: url("icons/ppt.png");}
  539. .icon-psd {background-image: url("icons/psd.png");}
  540. .icon-pst {background-image: url("icons/pst.png");}
  541. .icon-pub {background-image: url("icons/pub.png");}
  542. .icon-py {background-image: url("icons/py.png");}
  543. .icon-rb {background-image: url("icons/rb.png");}
  544. .icon-rm, .icon-rmvb {background-image: url("icons/rmvb.png");}
  545. .icon-scss {background-image: url("icons/scss.png");}
  546. .icon-tif {background-image: url("icons/tif.png");}
  547. .icon-txt {background-image: url("icons/txt.png");}
  548. .icon-vsd {background-image: url("icons/vsd.png");}
  549. .icon-wav {background-image: url("icons/wav.png");}
  550. .icon-wma {background-image: url("icons/wma.png");}
  551. .icon-wmv {background-image: url("icons/wmv.png");}
  552. .icon-xls, .icon-xlsx {background-image: url("icons/xls.png");}
  553. .icon-xml {background-image: url("icons/xml.png");}
  554. .icon-zip, .icon-rar, .icon-tgz, .icon-gz, .icon-tar, .icon-7z {background-image: url("icons/zip.png");}
  555. }//end of wra_body
  556. .wra_body_server {
  557. height: 380px;
  558. .online {
  559. display: block !important;
  560. height: 365px;
  561. }
  562. }
  563. }//start of wrapper
  564. .wra-btn-group {
  565. clear: both;
  566. zoom: 1;
  567. text-align: right;
  568. padding: 10px 20px 20px 0px;
  569. .tip-text {
  570. float: left;
  571. padding: 5px 10px;
  572. color: #999;
  573. font-size: 14px;
  574. }
  575. }
  576. }