8
0

button.css 662 B

1234567891011121314151617181920212223242526272829303132333435
  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. position: relative;
  13. &.ck-button_with-text {
  14. & .ck-button__label {
  15. display: inline-block;
  16. }
  17. }
  18. &:hover {
  19. @mixin ck-tooltip_visible;
  20. }
  21. /* Get rid of the native focus outline around the tooltip when focused (but not :hover). */
  22. &:focus:not(:hover) {
  23. @mixin ck-tooltip_disabled;
  24. }
  25. & .ck-button__label {
  26. display: none;
  27. }
  28. }