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