index.css 2.6 KB

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