ckeditor.admin.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. /**
  2. * @file
  3. * Styles for configuration of CKEditor module.
  4. *
  5. * Many of these styles are adapted directly from the default CKEditor theme
  6. * "moono".
  7. */
  8. .ckeditor-toolbar {
  9. margin: 5px 0;
  10. padding: 0.1667em 0.1667em 0.08em;
  11. /* Disallow any user selections in the drag-and-drop toolbar config UI. */
  12. -webkit-user-select: none;
  13. -moz-user-select: none;
  14. -ms-user-select: none;
  15. user-select: none;
  16. border: 1px solid #b6b6b6;
  17. background: #cfd1cf;
  18. background-image: -webkit-linear-gradient(top, whiteSmoke, #cfd1cf);
  19. background-image: linear-gradient(top, whiteSmoke, #cfd1cf);
  20. box-shadow: 0 1px 0 white inset;
  21. }
  22. .ckeditor-toolbar-active {
  23. margin-top: 0.25em;
  24. }
  25. .ckeditor-toolbar-disabled {
  26. margin-bottom: 0.5em;
  27. }
  28. .ckeditor-toolbar ul,
  29. .ckeditor-toolbar-disabled ul {
  30. margin: 0;
  31. padding: 0;
  32. list-style: none;
  33. }
  34. /* This is required to win over specificity of [dir="rtl"] ul */
  35. [dir="rtl"] .ckeditor-toolbar ul,
  36. [dir="rtl"] .ckeditor-toolbar-disabled ul {
  37. margin-right: 0;
  38. }
  39. .ckeditor-row {
  40. padding: 2px 0 3px;
  41. border-radius: 3px;
  42. }
  43. .ckeditor-group-names-are-visible .ckeditor-row {
  44. border: 1px solid whitesmoke;
  45. }
  46. .ckeditor-row + .ckeditor-row {
  47. margin-top: 0.25em;
  48. }
  49. .ckeditor-toolbar-group,
  50. .ckeditor-toolbar-group-placeholder,
  51. .ckeditor-add-new-group {
  52. float: left; /* LTR */
  53. }
  54. [dir="rtl"] .ckeditor-toolbar-group,
  55. [dir="rtl"] .ckeditor-toolbar-group-placeholder,
  56. [dir="rtl"] .ckeditor-add-new-group {
  57. float: right;
  58. }
  59. .ckeditor-toolbar-groups {
  60. min-height: 2em;
  61. }
  62. .ckeditor-toolbar-group {
  63. margin: 0 0.3333em;
  64. cursor: move;
  65. }
  66. .ckeditor-group-names-are-visible .ckeditor-toolbar-group,
  67. .ckeditor-add-new-group {
  68. padding: 0.2em 0.4em;
  69. border: 1px dotted #a6a6a6;
  70. border-radius: 3px;
  71. }
  72. .ckeditor-toolbar-group.placeholder,
  73. .ckeditor-toolbar-group.placeholder .ckeditor-toolbar-group-name {
  74. cursor: not-allowed;
  75. }
  76. .ckeditor-toolbar-group.placeholder .ckeditor-toolbar-group-name {
  77. font-style: italic;
  78. }
  79. .ckeditor-toolbar-group-name {
  80. display: none;
  81. margin: 0.25em 0;
  82. font-size: 1em;
  83. font-weight: normal;
  84. }
  85. .ckeditor-group-names-are-visible .ckeditor-toolbar-group-name {
  86. display: block;
  87. cursor: pointer;
  88. }
  89. .ckeditor-toolbar-active .placeholder,
  90. .ckeditor-toolbar-active .ckeditor-add-new-group {
  91. display: none;
  92. }
  93. .ckeditor-group-names-are-visible .placeholder,
  94. .ckeditor-group-names-are-visible .ckeditor-add-new-group {
  95. display: block;
  96. }
  97. .ckeditor-toolbar-group-buttons {
  98. float: left; /* LTR */
  99. }
  100. [dir="rtl"] .ckeditor-toolbar-group-buttons {
  101. float: right;
  102. }
  103. .ckeditor-groupnames-toggle {
  104. float: right; /* LTR */
  105. cursor: pointer;
  106. }
  107. [dir="rtl"] .ckeditor-groupnames-toggle {
  108. float: left;
  109. }
  110. .ckeditor-toolbar .ckeditor-toolbar-group > li {
  111. margin: 3px 6px;
  112. padding: 3px;
  113. border: 1px solid white;
  114. border-radius: 5px;
  115. background-image: -webkit-linear-gradient(transparent 60%, rgba(0, 0, 0, 0.1));
  116. background-image: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.1));
  117. }
  118. .ckeditor-toolbar-configuration .fieldset-description {
  119. margin-bottom: 1em;
  120. }
  121. .ckeditor-toolbar-disabled .ckeditor-toolbar-available,
  122. .ckeditor-toolbar-disabled .ckeditor-toolbar-dividers {
  123. box-sizing: border-box;
  124. }
  125. .ckeditor-toolbar-disabled .ckeditor-toolbar-available {
  126. float: left; /* LTR */
  127. width: 80%;
  128. }
  129. [dir="rtl"] .ckeditor-toolbar-disabled .ckeditor-toolbar-available {
  130. float: right;
  131. }
  132. .ckeditor-toolbar-disabled .ckeditor-toolbar-dividers {
  133. float: right; /* LTR */
  134. width: 20%;
  135. }
  136. [dir="rtl"] .ckeditor-toolbar-disabled .ckeditor-toolbar-dividers {
  137. float: left;
  138. }
  139. .ckeditor-toolbar-disabled .ckeditor-buttons li a,
  140. .ckeditor-toolbar .ckeditor-buttons,
  141. .ckeditor-add-new-group button {
  142. border: 1px solid #a6a6a6;
  143. border-bottom-color: #979797;
  144. border-radius: 3px;
  145. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  146. }
  147. .ckeditor-toolbar-disabled .ckeditor-buttons {
  148. border: 0;
  149. }
  150. .ckeditor-toolbar-disabled .ckeditor-buttons li {
  151. margin: 2px;
  152. }
  153. .ckeditor-buttons {
  154. min-width: 26px;
  155. min-height: 26px;
  156. }
  157. .ckeditor-buttons li {
  158. float: left; /* LTR */
  159. margin: 0;
  160. padding: 0;
  161. }
  162. [dir="rtl"] .ckeditor-buttons li {
  163. float: right;
  164. }
  165. .ckeditor-buttons li a,
  166. .ckeditor-add-new-group button {
  167. color: #474747;
  168. background: #e4e4e4;
  169. background-image: -webkit-linear-gradient(top, white, #e4e4e4);
  170. background-image: linear-gradient(top, white, #e4e4e4);
  171. }
  172. .ckeditor-buttons li a {
  173. position: relative;
  174. display: block;
  175. min-height: 18px;
  176. padding: 4px 6px;
  177. cursor: move;
  178. white-space: nowrap;
  179. text-decoration: none;
  180. border: 0;
  181. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  182. line-height: 1.4;
  183. }
  184. .ckeditor-toolbar-dividers {
  185. float: right; /* LTR */
  186. }
  187. [dir="rtl"] .ckeditor-toolbar-dividers {
  188. float: left;
  189. }
  190. .ckeditor-buttons li .cke-icon-only {
  191. /* Firefox includes the offscreen text in the focus indicator, resulting in a
  192. far too wide focus indicator. This fixes that. */
  193. overflow: hidden;
  194. width: 16px;
  195. text-indent: -9999px;
  196. }
  197. .ckeditor-buttons .cke_button_icon img {
  198. width: 16px;
  199. height: 16px;
  200. }
  201. .ckeditor-buttons li .cke_ltr {
  202. direction: ltr;
  203. }
  204. .ckeditor-buttons li .cke_rtl {
  205. direction: rtl;
  206. }
  207. .ckeditor-buttons li a:focus,
  208. .ckeditor-buttons li a:active,
  209. .ckeditor-multiple-buttons li a:focus {
  210. z-index: 11; /* Ensure focused buttons show their outline on all sides. */
  211. }
  212. .ckeditor-buttons li:first-child a {
  213. border-top-left-radius: 2px; /* LTR */
  214. border-bottom-left-radius: 2px; /* LTR */
  215. }
  216. [dir="rtl"] .ckeditor-buttons li:first-child a {
  217. border-top-right-radius: 2px;
  218. border-bottom-right-radius: 2px;
  219. }
  220. .ckeditor-buttons li:last-child a {
  221. border-top-right-radius: 2px; /* LTR */
  222. border-bottom-right-radius: 2px; /* LTR */
  223. }
  224. [dir="rtl"] .ckeditor-buttons li:last-child a {
  225. border-top-left-radius: 2px;
  226. border-bottom-left-radius: 2px;
  227. }
  228. .ckeditor-button-placeholder,
  229. .ckeditor-buttons .ckeditor-button-placeholder a,
  230. .ckeditor-toolbar-group-placeholder {
  231. background: #9dcae7;
  232. }
  233. .ckeditor-toolbar-group-placeholder {
  234. border-radius: 4px;
  235. }
  236. .ckeditor-multiple-buttons {
  237. float: left; /* LTR */
  238. margin: 5px;
  239. padding: 1px 2px;
  240. list-style: none;
  241. }
  242. [dir="rtl"] .ckeditor-multiple-buttons {
  243. float: right;
  244. }
  245. .ckeditor-multiple-buttons li {
  246. float: left; /* LTR */
  247. margin: 0;
  248. padding: 0;
  249. }
  250. [dir="rtl"] .ckeditor-multiple-buttons li {
  251. float: right;
  252. }
  253. .ckeditor-multiple-buttons li a {
  254. display: inline-block;
  255. min-height: 18px;
  256. margin: 0;
  257. padding: 2px 0;
  258. cursor: move;
  259. line-height: 1.4;
  260. }
  261. .ckeditor-buttons .ckeditor-group-button-separator,
  262. .ckeditor-multiple-buttons .ckeditor-group-button-separator {
  263. margin: -1px -3px -2px;
  264. }
  265. .ckeditor-buttons .ckeditor-group-button-separator a,
  266. .ckeditor-multiple-buttons .ckeditor-group-button-separator a {
  267. position: relative;
  268. z-index: 10;
  269. width: 13px;
  270. height: 29px;
  271. padding: 0;
  272. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAdCAMAAABG4xbVAAAAhFBMVEUAAACmpqampqampqb////l5eX////5+fmmpqatra2urq6vr6+1tbW2tra4uLi6urq8vLzb29ve3t7i4uLl5eXn5+fo6Ojp6enq6urr6+vs7Ozt7e3u7u7v7+/w8PDx8fHy8vLz8/P09PT19fX29vb39/f4+Pj5+fn6+vr7+/v8/Pz+/v7qIQO+AAAACHRSTlMATVmAi8XM29MuWToAAABjSURBVBiVrc5BCoAwDETRMKhtRBduev9LKm1xjItWRBBE6Nt9QkIwOTcUzk0Imi8aoMssxbgoTHMtqsFMLta0vPh2N49HyfdelPg6k9uvX/a+Bmggt1qJRNzQFVgjEnkUZDoBmH57VSypjg4AAAAASUVORK5CYII=) no-repeat center center;
  273. }
  274. ul.ckeditor-buttons li.ckeditor-button-separator a {
  275. position: relative;
  276. z-index: 10;
  277. width: 1px;
  278. height: 24px;
  279. margin: 1px 0 0;
  280. padding: 0;
  281. background: #e4e4e4;
  282. background-image: -webkit-linear-gradient(#e4e4e4, #b4b4b4);
  283. background-image: linear-gradient(#e4e4e4, #b4b4b4);
  284. }
  285. .ckeditor-multiple-buttons .ckeditor-button-separator a {
  286. width: 2px;
  287. height: 26px;
  288. margin: 0 10px;
  289. padding: 0;
  290. }
  291. .ckeditor-separator {
  292. display: block;
  293. width: 1px;
  294. height: 18px;
  295. margin: 5px 0;
  296. background-color: silver;
  297. background-color: rgba(0, 0, 0, 0.2);
  298. box-shadow: 1px 0 1px rgba(255, 255, 255, 0.5);
  299. }
  300. .ckeditor-button-arrow {
  301. display: inline-block;
  302. width: 0;
  303. margin: 0 4px 2px;
  304. text-align: center;
  305. border-top: 3px solid #333;
  306. border-right: 3px solid transparent;
  307. border-left: 3px solid transparent;
  308. }
  309. .ckeditor-row-controls {
  310. float: right; /* LTR */
  311. width: 40px;
  312. text-align: right; /* LTR */
  313. font-size: 18px;
  314. }
  315. [dir="rtl"] .ckeditor-row-controls {
  316. float: left;
  317. text-align: left;
  318. }
  319. .ckeditor-row-controls a {
  320. display: inline-block;
  321. box-sizing: border-box;
  322. width: 20px;
  323. height: 28px;
  324. padding: 6px 2px;
  325. text-decoration: none;
  326. color: #333;
  327. font-weight: bold;
  328. line-height: 0.9;
  329. }