ckeditor.admin.css
Same filename in this branch
Same filename in other branches
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
- /**
- * @file
- * Styles for configuration of CKEditor module.
- *
- * Many of these styles are adapted directly from the default CKEditor theme
- * "moono".
- */
-
- .ckeditor-toolbar {
- margin: 5px 0;
- padding: 0.1667em 0.1667em 0.08em;
- /* Disallow any user selections in the drag-and-drop toolbar config UI. */
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- border: 1px solid #b6b6b6;
- background: #cfd1cf;
- background-image: -webkit-linear-gradient(top, whiteSmoke, #cfd1cf);
- background-image: linear-gradient(top, whiteSmoke, #cfd1cf);
- box-shadow: 0 1px 0 white inset;
- }
- .ckeditor-toolbar-active {
- margin-top: 0.25em;
- }
- .ckeditor-toolbar-disabled {
- margin-bottom: 0.5em;
- }
- .ckeditor-toolbar ul,
- .ckeditor-toolbar-disabled ul {
- margin: 0;
- padding: 0;
- list-style: none;
- }
- /* This is required to win over specificity of [dir="rtl"] ul */
- [dir="rtl"] .ckeditor-toolbar ul,
- [dir="rtl"] .ckeditor-toolbar-disabled ul {
- margin-right: 0;
- }
-
- .ckeditor-row {
- padding: 2px 0 3px;
- border-radius: 3px;
- }
- .ckeditor-group-names-are-visible .ckeditor-row {
- border: 1px solid whitesmoke;
- }
- .ckeditor-row + .ckeditor-row {
- margin-top: 0.25em;
- }
- .ckeditor-toolbar-group,
- .ckeditor-toolbar-group-placeholder,
- .ckeditor-add-new-group {
- float: left; /* LTR */
- }
- [dir="rtl"] .ckeditor-toolbar-group,
- [dir="rtl"] .ckeditor-toolbar-group-placeholder,
- [dir="rtl"] .ckeditor-add-new-group {
- float: right;
- }
- .ckeditor-toolbar-groups {
- min-height: 2em;
- }
- .ckeditor-toolbar-group {
- margin: 0 0.3333em;
- cursor: move;
- }
- .ckeditor-group-names-are-visible .ckeditor-toolbar-group,
- .ckeditor-add-new-group {
- padding: 0.2em 0.4em;
- border: 1px dotted #a6a6a6;
- border-radius: 3px;
- }
- .ckeditor-toolbar-group.placeholder,
- .ckeditor-toolbar-group.placeholder .ckeditor-toolbar-group-name {
- cursor: not-allowed;
- }
- .ckeditor-toolbar-group.placeholder .ckeditor-toolbar-group-name {
- font-style: italic;
- }
- .ckeditor-toolbar-group-name {
- display: none;
- margin: 0.25em 0;
- font-size: 1em;
- font-weight: normal;
- }
- .ckeditor-group-names-are-visible .ckeditor-toolbar-group-name {
- display: block;
- cursor: pointer;
- }
- .ckeditor-toolbar-active .placeholder,
- .ckeditor-toolbar-active .ckeditor-add-new-group {
- display: none;
- }
- .ckeditor-group-names-are-visible .placeholder,
- .ckeditor-group-names-are-visible .ckeditor-add-new-group {
- display: block;
- }
- .ckeditor-toolbar-group-buttons {
- float: left; /* LTR */
- }
- [dir="rtl"] .ckeditor-toolbar-group-buttons {
- float: right;
- }
- .ckeditor-groupnames-toggle {
- float: right; /* LTR */
- cursor: pointer;
- }
- [dir="rtl"] .ckeditor-groupnames-toggle {
- float: left;
- }
- .ckeditor-toolbar .ckeditor-toolbar-group > li {
- margin: 3px 6px;
- padding: 3px;
- border: 1px solid white;
- border-radius: 5px;
- background-image: -webkit-linear-gradient(transparent 60%, rgba(0, 0, 0, 0.1));
- background-image: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.1));
- }
- .ckeditor-toolbar-configuration .fieldset-description {
- margin-bottom: 1em;
- }
- .ckeditor-toolbar-disabled .ckeditor-toolbar-available,
- .ckeditor-toolbar-disabled .ckeditor-toolbar-dividers {
- box-sizing: border-box;
- }
- .ckeditor-toolbar-disabled .ckeditor-toolbar-available {
- float: left; /* LTR */
- width: 80%;
- }
- [dir="rtl"] .ckeditor-toolbar-disabled .ckeditor-toolbar-available {
- float: right;
- }
- .ckeditor-toolbar-disabled .ckeditor-toolbar-dividers {
- float: right; /* LTR */
- width: 20%;
- }
- [dir="rtl"] .ckeditor-toolbar-disabled .ckeditor-toolbar-dividers {
- float: left;
- }
- .ckeditor-toolbar-disabled .ckeditor-buttons li a,
- .ckeditor-toolbar .ckeditor-buttons,
- .ckeditor-add-new-group button {
- border: 1px solid #a6a6a6;
- border-bottom-color: #979797;
- border-radius: 3px;
- 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;
- }
- .ckeditor-toolbar-disabled .ckeditor-buttons {
- border: 0;
- }
- .ckeditor-toolbar-disabled .ckeditor-buttons li {
- margin: 2px;
- }
- .ckeditor-buttons {
- min-width: 26px;
- min-height: 26px;
- }
- .ckeditor-buttons li {
- float: left; /* LTR */
- margin: 0;
- padding: 0;
- }
- [dir="rtl"] .ckeditor-buttons li {
- float: right;
- }
- .ckeditor-buttons li a,
- .ckeditor-add-new-group button {
- color: #474747;
- background: #e4e4e4;
- background-image: -webkit-linear-gradient(top, white, #e4e4e4);
- background-image: linear-gradient(top, white, #e4e4e4);
- }
- .ckeditor-buttons li a {
- position: relative;
- display: block;
- min-height: 18px;
- padding: 4px 6px;
- cursor: move;
- white-space: nowrap;
- text-decoration: none;
- border: 0;
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
- line-height: 1.4;
- }
- .ckeditor-toolbar-dividers {
- float: right; /* LTR */
- }
- [dir="rtl"] .ckeditor-toolbar-dividers {
- float: left;
- }
- .ckeditor-buttons li .cke-icon-only {
- /* Firefox includes the offscreen text in the focus indicator, resulting in a
- far too wide focus indicator. This fixes that. */
- overflow: hidden;
- width: 16px;
- text-indent: -9999px;
- }
- .ckeditor-buttons .cke_button_icon img {
- width: 16px;
- height: 16px;
- }
- .ckeditor-buttons li .cke_ltr {
- direction: ltr;
- }
- .ckeditor-buttons li .cke_rtl {
- direction: rtl;
- }
- .ckeditor-buttons li a:focus,
- .ckeditor-buttons li a:active,
- .ckeditor-multiple-buttons li a:focus {
- z-index: 11; /* Ensure focused buttons show their outline on all sides. */
- }
- .ckeditor-buttons li:first-child a {
- border-top-left-radius: 2px; /* LTR */
- border-bottom-left-radius: 2px; /* LTR */
- }
- [dir="rtl"] .ckeditor-buttons li:first-child a {
- border-top-right-radius: 2px;
- border-bottom-right-radius: 2px;
- }
- .ckeditor-buttons li:last-child a {
- border-top-right-radius: 2px; /* LTR */
- border-bottom-right-radius: 2px; /* LTR */
- }
- [dir="rtl"] .ckeditor-buttons li:last-child a {
- border-top-left-radius: 2px;
- border-bottom-left-radius: 2px;
- }
- .ckeditor-button-placeholder,
- .ckeditor-buttons .ckeditor-button-placeholder a,
- .ckeditor-toolbar-group-placeholder {
- background: #9dcae7;
- }
- .ckeditor-toolbar-group-placeholder {
- border-radius: 4px;
- }
- .ckeditor-multiple-buttons {
- float: left; /* LTR */
- margin: 5px;
- padding: 1px 2px;
- list-style: none;
- }
- [dir="rtl"] .ckeditor-multiple-buttons {
- float: right;
- }
- .ckeditor-multiple-buttons li {
- float: left; /* LTR */
- margin: 0;
- padding: 0;
- }
- [dir="rtl"] .ckeditor-multiple-buttons li {
- float: right;
- }
- .ckeditor-multiple-buttons li a {
- display: inline-block;
- min-height: 18px;
- margin: 0;
- padding: 2px 0;
- cursor: move;
- line-height: 1.4;
- }
- .ckeditor-buttons .ckeditor-group-button-separator,
- .ckeditor-multiple-buttons .ckeditor-group-button-separator {
- margin: -1px -3px -2px;
- }
- .ckeditor-buttons .ckeditor-group-button-separator a,
- .ckeditor-multiple-buttons .ckeditor-group-button-separator a {
- position: relative;
- z-index: 10;
- width: 13px;
- height: 29px;
- padding: 0;
- 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;
- }
- ul.ckeditor-buttons li.ckeditor-button-separator a {
- position: relative;
- z-index: 10;
- width: 1px;
- height: 24px;
- margin: 1px 0 0;
- padding: 0;
- background: #e4e4e4;
- background-image: -webkit-linear-gradient(#e4e4e4, #b4b4b4);
- background-image: linear-gradient(#e4e4e4, #b4b4b4);
- }
- .ckeditor-multiple-buttons .ckeditor-button-separator a {
- width: 2px;
- height: 26px;
- margin: 0 10px;
- padding: 0;
- }
- .ckeditor-separator {
- display: block;
- width: 1px;
- height: 18px;
- margin: 5px 0;
- background-color: silver;
- background-color: rgba(0, 0, 0, 0.2);
- box-shadow: 1px 0 1px rgba(255, 255, 255, 0.5);
- }
- .ckeditor-button-arrow {
- display: inline-block;
- width: 0;
- margin: 0 4px 2px;
- text-align: center;
- border-top: 3px solid #333;
- border-right: 3px solid transparent;
- border-left: 3px solid transparent;
- }
- .ckeditor-row-controls {
- float: right; /* LTR */
- width: 40px;
- text-align: right; /* LTR */
- font-size: 18px;
- }
- [dir="rtl"] .ckeditor-row-controls {
- float: left;
- text-align: left;
- }
- .ckeditor-row-controls a {
- display: inline-block;
- box-sizing: border-box;
- width: 20px;
- height: 28px;
- padding: 6px 2px;
- text-decoration: none;
- color: #333;
- font-weight: bold;
- line-height: 0.9;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.