button.css 630 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. @import "../../mixins/_unselectable.css";
  6. @import "../tooltip/mixins/_tooltip.css";
  7. .ck-button,
  8. a.ck-button {
  9. @mixin ck-unselectable;
  10. @mixin ck-tooltip_enabled;
  11. position: relative;
  12. &.ck-button_with-text {
  13. & .ck-button__label {
  14. display: inline-block;
  15. }
  16. }
  17. &:hover {
  18. @mixin ck-tooltip_visible;
  19. }
  20. /* Get rid of the native focus outline around the tooltip when focused (but not :hover). */
  21. &:focus:not(:hover) {
  22. @mixin ck-tooltip_disabled;
  23. }
  24. & .ck-button__label {
  25. display: none;
  26. }
  27. }