tooltip.css 663 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. .ck-tooltip,
  6. .ck-tooltip__text::after {
  7. position: absolute;
  8. /* Without this, hovering the tooltip could keep it visible. */
  9. pointer-events: none;
  10. /* This is to get rid of flickering when transitioning opacity in Chrome.
  11. It's weird but it works. */
  12. -webkit-backface-visibility: hidden;
  13. }
  14. .ck-tooltip {
  15. /* Tooltip is hidden by default. */
  16. visibility: hidden;
  17. opacity: 0;
  18. display: none;
  19. z-index: var(--ck-z-modal);
  20. }
  21. .ck-tooltip__text {
  22. display: inline-block;
  23. }
  24. .ck-tooltip__text::after {
  25. content: "";
  26. width: 0;
  27. height: 0;
  28. }