button.css 740 B

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