ckeditor.admin.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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. border: 1px solid #b6b6b6;
  10. padding: 0.1667em 0.1667em 0.08em;
  11. box-shadow: 0 1px 0 white inset;
  12. background: #cfd1cf;
  13. background-image: -webkit-linear-gradient(top, whiteSmoke, #cfd1cf);
  14. background-image: linear-gradient(top, whiteSmoke, #cfd1cf);
  15. margin: 5px 0;
  16. /* Disallow any user selections in the drag-and-drop toolbar config UI. */
  17. -webkit-user-select: none;
  18. -moz-user-select: none;
  19. -ms-user-select: none;
  20. user-select: none;
  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. list-style: none;
  31. margin: 0;
  32. padding: 0;
  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. border: 1px dotted #a6a6a6;
  69. border-radius: 3px;
  70. padding: 0.2em 0.4em;
  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. font-size: 1em;
  82. font-weight: normal;
  83. margin: 0.25em 0;
  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. cursor: pointer;
  105. float: right; /* LTR */
  106. }
  107. [dir="rtl"] .ckeditor-groupnames-toggle {
  108. float: left;
  109. }
  110. .ckeditor-toolbar .ckeditor-toolbar-group > li {
  111. border: 1px solid white;
  112. border-radius: 5px;
  113. background-image: -webkit-linear-gradient(transparent 60%, rgba(0, 0, 0, 0.1));
  114. background-image: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.1));
  115. margin: 3px 6px;
  116. padding: 3px;
  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-height: 26px;
  155. min-width: 26px;
  156. }
  157. .ckeditor-buttons li {
  158. padding: 0;
  159. margin: 0;
  160. float: left; /* LTR */
  161. }
  162. [dir="rtl"] .ckeditor-buttons li {
  163. float: right;
  164. }
  165. .ckeditor-buttons li a,
  166. .ckeditor-add-new-group button {
  167. background: #e4e4e4;
  168. background-image: -webkit-linear-gradient(top, white, #e4e4e4);
  169. background-image: linear-gradient(top, white, #e4e4e4);
  170. color: #474747;
  171. }
  172. .ckeditor-buttons li a {
  173. border: 0;
  174. cursor: move;
  175. display: block;
  176. min-height: 30px;
  177. line-height: 1.4;
  178. padding: 4px 6px;
  179. position: relative;
  180. text-decoration: none;
  181. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  182. white-space: nowrap;
  183. }
  184. .ckeditor-toolbar-dividers {
  185. float: right; /* LTR */
  186. }
  187. [dir="rtl"] .ckeditor-toolbar-dividers {
  188. float: left;
  189. }
  190. [dir="ltr"] .ckeditor-buttons li .cke-icon-only {
  191. font-size: 0;
  192. width: auto;
  193. /* Firefox includes the offscreen text in the focus indicator, resulting in a
  194. far too wide focus indicator. This fixes that. */
  195. overflow: hidden;
  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-toolbar-group-placeholder {
  230. background: #9dcae7;
  231. }
  232. .ckeditor-toolbar-group-placeholder {
  233. border-radius: 4px;
  234. }
  235. .ckeditor-multiple-buttons {
  236. padding: 1px 2px;
  237. margin: 5px;
  238. list-style: none;
  239. float: left; /* LTR */
  240. }
  241. [dir="rtl"] .ckeditor-multiple-buttons {
  242. float: right;
  243. }
  244. .ckeditor-multiple-buttons li {
  245. float: left; /* LTR */
  246. margin: 0;
  247. padding: 0;
  248. }
  249. [dir="rtl"] .ckeditor-multiple-buttons li {
  250. float: right;
  251. }
  252. .ckeditor-multiple-buttons li a {
  253. cursor: move;
  254. display: inline-block;
  255. min-height: 18px;
  256. line-height: 1.4;
  257. margin: 0;
  258. padding: 2px 0;
  259. }
  260. .ckeditor-buttons .ckeditor-group-button-separator,
  261. .ckeditor-multiple-buttons .ckeditor-group-button-separator {
  262. margin: -1px -3px -2px;
  263. }
  264. .ckeditor-buttons .ckeditor-group-button-separator a,
  265. .ckeditor-multiple-buttons .ckeditor-group-button-separator a {
  266. 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;
  267. width: 13px;
  268. padding: 0;
  269. height: 29px;
  270. position: relative;
  271. z-index: 10;
  272. }
  273. ul.ckeditor-buttons li.ckeditor-button-separator a {
  274. background: #e4e4e4;
  275. background-image: -webkit-linear-gradient(#e4e4e4, #b4b4b4);
  276. background-image: linear-gradient(#e4e4e4, #b4b4b4);
  277. height: 24px;
  278. margin: 1px 0 0;
  279. padding: 0;
  280. position: relative;
  281. width: 1px;
  282. z-index: 10;
  283. }
  284. .ckeditor-multiple-buttons .ckeditor-button-separator a {
  285. width: 2px;
  286. padding: 0;
  287. height: 26px;
  288. margin: 0 10px;
  289. }
  290. .ckeditor-separator {
  291. background-color: silver;
  292. background-color: rgba(0, 0, 0, 0.2);
  293. margin: 5px 0;
  294. height: 18px;
  295. width: 1px;
  296. display: block;
  297. box-shadow: 1px 0 1px rgba(255, 255, 255, 0.5);
  298. }
  299. .ckeditor-button-arrow {
  300. width: 0;
  301. text-align: center;
  302. border-left: 3px solid transparent;
  303. border-right: 3px solid transparent;
  304. border-top: 3px solid #333;
  305. display: inline-block;
  306. margin: 0 4px 2px;
  307. }
  308. .ckeditor-row-controls {
  309. float: right; /* LTR */
  310. font-size: 18px;
  311. width: 40px;
  312. text-align: right; /* LTR */
  313. }
  314. [dir="rtl"] .ckeditor-row-controls {
  315. float: left;
  316. text-align: left;
  317. }
  318. .ckeditor-row-controls a {
  319. display: inline-block;
  320. box-sizing: border-box;
  321. padding: 6px 2px;
  322. height: 28px;
  323. width: 20px;
  324. line-height: 0.9;
  325. font-weight: bold;
  326. color: #333;
  327. text-decoration: none;
  328. }