button.css 621 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. @import "../helpers/states.css";
  6. @import "./tooltip.css";
  7. .ck-button,
  8. a.ck-button {
  9. @mixin ck-unselectable;
  10. @mixin ck-tooltip_enabled;
  11. display: inline-block;
  12. position: relative;
  13. &.ck-button_with-text {
  14. & .ck-button__label {
  15. display: 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. }