LayerUI.scss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @import "open-color/open-color";
  2. .layer-ui__wrapper {
  3. .encrypted-icon {
  4. position: relative;
  5. margin-left: 15px;
  6. display: flex;
  7. justify-content: center;
  8. align-items: center;
  9. border-radius: var(--space-factor);
  10. color: $oc-green-9;
  11. svg {
  12. width: 1.2rem;
  13. height: 1.2rem;
  14. }
  15. &.tooltip .tooltip-text {
  16. visibility: hidden;
  17. width: 20rem;
  18. bottom: calc(50% + 0.8rem);
  19. left: -5px;
  20. background-color: $oc-black;
  21. color: $oc-white;
  22. text-align: center;
  23. border-radius: 6px;
  24. padding: 5px;
  25. position: absolute;
  26. z-index: 10;
  27. font-size: 13px;
  28. line-height: 1.5;
  29. white-space: pre-wrap;
  30. }
  31. // the following 3 rules ensure that the tooltip doesn't show (nor affect
  32. // the cursor) when you drag over when you draw on canvas, but at the same
  33. // time it still works when clicking on the link/shield
  34. body:active &.tooltip:not(:hover) {
  35. pointer-events: none;
  36. }
  37. body:not(:active) &.tooltip:hover .tooltip-text {
  38. visibility: visible;
  39. }
  40. .tooltip-text:hover {
  41. visibility: visible;
  42. }
  43. }
  44. }