_icon.scss 970 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .ui-kankan-icon.iconfont {
  2. color: currentColor;
  3. font-size: 1em;
  4. &.small {
  5. font-size: 12px;
  6. }
  7. &.medium {
  8. font-size: 16px;
  9. }
  10. &.big {
  11. font-size: 20px;
  12. }
  13. }
  14. .icon {
  15. position: relative;
  16. .tip {
  17. color: rgba(255,255,255,1);
  18. position: absolute;
  19. transform-origin: top center;
  20. background: #000000;
  21. border-radius: 4px;
  22. opacity: 0;
  23. padding: 10px;
  24. margin: 10px;
  25. font-size: 12px;
  26. transition: opacity .3s ease;
  27. pointer-events: none;
  28. white-space: nowrap;
  29. }
  30. &:hover {
  31. z-index: 999;
  32. .tip {
  33. opacity: 0.8;
  34. }
  35. }
  36. }
  37. .tip-h-right .tip{
  38. right: 0;
  39. margin-right: 0;
  40. }
  41. .tip-h-left .tip {
  42. left: 0;
  43. margin-left: 0;
  44. }
  45. .tip-h-center .tip {
  46. left: 50%;
  47. transform: translateX(-50%);
  48. margin-left: 0;
  49. margin-right: 0;
  50. z-index: 10;
  51. }
  52. .tip-v-top .tip {
  53. bottom: 100%;
  54. }
  55. .tip-v-center .tip {
  56. top: 50%;
  57. transform: translateY(-50%);
  58. }
  59. .tip-v-bottom .tip {
  60. top: 100%;
  61. }