editor.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  2. // For licensing, see LICENSE.md or http://ckeditor.com/license
  3. @mixin ck-editor-toolbar {
  4. // Toolbars should not react to ck-rounded-corners() mixin.
  5. border-radius: 0;
  6. .ck-button {
  7. border-width: 0;
  8. // Make sure the next button does not overlap focused one.
  9. &:focus {
  10. z-index: 1;
  11. }
  12. &:not(:hover):not(:focus):not(.ck-on),
  13. &.ck-disabled {
  14. background: ck-color( 'foreground' );
  15. }
  16. &.ck-on {
  17. @include ck-button-colors( 'foreground', -10 );
  18. }
  19. // Tooltip tweaks:
  20. // 1. Don't display tooltips for disabled buttons in the toolbar,
  21. // they're unavailable anyway.
  22. // 2. Don't display tooltips for buttons with text; text explains
  23. // the button anyway.
  24. &.ck-button_with-text:not(.ck-dropdown__button),
  25. &.ck-disabled {
  26. @include ck-tooltip_disabled();
  27. }
  28. }
  29. .ck-dropdown__button {
  30. border-width: 1px;
  31. &:not(:hover):not(:focus):not(.ck-on) {
  32. background: ck-color( 'background' );
  33. }
  34. }
  35. }