8
0

button.css 751 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2003-2018, 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-flex;
  13. flex-flow: row nowrap;
  14. align-items: center;
  15. position: relative;
  16. justify-content: center;
  17. &.ck-button_with-text {
  18. & .ck-button__label {
  19. display: inline;
  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. }