ui.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. /* 工具栏 */
  2. .kf-editor-toolbar {
  3. width: 100%;
  4. padding: 1px 10px;
  5. position: relative;
  6. top: 0;
  7. left: 0;
  8. z-index: 2;
  9. background-color: #f6f5ee;
  10. border-bottom: 1px solid #ccc;
  11. -moz-box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
  12. -webkit-box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
  13. box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
  14. color: #000;
  15. font-family: Helvetica, Arial, "微软雅黑", "Microsoft YaHei", "宋体", sans-serif;
  16. }
  17. /* 按钮 */
  18. .kf-editor-ui-button {
  19. padding: 8px 6px;
  20. height: 79px;
  21. font-size: 12px;
  22. display: inline-block;
  23. border: 1px solid transparent;
  24. border-radius: 3px;
  25. cursor: default;
  26. position: relative;
  27. top: 0;
  28. left: 0;
  29. z-index: 3;
  30. vertical-align: top;
  31. opacity: 0.5;
  32. margin-right: 1px;
  33. }
  34. .kf-editor-toolbar .kf-editor-ui-overlap-button {
  35. width: 100%;
  36. height: 25px;
  37. background: #53b856;
  38. border-radius: 0;
  39. }
  40. .kf-editor-ui-button-icon {
  41. width: 32px;
  42. height: 32px;
  43. margin: 2px auto;
  44. }
  45. .kf-editor-ui-button-label {
  46. color: #666;
  47. text-align: center;
  48. display: block;
  49. font-size: 12px;
  50. line-height: 20px;
  51. }
  52. .kf-editor-ui-overlap-button .kf-editor-ui-button-label {
  53. padding: 3px 5px;
  54. text-align: left;
  55. color: white;
  56. font-size: 12px;
  57. }
  58. .kf-editor-ui-button-sign {
  59. border: 4px solid transparent;
  60. border-top-color: #2d2d2d;
  61. width: 0;
  62. height: 0;
  63. display: inline-block;
  64. margin: 8px auto;
  65. vertical-align: top;
  66. }
  67. .kf-editor-ui-button-mount-point {
  68. display: none;
  69. position: absolute;
  70. bottom: -2px;
  71. left: -1px;
  72. }
  73. .kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
  74. width: 100%;
  75. height: 10000px;
  76. }
  77. .kf-editor-ui-wrap-group {
  78. overflow-x: hidden;
  79. overflow-y: auto;
  80. }
  81. .kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
  82. top: 27px;
  83. }
  84. .kf-editor-toolbar .kf-editor-ui-button-in {
  85. border-color: #8fcc91!important;
  86. background: #e0f0dd!important;
  87. }
  88. .kf-editor-toolbar .kf-editor-ui-overlap-button {
  89. padding-top: 0;
  90. padding-bottom: 0;
  91. border-color: #61b864!important;
  92. background: #61b864!important;
  93. }
  94. /* 分割符 */
  95. .kf-editor-ui-delimiter {
  96. width: 11px;
  97. height: 100%;
  98. display: none;
  99. }
  100. .kf-editor-ui-enabled.kf-editor-ui-button:HOVER {
  101. border: 1px solid #a9d9ab;
  102. background: #ebf7e6;
  103. }
  104. .kf-editor-ui-enabled.kf-editor-ui-overlap-button:HOVER {
  105. border: 1px solid #53b856;
  106. background: #53b856;
  107. }
  108. .kf-editor-ui-delimiter-line {
  109. width: 1px;
  110. height: 100%;
  111. margin: 0 auto;
  112. background: -webkit-linear-gradient(top, rgba(233, 233, 233, 0.11), rgba(92, 92, 92, 0.20) 60%, rgba(92, 92, 92, 0.41) 80%, rgba(123, 123, 123, 0.50));
  113. }
  114. /* box */
  115. .kf-editor-ui-box {
  116. border: 1px solid #b3aead;
  117. border-radius: 3px;
  118. box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.11);
  119. background: white;
  120. position: absolute;
  121. top: 0;
  122. left: -1px;
  123. overflow-x: hidden;
  124. overflow-y: auto;
  125. }
  126. .kf-editor-ui-area .kf-editor-ui-box {
  127. border-color: #61b864;
  128. }
  129. .kf-editor-ui-box-container {
  130. font-size: 12px;
  131. }
  132. .kf-editor-ui-box-group-title {
  133. background-color: #f7f6f0;
  134. height: 23px;
  135. line-height: 23px;
  136. font-size: 12px;
  137. border: 1px solid #ebeae4;
  138. border-width: 1px 0;
  139. padding-left: 12px;
  140. }
  141. .kf-editor-ui-box-group-item-container {
  142. padding: 7px 9px 17px 9px;
  143. }
  144. .kf-editor-ui-overlap-container {
  145. overflow: hidden;
  146. }
  147. .kf-editor-ui-area .kf-editor-ui-box {
  148. top: -1px;
  149. }
  150. .kf-editor-ui-overlap-container .kf-editor-ui-button-sign {
  151. border-top-color: white;
  152. border-width: 4px;
  153. margin-left: 10px;
  154. margin-top: 8px;
  155. }
  156. .kf-editor-ui-yushe-btn .kf-editor-ui-box-item {
  157. border: 1px solid transparent;
  158. padding: 5px;
  159. }
  160. .kf-editor-ui-box-item {
  161. display: inline-block;
  162. margin: 4px;
  163. }
  164. .kf-editor-ui-box-item-content:HOVER {
  165. border-color: #dff3df;
  166. }
  167. .kf-editor-ui-box-item-content:HOVER .kf-editor-ui-box-item-val {
  168. border-color: #6eb864;
  169. }
  170. .kf-editor-ui-area .kf-editor-ui-box-item {
  171. position: relative;
  172. top: 0;
  173. left: 0;
  174. width: 32px;
  175. height: 32px;
  176. border: 0;
  177. margin: 3px;
  178. padding: 0;
  179. z-index: 1;
  180. }
  181. .kf-editor-ui-area .kf-editor-ui-box-item img {
  182. width: 32px;
  183. height: 32px;
  184. }
  185. .kf-editor-ui-box-item-label {
  186. margin-bottom: 5px;
  187. }
  188. .kf-editor-ui-box-item-content {
  189. background: white;
  190. border: 1px solid white;
  191. }
  192. .kf-editor-ui-area .kf-editor-ui-box-item-content {
  193. position: absolute;
  194. top: 0;
  195. left: 0;
  196. }
  197. .kf-editor-ui-area .kf-editor-ui-box-item-content:HOVER {
  198. border: 1px solid #dff3df;
  199. }
  200. .kf-editor-ui-box-item-val {
  201. padding: 5px;
  202. line-height: 0;
  203. border: 1px solid #808080;
  204. }
  205. .kf-editor-ui-area .kf-editor-ui-box-item-val {
  206. padding: 0;
  207. margin: 0;
  208. }
  209. /* area */
  210. .kf-editor-ui-area {
  211. height: 79px;
  212. display: inline-block;
  213. cursor: default;
  214. position: relative;
  215. top: 0;
  216. left: 0;
  217. vertical-align: top;
  218. opacity: 0.5;
  219. z-index: 4;
  220. border: 1px solid #e0dfd5;
  221. border-radius: 4px;
  222. background: white;
  223. margin: 8px 10px;
  224. }
  225. .kf-editor-ui-area-container {
  226. width: 293px;
  227. height: 70px;
  228. /*margin: 7px 5px 5px 5px;*/
  229. margin: 5px;
  230. display: inline-block;
  231. border-right: 0;
  232. vertical-align: top;
  233. position: relative;
  234. top: 0;
  235. left: 0;
  236. overflow: hidden;
  237. }
  238. .kf-editor-ui-area-panel {
  239. position: absolute;
  240. top: 0;
  241. left: 0;
  242. line-height: 0;
  243. background: white;
  244. -webkit-transition: top 0.5s linear;
  245. -moz-transition: top 0.5s linear;
  246. transition: top 0.5s linear;
  247. }
  248. .kf-editor-ui-area-button-container {
  249. display: inline-block;
  250. width: 16px;
  251. height: 100%;
  252. overflow: hidden;
  253. text-align: center;
  254. border: 0 solid #D3D3D3;
  255. border-left-width: 1px;
  256. background-color: #f2f0e6;
  257. }
  258. .kf-editor-ui-moveup-button, .kf-editor-ui-movedown-button {
  259. line-height: 25px;
  260. height: 30px;
  261. }
  262. .kf-editor-ui-moveup-button {
  263. background: url("../images/toolbar/btn.png") -304px 9px no-repeat;
  264. }
  265. .kf-editor-ui-movedown-button {
  266. border: 1px solid #D3D3D3;
  267. border-width: 1px 0;
  268. background: url("../images/toolbar/btn.png") -325px 9px no-repeat;
  269. }
  270. .kf-editor-ui-area-button {
  271. width: 100%;
  272. height: 50px;
  273. line-height: 26px;
  274. background: url("../images/toolbar/btn.png") -346px 0 no-repeat;
  275. }
  276. .kf-editor-ui-enabled .kf-editor-ui-area-button:HOVER {
  277. background-color: #e5e4e1;
  278. }
  279. .kf-editor-ui-enabled .kf-editor-ui-moveup-button:HOVER {
  280. background-color: #e5e4e1;
  281. }
  282. .kf-editor-ui-enabled .kf-editor-ui-movedown-button:HOVER {
  283. background-color: #e5e4e1;
  284. }
  285. .kf-editor-ui-area-button-container .kf-editor-ui-disabled {
  286. opacity: 0.25;
  287. background-color: transparent!important;
  288. }
  289. .kf-editor-ui-area-mount {
  290. position: absolute;
  291. top: 0;
  292. left: 0;
  293. display: none;
  294. }
  295. .kf-editor-ui-overlap-title {
  296. width: 100%;
  297. line-height: 1.5;
  298. }
  299. /* list */
  300. .kf-editor-ui-list {
  301. background: #f9f8f5;
  302. border: 1px solid #b3aead;
  303. border-radius: 3px;
  304. position: fixed;
  305. top: 0;
  306. left: 0;
  307. box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.11);
  308. }
  309. .kf-editor-ui-list-bg {
  310. display: none;
  311. }
  312. .kf-editor-ui-list-item-container {
  313. position: relative;
  314. top: 0;
  315. left: 0;
  316. z-index: 2;
  317. }
  318. .kf-editor-ui-list-item {
  319. line-height: 24px;
  320. padding: 2px 6px;
  321. border: 1px solid transparent;
  322. border-width: 1px 0;
  323. }
  324. .kf-editor-ui-list-item-select {
  325. color: #61b864;
  326. font-weight: bold;
  327. }
  328. .kf-editor-ui-list-item-select .kf-editor-ui-list-item-icon {
  329. visibility: visible;
  330. width: 16px;
  331. height: 16px;
  332. background: url(../images/toolbar/btn.png) no-repeat -367px 0;
  333. }
  334. .kf-editor-ui-list-item:HOVER {
  335. border-color: #beddbf;
  336. background-color: #ecf3e9;
  337. }
  338. .kf-editor-ui-list-item-icon {
  339. width: 16px;
  340. height: 16px;
  341. display: inline-block;
  342. vertical-align: middle;
  343. margin-top: -2px;
  344. margin-right: 4px;
  345. visibility: hidden;
  346. }
  347. /* area 内容区 */
  348. .kf-editor-ui-area-item {
  349. width: 26px;
  350. height: 26px;
  351. position: absolute;
  352. top: 0;
  353. left: 0;
  354. }
  355. .kf-editor-ui-area-item-inner {
  356. width: 34px;
  357. height: 34px;
  358. border: 1px solid white;
  359. position: absolute;
  360. top: -4px;
  361. left: -4px;
  362. -webkit-transition: all 0.1s linear;
  363. -moz-transition: all 0.1s linear;
  364. transition: all 0.1s linear;
  365. -webkit-transform: scale( 0.76 );
  366. -moz-transform: scale( 0.76 );
  367. transform: scale( 0.76 );
  368. }
  369. .kf-editor-ui-enabled .kf-editor-ui-area-item-inner:HOVER {
  370. border-color: #dff3df;
  371. -webkit-transform: scale( 1 );
  372. -moz-transform: scale( 1 );
  373. transform: scale( 1 );
  374. }
  375. .kf-editor-ui-area-item-img {
  376. width: 32px;
  377. height: 32px;
  378. border: 1px solid #808080;
  379. -webkit-transition: all 0.1s linear;
  380. -moz-transition: all 0.1s linear;
  381. transition: all 0.1s linear;
  382. }
  383. .kf-editor-ui-enabled .kf-editor-ui-area-item-inner:HOVER .kf-editor-ui-area-item-img {
  384. border-color: #6eb864;
  385. }
  386. .kf-editor-ui-enabled {
  387. opacity: 1;
  388. }
  389. .kf-editor-ui-overlap-container .kf-editor-ui-box-item {
  390. width: 34px;
  391. height: 34px;
  392. border: 1px solid white;
  393. }
  394. .kf-editor-ui-overlap-container .kf-editor-ui-box-item-content:HOVER {
  395. }
  396. .kf-editor-ui-overlap-container .kf-editor-ui-box-item-val {
  397. width: 32px;
  398. height: 32px;
  399. }
  400. /* scrollbar */
  401. .kf-editor-ui-box::-webkit-scrollbar {
  402. width: 17px;
  403. background: url(../images/scrollbar/custom/bg.png) 0 0 repeat-y white;
  404. }
  405. .kf-editor-ui-box::-webkit-scrollbar-button:end:increment {
  406. height: 5px;
  407. background: url(../images/scrollbar/custom/down.png) 0 0 repeat-y white;
  408. }
  409. /*定义滚动条渐减按扭的样式 */
  410. .kf-editor-ui-box::-webkit-scrollbar-button:start:decrement {
  411. height: 5px;
  412. background: url(../images/scrollbar/custom/up.png) 0 0 repeat-y white;
  413. }
  414. /* 垂直滚动条的第三层轨道的上段 */
  415. .kf-editor-ui-box::-webkit-scrollbar-track-piece:vertical:start {
  416. background-image: url(../images/scrollbar/custom/top.png), url(../images/scrollbar/custom/bg.png);
  417. background-repeat: no-repeat, repeat-y;
  418. }
  419. /* 垂直滚动条的第三层轨道的下段 */
  420. .kf-editor-ui-box::-webkit-scrollbar-track-piece:vertical:end {
  421. background-image: url(../images/scrollbar/custom/bottom.png), url(../images/scrollbar/custom/bg.png);
  422. background-repeat: no-repeat, repeat-y;
  423. background-position: 0 bottom, 0 0;
  424. }
  425. /* 垂直滚动条的滑动块 */
  426. .kf-editor-ui-box::-webkit-scrollbar-thumb:vertical {
  427. /*background: url(./images2/bar.png) 6px 0 no-repeat;*/
  428. /*background-size: 6px;*/
  429. -webkit-border-image: url(../images/scrollbar/custom/bar.png) 8;
  430. border-width: 10px;
  431. }
  432. .kf-editor-ui-wrap-group::-webkit-scrollbar {
  433. width: 17px;
  434. background: url(../images/scrollbar/custom/bg.png) 0 0 repeat-y white;
  435. }
  436. .kf-editor-ui-wrap-group::-webkit-scrollbar-button:end:increment {
  437. height: 5px;
  438. background: url(../images/scrollbar/custom/down.png) 0 0 repeat-y white;
  439. }
  440. /*定义滚动条渐减按扭的样式 */
  441. .kf-editor-ui-wrap-group::-webkit-scrollbar-button:start:decrement {
  442. height: 5px;
  443. background: url(../images/scrollbar/custom/up.png) 0 0 repeat-y white;
  444. }
  445. /* 垂直滚动条的第三层轨道的上段 */
  446. .kf-editor-ui-wrap-group::-webkit-scrollbar-track-piece:vertical:start {
  447. background-image: url(../images/scrollbar/custom/top.png), url(../images/scrollbar/custom/bg.png);
  448. background-repeat: no-repeat, repeat-y;
  449. }
  450. /* 垂直滚动条的第三层轨道的下段 */
  451. .kf-editor-ui-wrap-group::-webkit-scrollbar-track-piece:vertical:end {
  452. background-image: url(../images/scrollbar/custom/bottom.png), url(../images/scrollbar/custom/bg.png);
  453. background-repeat: no-repeat, repeat-y;
  454. background-position: 0 bottom, 0 0;
  455. }
  456. /* 垂直滚动条的滑动块 */
  457. .kf-editor-ui-wrap-group::-webkit-scrollbar-thumb:vertical {
  458. -webkit-border-image: url(../images/scrollbar/custom/bar.png) 8;
  459. border-width: 10px;
  460. }