Advertisement
valuser

DOM Tooltip by Chris Roberts -ltered by valuser

Jan 29th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. /*
  2. dom_tooltip.css
  3.  
  4. DOM Tooltip by Chris Roberts
  5. http://croberts.me/
  6.  
  7. This file configures the look for the Tippy tooltip. Rename this file to
  8. dom_tooltip.css and flavor to taste.
  9. */
  10.  
  11. a.tippy_link {
  12. font-weight: normal;
  13. border-bottom: 1px dotted blue;
  14. color: black;
  15. cursor: pointer;
  16. }
  17.  
  18. a.tippy_link:hover {
  19. border-bottom: 1px solid blue;
  20. }
  21.  
  22. div.domTip_Tip {
  23. width: 500px;
  24. height: 300px;
  25.  
  26. border-radius: 5px;
  27. box-shadow: 0px 0px 3px #888, 4px 4px 6px #888;
  28.  
  29. z-index: 200000;
  30. }
  31.  
  32. div.domTip_tipHeader a {
  33. color: blue;
  34. text-decoration: none;
  35. border-bottom: 1px solid blue;
  36. }
  37.  
  38. div.domTip_tipHeader a:hover {
  39. border-bottom: none;
  40. }
  41.  
  42. div.domTip_tipHeader {
  43. /*
  44. The width has to be specified in TipHeader and TipBody in order for
  45. transparency to work with Internet Explorer. Width here is a little tricky.
  46. It needs to be the width set in domTip_Tip with a few things subtracted.
  47.  
  48. If in this section you set either a padding or a margin you need to subtract
  49. those from the width. If they affect both left and right side, then you need
  50. to subtract it times two.
  51.  
  52. Example:
  53.  
  54. domTip_Tip width: 350px;
  55. dopTip_TipHeader padding: 2px;
  56.  
  57. then domTip_TipHeader width should be 346px
  58. */
  59. background-color: #a4c2dd;
  60. width: 490px;
  61. padding: 5px;
  62. border-radius: 5px 5px 0 0;
  63.  
  64. font-family: Georgia, "Times New Roman", serif;
  65. font-size: 15px;
  66. font-weight: bold;
  67. color: #1966ff;
  68. text-align: left;
  69.  
  70. /*
  71. The next three alter transparency. The number given in each line
  72. should be the same, but for opacity and mozOpacity it should be
  73. a decimal. The higher the value, the less it will be transparent.
  74.  
  75. Note that most browsers don't support all three properties, but all three
  76. should remain in place for cross-browser support.
  77.  
  78. Example:
  79. filter: alpha(opacity=60);
  80. opacity: .60;
  81. mozOpacity: .60;
  82. */
  83.  
  84. filter: alpha(opacity=95);
  85. -moz-opacity: 0.95;
  86. opacity: 0.95;
  87. }
  88.  
  89. div.domTip_tipCloseLink {
  90. float: right;
  91. cursor: pointer;
  92.  
  93. font-size: .85em;
  94. color: #444;
  95. }
  96.  
  97. div.domTip_tipBody div.domTip_tipCloseLink {
  98. margin-top: -5px;
  99. margin-right: -10px;
  100. margin-left: 5px;
  101. }
  102.  
  103. div.domTip_tipBody {
  104. /*
  105. The width has to be specified in TipHeader and TipBody in order for
  106. transparency to work with Internet Explorer. Width here is a little tricky.
  107. It needs to be the width set in domTip_Tip with a few things subtracted.
  108.  
  109. If in this section you set either a padding or a margin you need to subtract
  110. those from the width. If they affect both left and right side, then you need
  111. to subtract it times two.
  112.  
  113. Example:
  114.  
  115. domTip_Tip width: 350px;
  116. domTip_TipBody padding: 2px;
  117.  
  118. then domTip_TipBody width should be 346px
  119. */
  120. background-color: white;
  121. padding: 5px 15px 5px 15px;
  122.  
  123. width: 470px;
  124. max-height: 275px;
  125. overflow: auto;
  126.  
  127. border-radius: 0 0 5px 5px;
  128.  
  129. font-family: Helvetica, Arial, sans-serif;
  130. font-size: 15px;
  131. color: black;
  132. text-align: justify;
  133.  
  134. /*
  135. The next three alter transparency. The number given in each line
  136. should be the same, but for opacity and -moz-opacity it should be
  137. a decimal. The higher the value, the less it will be transparent.
  138.  
  139. Note that most browsers don't support all three properties, but all three
  140. should remain in place for cross-browser support.
  141.  
  142. Example:
  143. filter: alpha(opacity=60);
  144. opacity: .60;
  145. mozOpacity: .60;
  146. */
  147.  
  148. filter: alpha(opacity=98);
  149. -moz-opacity: 0.98;
  150. opacity: 0.98;
  151. }
  152.  
  153. div.domTip_tipBody.domTip_noHeader {
  154. border-radius: 5px;
  155. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement