You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tooltip.css 2.2KB

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