common.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. $inputBorderColor : #cccccc;
  2. $inputFocusBorderColor : #66afe9;
  3. $inputHeight : 30px;
  4. $editorBorderStyle : 1px solid #e1e1e1;
  5. $dialogBorderStyle : 1px solid #cccccc;
  6. $menuBgColor : #f5f5f5;
  7. @mixin ke-inline-block {
  8. display: -moz-inline-stack;
  9. display: inline-block;
  10. vertical-align: middle;
  11. zoom: 1;
  12. *display: inline;
  13. }
  14. //工具栏图标样式
  15. @mixin ke-toolbar-icon {
  16. font-size: 0;
  17. line-height: 0;
  18. overflow: hidden;
  19. display: block;
  20. width: 16px;
  21. height: 16px;
  22. margin: 0px 2px;
  23. }
  24. //阴影
  25. @mixin ke-shadow {
  26. box-shadow: 1px 1px 3px #A0A0A0;
  27. -moz-box-shadow: 1px 1px 3px #A0A0A0;
  28. -webkit-box-shadow: 1px 1px 3px #A0A0A0;
  29. filter: progid:DXImageTransform.Microsoft.Shadow(color='#A0A0A0', Direction=135, Strength=3);
  30. }
  31. /**
  32. 公共样式
  33. */
  34. //清除浮动
  35. .ke-clearfix {
  36. zoom: 1;
  37. clear: both;
  38. }
  39. .ke-clearfix:after {
  40. content: ".";
  41. display: block;
  42. clear: both;
  43. font-size: 0;
  44. height: 0;
  45. line-height: 0;
  46. visibility: hidden;
  47. }
  48. // 过渡动画
  49. .ke-animated {
  50. animation: zoomIn;
  51. animation-duration: 0.3s;
  52. animation-fill-mode: both;
  53. }
  54. @keyframes zoomIn {
  55. from {
  56. opacity: 0;
  57. transform: scale3d(0.3, 0.3, 0.3);
  58. }
  59. 50% {
  60. opacity: 1;
  61. }
  62. }
  63. //遮罩层
  64. .ke-dialog-mask {
  65. background-color: #FFF;
  66. filter: alpha(opacity=50);
  67. opacity: 0.5;
  68. }
  69. .ke-dialog-lock {
  70. background-color: #FFF;
  71. filter: alpha(opacity=50);
  72. opacity: 0.5;
  73. z-index: 811213;
  74. left: 0;
  75. top: 0;
  76. position: absolute;
  77. }
  78. /**
  79. 编辑器样式开始
  80. */
  81. .ke-container {
  82. display: block;
  83. //border: $editorBorderStyle;
  84. background-color: #FFF;
  85. overflow: hidden;
  86. margin: 0;
  87. padding: 0;
  88. box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 1px 1px rgba(0,0,0,0.16);
  89. /**
  90. 通用样式
  91. */
  92. .ke-shadow {
  93. @include ke-shadow;
  94. background-color: #F0F0EE;
  95. }
  96. .ke-menu a,
  97. .ke-menu a:hover,
  98. .ke-dialog a,
  99. .ke-dialog a:hover {
  100. color: #337FE5;
  101. text-decoration: none;
  102. }
  103. /**
  104. toolbar 样式
  105. */
  106. .ke-toolbar {
  107. //border-bottom: $editorBorderStyle;
  108. text-align: left;
  109. overflow: hidden;
  110. zoom: 1;
  111. padding: 0px 5px;
  112. .ke-outline {
  113. //border: 1px solid #f5f5f5;
  114. padding: 10px 5px;
  115. font-size: 0;
  116. line-height: 0;
  117. cursor: pointer;
  118. display: block;
  119. float: left;
  120. /**
  121. * 按钮通用样式
  122. */
  123. .ke-toolbar-icon {
  124. @include ke-toolbar-icon;
  125. }
  126. }
  127. .ke-on {
  128. background: #ebebeb;
  129. }
  130. .ke-selected {
  131. background-color: #ebebeb;
  132. }
  133. .ke-disabled {
  134. cursor: default;
  135. }
  136. .ke-separator {
  137. height: 16px;
  138. margin: 2px 3px;
  139. border-left: 1px solid #A0A0A0;
  140. border-right: 1px solid #FFFFFF;
  141. border-top: 0;
  142. border-bottom: 0;
  143. width: 0;
  144. font-size: 0;
  145. line-height: 0;
  146. overflow: hidden;
  147. display: block;
  148. float: left;
  149. }
  150. .ke-hr {
  151. clear: both;
  152. height: 1px;
  153. width: calc(100% - (2 * 2px));
  154. background: #ebebeb;
  155. }
  156. }
  157. //end ke-toolbar
  158. /**
  159. ke-edit
  160. */
  161. .ke-edit {
  162. padding: 0;
  163. .ke-edit-iframe,
  164. .ke-edit-textarea {
  165. border: 0;
  166. margin: 0;
  167. padding: 0;
  168. overflow: auto;
  169. }
  170. .ke-edit-textarea {
  171. font: 12px/1.5 "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
  172. color: #000;
  173. overflow: auto;
  174. resize: none;
  175. &:focus {
  176. outline: none;
  177. }
  178. }
  179. }
  180. //end ke-edit
  181. /**
  182. statusbar start
  183. */
  184. .ke-statusbar {
  185. position: relative;
  186. background-color: #f5f5f5;
  187. border-top: $editorBorderStyle;
  188. font-size: 0;
  189. line-height: 0;
  190. *height: 12px;
  191. overflow: hidden;
  192. text-align: center;
  193. cursor: s-resize;
  194. display: none;
  195. .ke-statusbar-center-icon {
  196. background-position: -0px -754px;
  197. width: 15px;
  198. height: 11px;
  199. }
  200. .ke-statusbar-right-icon {
  201. position: absolute;
  202. right: 0;
  203. bottom: 0;
  204. cursor: se-resize;
  205. width: 11px;
  206. height: 11px;
  207. }
  208. }
  209. //end ke-statusbar
  210. }
  211. /**
  212. menu 右键菜单
  213. */
  214. .ke-menu {
  215. border: $dialogBorderStyle;
  216. background-color: $menuBgColor;
  217. color: #222222;
  218. padding: 2px;
  219. font-family: "sans serif", tahoma, verdana, helvetica;
  220. font-size: 12px;
  221. text-align: left;
  222. overflow: hidden;
  223. .ke-menu-item {
  224. border: 1px solid #F1F1F1;
  225. background-color: #F1F1F1;
  226. color: #222222;
  227. height: 24px;
  228. overflow: hidden;
  229. cursor: pointer;
  230. .ke-inline-block {
  231. @include ke-inline-block;
  232. .ke-inline-block {
  233. @include ke-inline-block;
  234. }
  235. }
  236. .ke-menu-item-left {
  237. width: 27px;
  238. text-align: center;
  239. overflow: hidden;
  240. }
  241. .ke-menu-item-center {
  242. width: 0;
  243. height: 24px;
  244. border-left: 1px solid #E3E3E3;
  245. border-right: 1px solid #FFFFFF;
  246. border-top: 0;
  247. border-bottom: 0;
  248. }
  249. .ke-menu-item-center-on {
  250. border-left: 1px solid #E9EFF6;
  251. border-right: 1px solid #E9EFF6;
  252. }
  253. .ke-menu-item-right {
  254. border: 0;
  255. padding: 0 0 0 5px;
  256. line-height: 24px;
  257. text-align: left;
  258. overflow: hidden;
  259. }
  260. .ke-menu-separator {
  261. margin: 2px 0;
  262. height: 0;
  263. overflow: hidden;
  264. border-top: $editorBorderStyle;
  265. border-bottom: 1px solid #FFFFFF;
  266. border-left: 0;
  267. border-right: 0;
  268. }
  269. }
  270. .ke-menu-item-on {
  271. border: 1px solid #5690D2;
  272. background-color: #E9EFF6;
  273. }
  274. /**
  275. 表情插件
  276. */
  277. .ke-plugin-emoticons {
  278. position: relative;
  279. .ke-preview {
  280. position: absolute;
  281. text-align: center;
  282. margin: 2px;
  283. padding: 10px;
  284. top: 0;
  285. border: 1px solid #A0A0A0;
  286. background-color: #FFFFFF;
  287. display: none;
  288. .ke-preview-img {
  289. border: 0;
  290. margin: 0;
  291. padding: 0;
  292. }
  293. } //end ke-preview
  294. .ke-table {
  295. border: 0;
  296. margin: 0;
  297. padding: 0;
  298. border-collapse: separate;
  299. .ke-cell {
  300. margin: 0;
  301. padding: 1px;
  302. border: 1px solid #f5f5f5;
  303. cursor: pointer;
  304. .ke-img {
  305. display: block;
  306. background-repeat: no-repeat;
  307. overflow: hidden;
  308. margin: 2px;
  309. width: 24px;
  310. height: 24px;
  311. margin: 0;
  312. padding: 0;
  313. border: 0;
  314. }
  315. }
  316. .ke-on {
  317. border: 1px solid #5690D2;
  318. background-color: #E9EFF6;
  319. }
  320. } //end ke-table
  321. .ke-page {
  322. text-align: right;
  323. margin: 5px;
  324. padding: 0;
  325. border: 0;
  326. font: 12px/1 "sans serif", tahoma, verdana, helvetica;
  327. color: #333;
  328. text-decoration: none;
  329. }
  330. }
  331. }
  332. //menu end
  333. /**
  334. colorpicker
  335. */
  336. .ke-colorpicker {
  337. border: 1px solid #A0A0A0;
  338. background-color: #F1F1F1;
  339. color: #222222;
  340. padding: 2px;
  341. .ke-colorpicker-table {
  342. border: 0;
  343. margin: 0;
  344. padding: 0;
  345. border-collapse: separate;
  346. .ke-colorpicker-cell {
  347. font-size: 0;
  348. line-height: 0;
  349. border: 1px solid #F0F0EE;
  350. cursor: pointer;
  351. margin: 3px;
  352. padding: 0;
  353. .ke-colorpicker-cell-color {
  354. width: 14px;
  355. height: 14px;
  356. margin: 3px;
  357. padding: 0;
  358. border: 0;
  359. }
  360. }
  361. .ke-colorpicker-cell-top {
  362. font-family: "sans serif", tahoma, verdana, helvetica;
  363. font-size: 12px;
  364. line-height: 24px;
  365. border: 1px solid #F1F1F1;
  366. cursor: pointer;
  367. margin: 0;
  368. padding: 0;
  369. text-align: center;
  370. }
  371. .ke-colorpicker-cell-on {
  372. border: 1px solid #5690D2;
  373. }
  374. .ke-colorpicker-cell-selected {
  375. border: 1px solid #2446AB;
  376. }
  377. }
  378. } //colorpicker end
  379. /**
  380. dialog
  381. */
  382. .ke-dialog {
  383. margin: 0;
  384. padding: 0;
  385. border: $dialogBorderStyle;
  386. zoom: 1;
  387. @include ke-shadow;
  388. border-radius: 5px;
  389. -moz-border-radius: 5px;
  390. -webkit-border-radius: 5px;
  391. overflow: hidden;
  392. // start ke-dialog-header
  393. .ke-dialog-header {
  394. border: 0;
  395. margin: 0;
  396. font-weight: bold;
  397. font-size: 14px;
  398. height: 30px;
  399. line-height: 30px;
  400. padding: 0px 10px;
  401. text-align: left;
  402. color: #222;
  403. cursor: move;
  404. border-top-left-radius: 6px;
  405. border-top-right-radius: 6px;
  406. border-bottom: 1px solid #c6c6c6;
  407. background: transparent url(../common/dialog-title-bg.png) repeat-x scroll 0 0;
  408. position: relative;
  409. cursor: move;
  410. .ke-dialog-icon-close {
  411. height: 20px;
  412. width: 20px;
  413. cursor: pointer;
  414. background: url("../common/icons-all.gif") 0 -59px;
  415. position: absolute;
  416. right: 5px;
  417. top: 4px;
  418. &:hover {
  419. background-position: 0px -89px;
  420. }
  421. }
  422. } //end ke-dialog-header
  423. //start ke-content
  424. .ke-dialog-content {
  425. background-color: #FFF;
  426. width: 100%;
  427. height: 100%;
  428. color: #333;
  429. outline: 0;
  430. zoom: 1;
  431. // ke-dialog-body start
  432. .ke-dialog-body {
  433. font: 12px/1.5 "sans serif", tahoma, verdana, helvetica;
  434. text-align: left;
  435. overflow: hidden;
  436. width: 100%;
  437. .ke-textarea {
  438. display: block;
  439. width: 408px;
  440. height: 260px;
  441. font-family: "sans serif", tahoma, verdana, helvetica;
  442. font-size: 12px;
  443. border: 1px solid $inputBorderColor;
  444. &:focus {
  445. border-color: $inputFocusBorderColor;
  446. outline: none;
  447. }
  448. }
  449. .ke-select {
  450. display: -moz-inline-stack;
  451. display: inline-block;
  452. vertical-align: middle;
  453. zoom: 1;
  454. *display: inline;
  455. width: auto;
  456. border: 1px solid $inputBorderColor;
  457. height: $inputHeight;
  458. }
  459. .ke-form {
  460. margin: 0;
  461. padding: 0;
  462. }
  463. .ke-input-number {
  464. width: 50px;
  465. }
  466. .ke-input-checkbox {
  467. position: relative;
  468. top:6px;
  469. }
  470. textarea {
  471. display: block;
  472. overflow: auto;
  473. padding: 0;
  474. resize: none;
  475. &:focus {
  476. outline: none;
  477. }
  478. }
  479. .ke-input-text {
  480. display: inline-block !important;
  481. max-width: 400px;
  482. height: $inputHeight;
  483. line-height: $inputHeight;
  484. border:1px solid $inputBorderColor;
  485. font-size: 14px;
  486. margin: 0;
  487. outline: 0;
  488. padding: 0px 10px;
  489. *display: inline;
  490. &:focus {
  491. border-color: $inputFocusBorderColor;
  492. }
  493. }
  494. .ke-input-color {
  495. border: $editorBorderStyle;
  496. background-color: #FFFFFF;
  497. font-size: 12px;
  498. width: 60px;
  499. height: 30px;
  500. line-height: 30px;
  501. padding-left: 5px;
  502. overflow: hidden;
  503. cursor: pointer;
  504. display: -moz-inline-stack;
  505. display: inline-block;
  506. vertical-align: middle;
  507. zoom: 1;
  508. *display: inline;
  509. }
  510. .ke-upload-area {
  511. position: relative;
  512. overflow: hidden;
  513. margin: 0;
  514. padding: 0;
  515. top:-1px;
  516. position: relative;
  517. *height: 25px;
  518. .ke-upload-file {
  519. position: absolute;
  520. font-size: 60px;
  521. top: 0;
  522. right: 0;
  523. padding: 0;
  524. margin: 0;
  525. z-index: 811212;
  526. border: 0 none;
  527. opacity: 0;
  528. cursor: pointer;
  529. width: 62px;
  530. height: 30px;
  531. filter: alpha(opacity=0);
  532. }
  533. .ke-button-common {
  534. top: -1px;
  535. }
  536. .ke-button {
  537. padding: 8px 15px;
  538. }
  539. }
  540. .ke-dialog-content-inner {
  541. padding: 10px 20px 0px 20px;
  542. .ke-dialog-row {
  543. border:1px solid #FFFFFF;
  544. margin-bottom: 10px;
  545. overflow: hidden;
  546. .row-left {
  547. float: left;
  548. height: 30px;
  549. line-height: 30px;
  550. width: 60px;
  551. text-align: right;
  552. }
  553. .row-right {
  554. float: left;
  555. text-align: left;
  556. .ke-inline-block {
  557. @include ke-inline-block;
  558. .ke-upload-button {
  559. position: relative;
  560. top: -1px;
  561. }
  562. }
  563. label {
  564. cursor: pointer;
  565. display: -moz-inline-stack;
  566. display: inline-block;
  567. vertical-align: middle;
  568. text-align: right;
  569. zoom: 1;
  570. *display: inline;
  571. img {
  572. display: -moz-inline-stack;
  573. display: inline-block;
  574. vertical-align: middle;
  575. zoom: 1;
  576. *display: inline;
  577. }
  578. }
  579. }
  580. } //end ke-dialog-row
  581. //百度地图样式
  582. .ke-header {
  583. height: 30px;
  584. line-height: 30px;
  585. .ke-input-text {
  586. height: 22px;
  587. line-height: 22px;
  588. }
  589. .ke-button {
  590. padding: 3px 10px;
  591. }
  592. .checkbox {
  593. margin-left:10px;
  594. }
  595. }
  596. /**
  597. tabs
  598. */
  599. .ke-tabs {
  600. font: 12px/1 "sans serif", tahoma, verdana, helvetica;
  601. border-bottom: $editorBorderStyle;
  602. margin-bottom: 20px;
  603. .ke-tabs-ul {
  604. list-style: none outside none;
  605. margin: 0;
  606. padding: 0;
  607. .ke-tabs-li {
  608. position: relative;
  609. margin: 0 2px -1px 0;
  610. padding: 0 20px;
  611. float: left;
  612. line-height: 25px;
  613. text-align: center;
  614. color: #337ab7;
  615. cursor: pointer;
  616. }
  617. .ke-tabs-li-selected {
  618. background-color: #FFF;
  619. border: $editorBorderStyle;
  620. border-bottom: 1px solid #FFF;
  621. color: #555555;
  622. cursor: default;
  623. border-top-left-radius: 3px;
  624. border-top-right-radius: 3px;
  625. }
  626. .ke-tabs-li-on {
  627. background-color: #FFF;
  628. color: #000;
  629. }
  630. } //end ul
  631. } //end tabs
  632. } //end ke-dialog-content-inner
  633. } // end ke-dialog-body
  634. .ke-dialog-loading {
  635. position: absolute;
  636. top: 0;
  637. left: 1px;
  638. z-index: 1;
  639. text-align: center;
  640. .ke-dialog-loading-content {
  641. background: url("../common/loading.gif") no-repeat center;
  642. color: #666;
  643. font-size: 14px;
  644. font-weight: bold;
  645. height: 31px;
  646. line-height: 31px;
  647. padding-left: 36px;
  648. }
  649. } //end ke-dialog-loading
  650. } //end ke-content
  651. .ke-dialog-footer {
  652. font: 12px/1 "sans serif", tahoma, verdana, helvetica;
  653. text-align: right;
  654. padding: 0 15px 5px 0;
  655. background-color: #FFF;
  656. height: 40px;
  657. .ke-dialog-yes {
  658. margin: 5px;
  659. }
  660. .ke-dialog-no {
  661. margin: 5px 10px 5px 5px;
  662. }
  663. } // ke-dialog-footer
  664. .ke-button-common {
  665. display: inline-block;
  666. text-align: center;
  667. background: none;
  668. border: none;
  669. padding: 0;
  670. cursor: pointer;
  671. }
  672. .ke-button-outer {
  673. background-position: 0 -25px;
  674. padding: 0;
  675. display: -moz-inline-stack;
  676. display: inline-block;
  677. vertical-align: middle;
  678. zoom: 1;
  679. *display: inline;
  680. }
  681. .ke-button {
  682. color: #333;
  683. font-size: 12px;
  684. border: 1px solid #e6e6e6;
  685. background-color: #e6e6e6;
  686. padding: 7px 10px;
  687. margin-top: -4px;
  688. color: #444;
  689. text-decoration: none;
  690. transition: background-color .3s ease-out, border-color .3s ease-out;
  691. &:hover {
  692. border: $editorBorderStyle;
  693. background-color: #e1e1e1;
  694. }
  695. }
  696. .ke-dialog-btn {
  697. font-size: 12px;
  698. margin: 5px;
  699. background: #2e8ded;
  700. color: #fff !important;
  701. padding: 8px 12px;
  702. display: inline-block;
  703. border-radius: 2px;
  704. cursor: pointer;
  705. text-decoration: none;
  706. transition: .3s ease-out;
  707. &:hover {
  708. filter: alpha(opacity=80);
  709. box-shadow: none;
  710. box-shadow: none;
  711. opacity: .8;
  712. }
  713. }
  714. } //dialog end
  715. //.ke-dialog-preview {
  716. // margin: 5px;
  717. //}
  718. //.ke-plugin-plainpaste-textarea,
  719. //.ke-plugin-wordpaste-iframe {
  720. // display: block;
  721. // width: 408px;
  722. // height: 260px;
  723. // font-family: "sans serif", tahoma, verdana, helvetica;
  724. // font-size: 12px;
  725. // border-color: #848484 #E0E0E0 #E0E0E0 #848484;
  726. // border-style: solid;
  727. // border-width: 1px;
  728. //}