123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
- /* stylelint-disable no-duplicate-selectors */
- .ant-anchor {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- color: rgba(0, 0, 0, 0.85);
- font-size: 14px;
- font-variant: tabular-nums;
- line-height: 1.5715;
- list-style: none;
- font-feature-settings: 'tnum';
- position: relative;
- padding-left: 2px;
- }
- .ant-anchor-wrapper {
- margin-left: -4px;
- padding-left: 4px;
- overflow: auto;
- background-color: transparent;
- }
- .ant-anchor-ink {
- position: absolute;
- top: 0;
- left: 0;
- height: 100%;
- }
- .ant-anchor-ink::before {
- position: relative;
- display: block;
- width: 2px;
- height: 100%;
- margin: 0 auto;
- background-color: #f0f0f0;
- content: ' ';
- }
- .ant-anchor-ink-ball {
- position: absolute;
- left: 50%;
- display: none;
- width: 8px;
- height: 8px;
- background-color: #fff;
- border: 2px solid #1890ff;
- border-radius: 8px;
- transform: translateX(-50%);
- transition: top 0.3s ease-in-out;
- }
- .ant-anchor-ink-ball.ant-anchor-ink-ball-visible {
- display: inline-block;
- }
- .ant-anchor-fixed .ant-anchor-ink .ant-anchor-ink-ball {
- display: none;
- }
- .ant-anchor-link {
- padding: 4px 0 4px 16px;
- }
- .ant-anchor-link-title {
- position: relative;
- display: block;
- margin-bottom: 3px;
- overflow: hidden;
- color: rgba(0, 0, 0, 0.85);
- white-space: nowrap;
- text-overflow: ellipsis;
- transition: all 0.3s;
- }
- .ant-anchor-link-title:only-child {
- margin-bottom: 0;
- }
- .ant-anchor-link-active > .ant-anchor-link-title {
- color: #1890ff;
- }
- .ant-anchor-link .ant-anchor-link {
- padding-top: 2px;
- padding-bottom: 2px;
- }
- .ant-anchor-rtl {
- direction: rtl;
- }
- .ant-anchor-rtl.ant-anchor-wrapper {
- margin-right: -4px;
- margin-left: 0;
- padding-right: 4px;
- padding-left: 0;
- }
- .ant-anchor-rtl .ant-anchor-ink {
- right: 0;
- left: auto;
- }
- .ant-anchor-rtl .ant-anchor-ink-ball {
- right: 50%;
- left: 0;
- transform: translateX(50%);
- }
- .ant-anchor-rtl .ant-anchor-link {
- padding: 4px 16px 4px 0;
- }
- .ant-affix {
- position: fixed;
- z-index: 10;
- }
- nz-affix {
- display: block;
- }
- nz-link {
- display: block;
- }
- .ant-anchor-wrapper-horizontal {
- margin-left: unset;
- padding-left: unset;
- margin-bottom: -4px;
- padding-bottom: 4px;
- }
- .ant-anchor-wrapper-horizontal .ant-anchor {
- display: flex;
- }
- .ant-anchor-wrapper-horizontal .ant-anchor-ink {
- top: unset;
- bottom: 0;
- width: 100%;
- height: unset;
- }
- .ant-anchor-wrapper-horizontal .ant-anchor-ink:before {
- width: 100%;
- height: 2px;
- }
- .ant-anchor-wrapper-horizontal .ant-anchor-ink-ball {
- transform: translate(-50%, -50%);
- }
- .ant-anchor-wrapper-horizontal .ant-anchor-link:first-of-type {
- padding-inline: 0;
- }
|