button.scss 594 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  2. // For licensing, see LICENSE.md or http://ckeditor.com/license
  3. .ck-button,
  4. a.ck-button {
  5. display: inline-block;
  6. position: relative;
  7. @include ck-unselectable();
  8. @include ck-tooltip_enabled();
  9. &.ck-button_with-text {
  10. .ck-button__label {
  11. display: block;
  12. }
  13. }
  14. &:hover {
  15. @include ck-tooltip_visible();
  16. }
  17. // Get rid of the native focus outline around the tooltip when focused (but not :hover).
  18. &:focus:not(:hover) {
  19. @include ck-tooltip_disabled();
  20. }
  21. .ck-button__label {
  22. display: none;
  23. }
  24. }