tool-tip.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. .tool-tip-reference-layer{
  2. display: none;
  3. position: absolute;
  4. width: 0px;
  5. height: 0px;
  6. top: 50%;
  7. left: 50%;
  8. z-index: 9999999;
  9. }
  10. .tool-tip-content{
  11. display: inline-block;
  12. position: absolute;
  13. width: 280px;
  14. min-height: 210px;
  15. background: #fff;
  16. padding: 20px 25px;
  17. box-shadow: 0px 0px 10px 0px #fff;
  18. border-radius: 5px;
  19. z-index: 9999999;
  20. bottom: auto;
  21. left: auto;
  22. top: auto;
  23. right: auto;
  24. }
  25. .tool-tip-arrow{
  26. display: none;
  27. width: 18px;
  28. height: 18px;
  29. position: absolute;
  30. left: 50%;
  31. top: 50%;
  32. background: #fff;
  33. box-shadow: 0px 0px 10px 0px #fff;
  34. }
  35. .tool-tip-reference-layer.pos-top .tool-tip-content{
  36. left: calc(50% - 140px);
  37. top: 0px;
  38. transform: translate(0px, calc(-100% - 25px));
  39. }
  40. .tool-tip-reference-layer.pos-top .tool-tip-arrow{
  41. display: inline-block;
  42. bottom: 100%;
  43. transform: translate(-50%, calc(50% - 25px) ) rotate(45deg);
  44. top: auto;
  45. }
  46. .tool-tip-reference-layer.pos-bottom .tool-tip-content{
  47. left: calc(50% - 140px);
  48. top: calc(100% + 25px);
  49. transform: translate(0px, 0);
  50. }
  51. .tool-tip-reference-layer.pos-bottom .tool-tip-arrow{
  52. display: inline-block;
  53. top: 100%;
  54. transform: translate(-50%, calc(-50% + 25px)) rotate(45deg);
  55. bottom: auto;
  56. }
  57. .tool-tip-reference-layer.pos-left .tool-tip-content{
  58. top: calc(50%);
  59. left: 0px;
  60. transform: translate(calc(-100% - 25px), -50%);
  61. }
  62. .tool-tip-reference-layer.pos-left .tool-tip-arrow{
  63. display: inline-block;
  64. right: 100%;
  65. transform: translate(calc(50% - 25px), -50%) rotate(45deg);
  66. left: auto;
  67. }
  68. .tool-tip-reference-layer.pos-right .tool-tip-content{
  69. top: 50%;
  70. left: calc(100% + 25px);
  71. transform: translate(0, -50%);
  72. }
  73. .tool-tip-reference-layer.pos-right .tool-tip-arrow{
  74. display: inline-block;
  75. left: 100%;
  76. transform: translate(calc(-50% + 25px), -50%) rotate(45deg);
  77. right: auto;
  78. }
  79. .tool-tip-content .tool-tip-title{
  80. font-family: opensanssemibold;
  81. font-size: 16px;
  82. color: #231F20;
  83. margin-bottom: 15px;
  84. }
  85. .tool-tip-content .tool-tip-detail{
  86. font-family: opensanslight;
  87. font-size: 15px;
  88. color: #231F20;
  89. line-height: 21px;
  90. margin-bottom: 15px;
  91. min-height: 84px;
  92. }
  93. .tool-tip-content .tool-tip-button-next{
  94. display: inline-block;
  95. font-family: opensansregular;
  96. font-size: 15px;
  97. color: #77BC00;
  98. text-decoration: none;
  99. outline: 0px;
  100. float: right;
  101. }
  102. .tool-tip-content .tool-tip-button-next::after{
  103. content: "";
  104. display: inline-block;
  105. border: 1px solid #77BC00;
  106. border-width: 0px 1px 1px 0px;
  107. transform: rotate(-45deg);
  108. margin-left: 7px;
  109. width: 8px;
  110. height: 8px;
  111. }
  112. .tool-tip-content .tool-tip-button-skip{
  113. display: inline-block;
  114. font-family: opensansregular;
  115. font-size: 15px;
  116. color: #93000B;
  117. text-decoration: none;
  118. outline: 0px;
  119. float: left;
  120. display: none;
  121. }
  122. .tool-tip-overlay{
  123. display: block;
  124. position: fixed;
  125. width: 100%;
  126. height: 100%;
  127. top: 0px;
  128. left: 0px;
  129. bottom: 0px;
  130. right: 0px;
  131. background: rgba(0, 0, 0, 0.5);
  132. z-index: 9999998;
  133. }
  134. .tool-tip-active{
  135. position: relative;
  136. z-index: 9999999;
  137. }
  138. .tool-tip-reference-layer.arrow-left .tool-tip-content{
  139. left: -10px;
  140. right: auto;
  141. }
  142. .tool-tip-reference-layer.arrow-right .tool-tip-content{
  143. left: auto;
  144. right: -10px;
  145. }