index.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. /* stylelint-disable */
  4. /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
  5. .ant-anchor {
  6. box-sizing: border-box;
  7. margin: 0;
  8. padding: 0;
  9. color: rgba(0, 0, 0, 0.85);
  10. font-size: 14px;
  11. font-variant: tabular-nums;
  12. line-height: 1.5715;
  13. list-style: none;
  14. font-feature-settings: 'tnum';
  15. position: relative;
  16. padding-left: 2px;
  17. }
  18. .ant-anchor-wrapper {
  19. margin-left: -4px;
  20. padding-left: 4px;
  21. overflow: auto;
  22. background-color: transparent;
  23. }
  24. .ant-anchor-ink {
  25. position: absolute;
  26. top: 0;
  27. left: 0;
  28. height: 100%;
  29. }
  30. .ant-anchor-ink::before {
  31. position: relative;
  32. display: block;
  33. width: 2px;
  34. height: 100%;
  35. margin: 0 auto;
  36. background-color: #f0f0f0;
  37. content: ' ';
  38. }
  39. .ant-anchor-ink-ball {
  40. position: absolute;
  41. left: 50%;
  42. display: none;
  43. width: 8px;
  44. height: 8px;
  45. background-color: #fff;
  46. border: 2px solid #1890ff;
  47. border-radius: 8px;
  48. transform: translateX(-50%);
  49. transition: top 0.3s ease-in-out;
  50. }
  51. .ant-anchor-ink-ball.visible {
  52. display: inline-block;
  53. }
  54. .ant-anchor-fixed .ant-anchor-ink .ant-anchor-ink-ball {
  55. display: none;
  56. }
  57. .ant-anchor-link {
  58. padding: 7px 0 7px 16px;
  59. line-height: 1.143;
  60. }
  61. .ant-anchor-link-title {
  62. position: relative;
  63. display: block;
  64. margin-bottom: 6px;
  65. overflow: hidden;
  66. color: rgba(0, 0, 0, 0.85);
  67. white-space: nowrap;
  68. text-overflow: ellipsis;
  69. transition: all 0.3s;
  70. }
  71. .ant-anchor-link-title:only-child {
  72. margin-bottom: 0;
  73. }
  74. .ant-anchor-link-active > .ant-anchor-link-title {
  75. color: #1890ff;
  76. }
  77. .ant-anchor-link .ant-anchor-link {
  78. padding-top: 5px;
  79. padding-bottom: 5px;
  80. }
  81. .ant-anchor-rtl {
  82. direction: rtl;
  83. }
  84. .ant-anchor-rtl.ant-anchor-wrapper {
  85. margin-right: -4px;
  86. margin-left: 0;
  87. padding-right: 4px;
  88. padding-left: 0;
  89. }
  90. .ant-anchor-rtl .ant-anchor-ink {
  91. right: 0;
  92. left: auto;
  93. }
  94. .ant-anchor-rtl .ant-anchor-ink-ball {
  95. right: 50%;
  96. left: 0;
  97. transform: translateX(50%);
  98. }
  99. .ant-anchor-rtl .ant-anchor-link {
  100. padding: 7px 16px 7px 0;
  101. }