UNPKG

3.54 kBCSSView Raw
1.adm-step {
2 --line-to-next-color: var(--adm-color-border);
3 --icon-color: var(--adm-color-border);
4 position: relative;
5 z-index: 0;
6}
7.adm-step .adm-step-indicator {
8 position: relative;
9}
10.adm-step .adm-step-indicator::after {
11 content: '';
12 position: absolute;
13 z-index: 0;
14 background-color: var(--line-to-next-color);
15}
16.adm-step .adm-step-indicator .adm-step-icon-container {
17 position: absolute;
18 z-index: 1;
19 color: var(--icon-color);
20}
21.adm-step .adm-step-indicator .adm-step-icon-container > .antd-mobile-icon {
22 display: block;
23}
24.adm-step:last-child .adm-step-indicator::after {
25 display: none;
26}
27.adm-step-status-finish {
28 --line-to-next-color: var(--adm-color-primary);
29}
30.adm-step-status-wait {
31 --icon-color: var(--adm-color-border);
32}
33.adm-step-status-wait .adm-step-title {
34 color: var(--adm-color-weak);
35}
36.adm-step-status-process {
37 --icon-color: var(--adm-color-primary);
38}
39.adm-step-status-process .adm-step-title {
40 color: var(--adm-color-primary);
41}
42.adm-step-status-finish {
43 --icon-color: var(--adm-color-primary);
44}
45.adm-step-status-error {
46 --icon-color: var(--adm-color-danger);
47}
48.adm-step-status-error .adm-step-title {
49 color: var(--adm-color-danger);
50}
51.adm-steps {
52 --title-font-size: var(--adm-font-size-main);
53 --description-font-size: var(--adm-font-size-4);
54 --indicator-margin-right: 0;
55 --icon-size: 18px;
56 width: 100%;
57 box-sizing: border-box;
58}
59.adm-steps-horizontal {
60 display: flex;
61 justify-content: space-around;
62 padding: 8px 0;
63}
64.adm-steps-horizontal .adm-step {
65 flex: 1;
66}
67.adm-steps-horizontal .adm-step .adm-step-indicator {
68 width: 100%;
69 height: 24px;
70}
71.adm-steps-horizontal .adm-step .adm-step-indicator::after {
72 left: 50%;
73 top: 50%;
74 height: 1px;
75 transform: translateY(-50%);
76 width: 100%;
77}
78.adm-steps-horizontal .adm-step .adm-step-indicator .adm-step-icon-container {
79 left: 50%;
80 top: 50%;
81 transform: translate(-50%, -50%);
82}
83.adm-steps-horizontal .adm-step-content {
84 text-align: center;
85 font-size: var(--description-font-size);
86 padding: 2px 8px 0;
87}
88.adm-steps-horizontal .adm-step-content .adm-step-title {
89 font-size: var(--title-font-size);
90}
91.adm-steps-horizontal .adm-step-content .adm-step-description {
92 margin-top: 4px;
93 color: var(--adm-color-weak);
94}
95.adm-steps-vertical {
96 padding: 8px 16px;
97}
98.adm-steps-vertical .adm-step {
99 display: flex;
100 align-items: stretch;
101}
102.adm-steps-vertical .adm-step .adm-step-indicator {
103 flex: none;
104 width: 24px;
105 margin-right: var(--indicator-margin-right);
106}
107.adm-steps-vertical .adm-step .adm-step-indicator::after {
108 left: 50%;
109 top: calc(var(--title-font-size) * 1.5 / 2);
110 width: 1px;
111 transform: translateX(-50%);
112 height: 100%;
113}
114.adm-steps-vertical .adm-step .adm-step-indicator .adm-step-icon-container {
115 top: calc(var(--title-font-size) * 1.5 / 2);
116 left: 50%;
117 transform: translate(-50%, -50%);
118}
119.adm-steps-vertical .adm-step:last-child .adm-step-content {
120 padding-bottom: 0;
121}
122.adm-steps-vertical .adm-step .adm-step-content {
123 flex: auto;
124 padding-bottom: 24px;
125}
126.adm-steps-vertical .adm-step .adm-step-content .adm-step-title {
127 font-size: var(--title-font-size);
128 line-height: 1.5;
129}
130.adm-steps-vertical .adm-step .adm-step-content .adm-step-description {
131 padding-top: 4px;
132 font-size: var(--description-font-size);
133 color: var(--adm-color-weak);
134}
135.adm-step-icon-container {
136 font-size: var(--icon-size);
137}
138.adm-step-icon-dot {
139 display: block;
140 width: 8px;
141 height: 8px;
142 background: currentColor;
143 border-radius: 4px;
144}