| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- // Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- // For licensing, see LICENSE.md or http://ckeditor.com/license
- @mixin ck-editor-toolbar {
- // Toolbars should not react to ck-rounded-corners() mixin.
- border-radius: 0;
- .ck-button {
- border-width: 0;
- // Make sure the next button does not overlap focused one.
- &:focus {
- z-index: 1;
- }
- &:not(:hover):not(:focus):not(.ck-on),
- &.ck-disabled {
- background: ck-color( 'foreground' );
- }
- &.ck-on {
- @include ck-button-colors( 'foreground', -10 );
- }
- // Tooltip tweaks:
- // 1. Don't display tooltips for disabled buttons in the toolbar,
- // they're unavailable anyway.
- // 2. Don't display tooltips for buttons with text; text explains
- // the button anyway.
- &.ck-button_with-text:not(.ck-dropdown__button),
- &.ck-disabled {
- @include ck-tooltip_disabled();
- }
- }
- .ck-dropdown__button {
- border-width: 1px;
- &:not(:hover):not(:focus):not(.ck-on) {
- background: ck-color( 'background' );
- }
- }
- }
|