Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

tooltip.css 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .es-toolip .tippy-arrow {
  2. border-color: inherit;
  3. }
  4. .es-tooltip .tippy-box[data-placement^='right'] > .tippy-arrow::before {
  5. transform: scale(1.75);
  6. }
  7. .es-tooltip .tippy-box[data-placement^='right'] > .tippy-arrow::after {
  8. content: "";
  9. z-index: -1;
  10. position: absolute;
  11. border-color: transparent;
  12. border-style: solid;
  13. top: 0;
  14. border-width: 8px 8px 8px 0;
  15. border-right-color: inherit;
  16. left: -11px;
  17. transform: scale(1.75);
  18. }
  19. .es-tooltip .tippy-box[data-theme~='light'][data-placement^='right'] {
  20. border-radius: 8px;
  21. border: 1px solid #d4dde3;
  22. box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  23. }
  24. .es-tooltip .tippy-box[data-theme~='dark'][data-placement^='right'] {
  25. border-radius: 8px;
  26. border: 1px solid #555555;
  27. box-shadow: 0 4px 16px 0 rgba(0, 0, 0, .7);
  28. }
  29. .es-close-tooltip {
  30. cursor: pointer;
  31. position: absolute;
  32. top: 8px;
  33. right: 8px;
  34. width: 16px;
  35. height: 16px;
  36. border: 0;
  37. background: none;
  38. padding: 0;
  39. &::before {
  40. transform: rotate(45deg);
  41. }
  42. &::after {
  43. transform: rotate(-45deg);
  44. }
  45. &::before, &::after {
  46. content: '';
  47. position: absolute;
  48. top: 2px;
  49. left: 7px;
  50. width: 2px;
  51. height: 12px;
  52. background-color: #92a0aa;
  53. transition: background-color 0.2s;
  54. }
  55. }
  56. .es-close-tooltip:hover::before, .es-close-tooltip:hover::after {
  57. background-color: #707070;
  58. }
  59. :is(.dark) .es-close-tooltip::before, :is(.dark) .es-close-tooltip::after {
  60. background-color: #dddddd;
  61. }
  62. :is(.dark) .es-close-tooltip:hover::before, :is(.dark) .es-close-tooltip:hover::after {
  63. background-color: #bbbbbb;
  64. }