tooltip.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @name tooltip.css
  3. */
  4. .tipsy {
  5. padding: 4px;
  6. font-size: 12px;
  7. position: absolute;
  8. z-index: 100000;
  9. /* Animation */
  10. -webkit-animation-name: fadeIn;
  11. -webkit-animation-duration: .3s;
  12. -moz-animation-name: fadeIn;
  13. -moz-animation-duration: .3s;
  14. animation-name: fadeIn;
  15. animation-duration: .3s;
  16. }
  17. .tipsy-inner {
  18. padding: 8px 10px 7px;
  19. color: #fff;
  20. max-width: 200px;
  21. text-align: center;
  22. background: rgba(0, 0, 0, .8);
  23. border-radius: 25px;
  24. }
  25. .tipsy-arrow { position: absolute; width: 0; height: 0; line-height: 0; border: 5px dashed rgba(0, 0, 0, .8); }
  26. .tipsy-arrow-n { border-bottom-color: rgba(0, 0, 0, .8); }
  27. .tipsy-arrow-s { border-top-color: rgba(0, 0, 0, .8); }
  28. .tipsy-arrow-e { border-left-color: rgba(0, 0, 0, .8); }
  29. .tipsy-arrow-w { border-right-color: rgba(0, 0, 0, .8); }
  30. .tipsy-n .tipsy-arrow { top: 0px; left: 50%; margin-left: -5px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
  31. .tipsy-nw .tipsy-arrow { top: 0; left: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent;}
  32. .tipsy-ne .tipsy-arrow { top: 0; right: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent;}
  33. .tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
  34. .tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
  35. .tipsy-se .tipsy-arrow { bottom: 0; right: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
  36. .tipsy-e .tipsy-arrow { right: 0; top: 50%; margin-top: -5px; border-left-style: solid; border-right: none; border-top-color: transparent; border-bottom-color: transparent; }
  37. .tipsy-w .tipsy-arrow { left: 0; top: 50%; margin-top: -5px; border-right-style: solid; border-left: none; border-top-color: transparent; border-bottom-color: transparent; }