tooltip.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .tooltip {
  2. position: absolute;
  3. display: none;
  4. z-index: 9900000;
  5. outline: none;
  6. opacity: 1;
  7. filter: alpha(opacity = 100);
  8. padding: 5px;
  9. border-width: 1px;
  10. border-style: solid;
  11. border-radius: 5px;
  12. -moz-border-radius: 5px 5px 5px 5px;
  13. -webkit-border-radius: 5px 5px 5px 5px;
  14. border-radius: 5px 5px 5px 5px;
  15. }
  16. .tooltip-content {
  17. font-size: 12px;
  18. }
  19. .tooltip-arrow-outer, .tooltip-arrow {
  20. position: absolute;
  21. width: 0;
  22. height: 0;
  23. line-height: 0;
  24. font-size: 0;
  25. border-style: solid;
  26. border-width: 6px;
  27. border-color: transparent;
  28. _border-color: tomato;
  29. _filter: chroma(color = tomato);
  30. }
  31. .tooltip-arrow {
  32. display: none \9;
  33. }
  34. .tooltip-right .tooltip-arrow-outer {
  35. left: 0;
  36. top: 50%;
  37. margin: -6px 0 0 -13px;
  38. }
  39. .tooltip-right .tooltip-arrow {
  40. left: 0;
  41. top: 50%;
  42. margin: -6px 0 0 -12px;
  43. }
  44. .tooltip-left .tooltip-arrow-outer {
  45. right: 0;
  46. top: 50%;
  47. margin: -6px -13px 0 0;
  48. }
  49. .tooltip-left .tooltip-arrow {
  50. right: 0;
  51. top: 50%;
  52. margin: -6px -12px 0 0;
  53. }
  54. .tooltip-top .tooltip-arrow-outer {
  55. bottom: 0;
  56. left: 50%;
  57. margin: 0 0 -13px -6px;
  58. }
  59. .tooltip-top .tooltip-arrow {
  60. bottom: 0;
  61. left: 50%;
  62. margin: 0 0 -12px -6px;
  63. }
  64. .tooltip-bottom .tooltip-arrow-outer {
  65. top: 0;
  66. left: 50%;
  67. margin: -13px 0 0 -6px;
  68. }
  69. .tooltip-bottom .tooltip-arrow {
  70. top: 0;
  71. left: 50%;
  72. margin: -12px 0 0 -6px;
  73. }
  74. .tooltip {
  75. background-color: #666;
  76. border-color: #000;
  77. color: #fff;
  78. }
  79. .tooltip-right .tooltip-arrow-outer {
  80. border-right-color: #000;
  81. }
  82. .tooltip-right .tooltip-arrow {
  83. border-right-color: #666;
  84. }
  85. .tooltip-left .tooltip-arrow-outer {
  86. border-left-color: #000;
  87. }
  88. .tooltip-left .tooltip-arrow {
  89. border-left-color: #666;
  90. }
  91. .tooltip-top .tooltip-arrow-outer {
  92. border-top-color: #000;
  93. }
  94. .tooltip-top .tooltip-arrow {
  95. border-top-color: #666;
  96. }
  97. .tooltip-bottom .tooltip-arrow-outer {
  98. border-bottom-color: #000;
  99. }
  100. .tooltip-bottom .tooltip-arrow {
  101. border-bottom-color: #666;
  102. }