ckeditor.admin.css

Same filename in this branch
  1. 9 core/themes/stable9/css/ckeditor/ckeditor.admin.css
  2. 9 core/themes/claro/css/theme/ckeditor.admin.css
  3. 9 core/themes/stable/css/ckeditor/ckeditor.admin.css
Same filename in other branches
  1. 8.9.x core/themes/stable/css/ckeditor/ckeditor.admin.css
  2. 8.9.x core/modules/ckeditor/css/ckeditor.admin.css

Styles for configuration of CKEditor module.

Many of these styles are adapted directly from the default CKEditor theme "moono".

File

core/modules/ckeditor/css/ckeditor.admin.css

View source
  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. outline: 1px dotted #212121;
  212. outline: 5px auto Highlight;
  213. outline: 5px auto -webkit-focus-ring-color;
  214. }
  215. .ckeditor-buttons li:first-child a {
  216. border-top-left-radius: 2px; /* LTR */
  217. border-bottom-left-radius: 2px; /* LTR */
  218. }
  219. [dir="rtl"] .ckeditor-buttons li:first-child a {
  220. border-top-right-radius: 2px;
  221. border-bottom-right-radius: 2px;
  222. }
  223. .ckeditor-buttons li:last-child a {
  224. border-top-right-radius: 2px; /* LTR */
  225. border-bottom-right-radius: 2px; /* LTR */
  226. }
  227. [dir="rtl"] .ckeditor-buttons li:last-child a {
  228. border-top-left-radius: 2px;
  229. border-bottom-left-radius: 2px;
  230. }
  231. .ckeditor-button-placeholder,
  232. .ckeditor-buttons .ckeditor-button-placeholder a,
  233. .ckeditor-toolbar-group-placeholder {
  234. background: #9dcae7;
  235. }
  236. .ckeditor-toolbar-group-placeholder {
  237. border-radius: 4px;
  238. }
  239. .ckeditor-multiple-buttons {
  240. float: left; /* LTR */
  241. margin: 5px;
  242. padding: 1px 2px;
  243. list-style: none;
  244. }
  245. [dir="rtl"] .ckeditor-multiple-buttons {
  246. float: right;
  247. }
  248. .ckeditor-multiple-buttons li {
  249. float: left; /* LTR */
  250. margin: 0;
  251. padding: 0;
  252. }
  253. [dir="rtl"] .ckeditor-multiple-buttons li {
  254. float: right;
  255. }
  256. .ckeditor-multiple-buttons li a {
  257. display: inline-block;
  258. min-height: 18px;
  259. margin: 0;
  260. padding: 2px 0;
  261. cursor: move;
  262. line-height: 1.4;
  263. }
  264. .ckeditor-buttons .ckeditor-group-button-separator,
  265. .ckeditor-multiple-buttons .ckeditor-group-button-separator {
  266. margin: -1px -3px -2px;
  267. }
  268. .ckeditor-buttons .ckeditor-group-button-separator a,
  269. .ckeditor-multiple-buttons .ckeditor-group-button-separator a {
  270. position: relative;
  271. z-index: 10;
  272. width: 13px;
  273. height: 29px;
  274. padding: 0;
  275. 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;
  276. }
  277. ul.ckeditor-buttons li.ckeditor-button-separator a {
  278. position: relative;
  279. z-index: 10;
  280. width: 1px;
  281. height: 24px;
  282. margin: 1px 0 0;
  283. padding: 0;
  284. background: #e4e4e4;
  285. background-image: -webkit-linear-gradient(#e4e4e4, #b4b4b4);
  286. background-image: linear-gradient(#e4e4e4, #b4b4b4);
  287. }
  288. .ckeditor-multiple-buttons .ckeditor-button-separator a {
  289. width: 2px;
  290. height: 26px;
  291. margin: 0 10px;
  292. padding: 0;
  293. }
  294. .ckeditor-separator {
  295. display: block;
  296. width: 1px;
  297. height: 18px;
  298. margin: 5px 0;
  299. background-color: silver;
  300. background-color: rgba(0, 0, 0, 0.2);
  301. box-shadow: 1px 0 1px rgba(255, 255, 255, 0.5);
  302. }
  303. .ckeditor-button-arrow {
  304. display: inline-block;
  305. width: 0;
  306. margin: 0 4px 2px;
  307. text-align: center;
  308. border-top: 3px solid #333;
  309. border-right: 3px solid transparent;
  310. border-left: 3px solid transparent;
  311. }
  312. .ckeditor-row-controls {
  313. float: right; /* LTR */
  314. width: 40px;
  315. text-align: right; /* LTR */
  316. font-size: 18px;
  317. }
  318. [dir="rtl"] .ckeditor-row-controls {
  319. float: left;
  320. text-align: left;
  321. }
  322. .ckeditor-row-controls a {
  323. display: inline-block;
  324. box-sizing: border-box;
  325. width: 20px;
  326. height: 28px;
  327. padding: 6px 2px;
  328. text-decoration: none;
  329. color: #333;
  330. font-weight: bold;
  331. line-height: 0.9;
  332. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.