tooltip.css 733 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. .ck.ck-tooltip,
  6. .ck.ck-tooltip .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.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. & .ck-tooltip__text {
  21. display: inline-block;
  22. &::after {
  23. content: "";
  24. width: 0;
  25. height: 0;
  26. }
  27. }
  28. }