ui.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. /* 按钮 */
  2. .kf-editor-ui-button {
  3. width: 50px;
  4. height: 100%;
  5. font-size: 10px;
  6. display: inline-block;
  7. border: 1px solid transparent;
  8. cursor: default;
  9. position: relative;
  10. top: 0;
  11. left: 0;
  12. vertical-align: top;
  13. }
  14. .kf-editor-ui-overlap-button {
  15. width: 100%;
  16. background: #8f8f8f;
  17. position: relative;
  18. top: 0;
  19. left: 0;
  20. z-index: 2;
  21. }
  22. .kf-editor-ui-button-icon {
  23. width: 32px;
  24. height: 32px;
  25. margin: 2px auto;
  26. }
  27. .kf-editor-ui-button-label {
  28. text-align: center;
  29. display: block;
  30. padding: 8px 0;
  31. }
  32. .kf-editor-ui-overlap-button .kf-editor-ui-button-label {
  33. padding: 5px 5px;
  34. text-align: left;
  35. color: white;
  36. font-size: 14px;
  37. }
  38. .kf-editor-ui-overlap-button .kf-editor-ui-button-label:HOVER {
  39. color: #ffbf00;
  40. }
  41. .kf-editor-ui-button-sign {
  42. border: 5px solid transparent;
  43. border-top-color: #2d2d2d;
  44. width: 0;
  45. height: 0;
  46. margin: 0 auto;
  47. }
  48. .kf-editor-ui-button-mount-point {
  49. display: none;
  50. position: absolute;
  51. top: 81px;
  52. left: -1px;
  53. }
  54. .kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
  55. width: 100%;
  56. height: 1000px;
  57. }
  58. .kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
  59. top: 27px;
  60. }
  61. .kf-editor-ui-button:HOVER {
  62. background: -webkit-linear-gradient( top, rgba(255, 180, 11, 0.41), rgba(255, 180, 11, 0.61), rgba(255, 180, 11, 0.41) );
  63. border: 1px solid #ffbf00;
  64. box-shadow: inset 0 0 1px 1px white;
  65. }
  66. .kf-editor-ui-overlap-button:HOVER {
  67. background: #8f8f8f;
  68. border-color: transparent;
  69. box-shadow: none;
  70. }
  71. .kf-editor-ui-overlap-button.kf-editor-ui-button-in {
  72. background: #8f8f8f!important;
  73. border-color: transparent!important;
  74. box-shadow: none!important;
  75. }
  76. .kf-editor-toolbar .kf-editor-ui-button-in {
  77. background: -webkit-linear-gradient( top, rgba(255, 180, 30, 0.81), rgba(255, 177, 24, 0.91), rgba(255, 180, 30, 0.81) );
  78. border-color: #b88212;
  79. box-shadow: none;
  80. }
  81. /* 分割符 */
  82. .kf-editor-ui-delimiter {
  83. width: 11px;
  84. height: 100%;
  85. display: inline-block;
  86. }
  87. .kf-editor-ui-delimiter-line {
  88. width: 1px;
  89. height: 100%;
  90. margin: 0 auto;
  91. 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));
  92. }
  93. /* box */
  94. .kf-editor-ui-box {
  95. border: 1px solid #c2c2c2;
  96. box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.13);
  97. background: white;
  98. }
  99. .kf-editor-ui-box-group-title {
  100. background: #e1e1e1;
  101. padding: 5px;
  102. }
  103. .kf-editor-ui-box-group-item-container {
  104. padding: 5px;
  105. }
  106. .kf-editor-ui-overlap-container {
  107. overflow: hidden;
  108. }
  109. .kf-editor-ui-box-item {
  110. border: 1px solid transparent;
  111. padding: 5px;
  112. display: inline-block;
  113. }
  114. .kf-editor-ui-box-item:HOVER {
  115. background: -webkit-linear-gradient( top, rgba(255, 180, 11, 0.41), rgba(255, 180, 11, 0.61), rgba(255, 180, 11, 0.41) );
  116. border: 1px solid #ffbf00;
  117. box-shadow: inset 0 0 1px 1px white;
  118. }
  119. .kf-editor-ui-area .kf-editor-ui-box-item {
  120. position: relative;
  121. top: 0;
  122. left: 0;
  123. width: 32px;
  124. height: 32px;
  125. border: 0;
  126. margin: 0 5px 5px 0;
  127. padding: 0;
  128. z-index: 1;
  129. }
  130. .kf-editor-ui-area .kf-editor-ui-box-item img {
  131. width: 32px;
  132. height: 32px;
  133. }
  134. .kf-editor-ui-box-item-label {
  135. margin-bottom: 5px;
  136. }
  137. .kf-editor-ui-box-item-content {
  138. background: white;
  139. border: 1px solid black;
  140. }
  141. .kf-editor-ui-area .kf-editor-ui-box-item-content {
  142. position: absolute;
  143. top: 0;
  144. left: 0;
  145. }
  146. .kf-editor-ui-area .kf-editor-ui-box-item-content:HOVER {
  147. border: 2px solid #ffbd19;
  148. top: -1px;
  149. left: -1px;
  150. }
  151. .kf-editor-ui-box-item-val {
  152. padding: 5px;
  153. margin-bottom: 5px;
  154. line-height: 0;
  155. }
  156. .kf-editor-ui-area .kf-editor-ui-box-item-val {
  157. padding: 0;
  158. margin: 0;
  159. }
  160. /* area */
  161. .kf-editor-ui-area {
  162. height: 90%;
  163. display: inline-block;
  164. cursor: default;
  165. position: relative;
  166. top: 0;
  167. left: 0;
  168. vertical-align: top;
  169. }
  170. .kf-editor-ui-area-container {
  171. width: 510px;
  172. height: 100%;
  173. display: inline-block;
  174. border: 1px solid #D3D3D3;
  175. border-right: 0;
  176. vertical-align: top;
  177. }
  178. .kf-editor-ui-area-button {
  179. width: 15px;
  180. height: 100%;
  181. line-height: 70px;
  182. text-align: center;
  183. color: #5c5c5c;
  184. display: inline-block;
  185. border: 1px solid #D3D3D3;
  186. }
  187. .kf-editor-ui-area-button:HOVER {
  188. border-color: #ffbf00;
  189. background: rgba(255, 207, 15, 0.5);
  190. }
  191. .kf-editor-ui-area-mount {
  192. position: absolute;
  193. top: 0;
  194. left: 0;
  195. display: none;
  196. }
  197. .kf-editor-ui-overlap-title {
  198. width: 100%;
  199. line-height: 1.5;
  200. }
  201. /* list */
  202. .kf-editor-ui-list {
  203. background: white;
  204. padding: 5px;
  205. border: 1px solid #b1b1b1;
  206. position: relative;
  207. top: 0;
  208. left: 0;
  209. }
  210. .kf-editor-ui-list-bg {
  211. width: 1px;
  212. height: 100%;
  213. position: absolute;
  214. top: 0;
  215. left: 34px;
  216. background: rgba(238, 238, 238, 0.84);
  217. box-shadow: 0px 0 1px 1px rgba(224, 224, 224, 0.16);
  218. z-index: 1;
  219. }
  220. .kf-editor-ui-list-item-container {
  221. position: relative;
  222. top: 0;
  223. left: 0;
  224. z-index: 2;
  225. }
  226. .kf-editor-ui-list-item {
  227. line-height: 16px;
  228. padding: 2px 5px;
  229. border: 1px solid transparent;
  230. }
  231. .kf-editor-ui-list-item:HOVER {
  232. border-color: #ffbd19;
  233. background: rgba(255, 207, 15, 0.5);
  234. }
  235. .kf-editor-ui-list-item-icon {
  236. width: 16px;
  237. height: 16px;
  238. display: inline-block;
  239. vertical-align: bottom;
  240. margin-right: 10px;
  241. border: 1px solid rgba(255, 207, 15, 0.8);
  242. visibility: hidden;
  243. }
  244. /* area 内容区 */
  245. .kf-editor-ui-area-item {
  246. width: 24px;
  247. height: 24px;
  248. margin: 5px 0 0 5px;
  249. position: relative;
  250. top: 0;
  251. left: 0;
  252. display: inline-block;
  253. }
  254. .kf-editor-ui-area-item-content {
  255. border: 1px solid black;
  256. position: absolute;
  257. top: -1px;
  258. left: -1px;
  259. line-height: 0;
  260. }
  261. .kf-editor-ui-area-item-content:HOVER {
  262. border: 2px solid #ffbd19;
  263. top: -2px;
  264. left: -2px;
  265. }
  266. .kf-editor-ui-area-item-content img {
  267. width: 24px;
  268. height: 24px;
  269. }