@fjyueke/arco-mcp 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +113 -1
- package/metaData/components/action-sheet/style.md +57 -0
- package/metaData/components/avatar/style.md +147 -0
- package/metaData/components/badge/style.md +74 -0
- package/metaData/components/button/style.md +151 -0
- package/metaData/components/carousel/style.md +208 -0
- package/metaData/components/cell/style.md +123 -0
- package/metaData/components/checkbox/style.md +62 -0
- package/metaData/components/circle-progress/style.md +52 -0
- package/metaData/components/collapse/style.md +53 -0
- package/metaData/components/context-provider/style.md +1 -0
- package/metaData/components/count-down/style.md +7 -0
- package/metaData/components/date-picker/style.md +27 -0
- package/metaData/components/dialog/style.md +271 -0
- package/metaData/components/divider/style.md +68 -0
- package/metaData/components/dropdown/style.md +108 -0
- package/metaData/components/dropdown-menu/style.md +60 -0
- package/metaData/components/ellipsis/style.md +31 -0
- package/metaData/components/form/style.md +105 -0
- package/metaData/components/grid/style.md +109 -0
- package/metaData/components/image/style.md +144 -0
- package/metaData/components/image-picker/style.md +116 -0
- package/metaData/components/image-preview/style.md +103 -0
- package/metaData/components/index-bar/style.md +122 -0
- package/metaData/components/input/style.md +108 -0
- package/metaData/components/keyboard/style.md +80 -0
- package/metaData/components/load-more/style.md +7 -0
- package/metaData/components/loading/style.md +102 -0
- package/metaData/components/masking/style.md +30 -0
- package/metaData/components/nav-bar/style.md +112 -0
- package/metaData/components/notice-bar/style.md +124 -0
- package/metaData/components/notify/style.md +40 -0
- package/metaData/components/pagination/style.md +105 -0
- package/metaData/components/picker/style.md +46 -0
- package/metaData/components/picker-view/style.md +75 -0
- package/metaData/components/popover/style.md +226 -0
- package/metaData/components/popup/style.md +115 -0
- package/metaData/components/popup-swiper/style.md +10 -0
- package/metaData/components/portal/style.md +1 -0
- package/metaData/components/progress/style.md +114 -0
- package/metaData/components/pull-refresh/style.md +86 -0
- package/metaData/components/radio/style.md +57 -0
- package/metaData/components/rate/style.md +63 -0
- package/metaData/components/search-bar/style.md +115 -0
- package/metaData/components/show-monitor/style.md +1 -0
- package/metaData/components/skeleton/style.md +147 -0
- package/metaData/components/slider/style.md +292 -0
- package/metaData/components/stepper/style.md +85 -0
- package/metaData/components/steps/style.md +304 -0
- package/metaData/components/sticky/style.md +5 -0
- package/metaData/components/swipe-action/style.md +89 -0
- package/metaData/components/swipe-load/style.md +29 -0
- package/metaData/components/switch/style.md +158 -0
- package/metaData/components/tab-bar/style.md +57 -0
- package/metaData/components/tabs/style.md +436 -0
- package/metaData/components/tag/style.md +133 -0
- package/metaData/components/textarea/style.md +37 -0
- package/metaData/components/toast/style.md +93 -0
- package/metaData/components/transition/style.md +28 -0
- package/metaData/components/uploader/style.md +86 -0
- package/metaData/tokens.json +2358 -0
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-rate {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
|
|
6
|
+
&.disabled {
|
|
7
|
+
cursor: not-allowed;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&-icon-wrap {
|
|
11
|
+
.use-var(padding, rate-icon-offset);
|
|
12
|
+
.use-var(font-size, rate-icon-size);
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-icon-wrap,
|
|
20
|
+
&-icon {
|
|
21
|
+
|
|
22
|
+
&.active,
|
|
23
|
+
&.half-active {
|
|
24
|
+
.use-var(color, rate-icon-active-color);
|
|
25
|
+
|
|
26
|
+
&.disabled {
|
|
27
|
+
.use-var(color, rate-icon-disabled-active-color);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.normal {
|
|
32
|
+
.use-var(color, rate-icon-normal-color);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-icon {
|
|
37
|
+
|
|
38
|
+
&.half-active {
|
|
39
|
+
position: absolute;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
|
|
42
|
+
.style-with-rtl({
|
|
43
|
+
transform: scaleX(-1);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-icon-click-half {
|
|
49
|
+
width: 50%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
position: absolute;
|
|
53
|
+
z-index: 2;
|
|
54
|
+
|
|
55
|
+
&.left {
|
|
56
|
+
left: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.right {
|
|
60
|
+
right: 0;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-search-bar {
|
|
4
|
+
&-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
.use-var(padding, search-bar-padding);
|
|
9
|
+
.use-var(background-color, search-bar-background-color);
|
|
10
|
+
}
|
|
11
|
+
&-square {
|
|
12
|
+
.@{prefix}-search-bar-wrap {
|
|
13
|
+
.use-var(border-radius, search-bar-square-shape-border-radius);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
&-round {
|
|
17
|
+
.@{prefix}-search-bar-wrap {
|
|
18
|
+
.use-var(border-radius, search-bar-round-shape-border-radius);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
&-wrap {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
flex: 1;
|
|
25
|
+
.use-var(height, search-bar-input-wrapper-height);
|
|
26
|
+
.use-var(font-size, search-bar-input-wrapper-font-size);
|
|
27
|
+
.use-var(padding, search-bar-input-wrapper-padding);
|
|
28
|
+
.use-var(background-color, search-bar-input-wrapper-background-color);
|
|
29
|
+
}
|
|
30
|
+
&-input {
|
|
31
|
+
flex: 1;
|
|
32
|
+
background-color: transparent;
|
|
33
|
+
.use-var(color, font-color);
|
|
34
|
+
.use-var(height, search-bar-input-height);
|
|
35
|
+
.use-var(caret-color, search-bar-input-caret-color);
|
|
36
|
+
&-left {
|
|
37
|
+
.set-value-with-rtl(text-align, left);
|
|
38
|
+
}
|
|
39
|
+
&-right {
|
|
40
|
+
.set-value-with-rtl(text-align, right);
|
|
41
|
+
}
|
|
42
|
+
&-center {
|
|
43
|
+
text-align: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&::placeholder {
|
|
47
|
+
.use-var(color, search-bar-input-placeholder-color);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&::-webkit-search-decoration,
|
|
51
|
+
&::-webkit-search-cancel-button {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-prefix,
|
|
57
|
+
&-suffix,
|
|
58
|
+
&-clear {
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
display: flex;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-prefix {
|
|
65
|
+
.use-var-with-rtl(margin-right, search-bar-prefix-margin-right);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-clear {
|
|
69
|
+
.use-var(color, search-bar-clear-icon-color);
|
|
70
|
+
.use-var(font-size, search-bar-clear-icon-font-size);
|
|
71
|
+
.use-var-with-rtl(padding-left, search-bar-clear-icon-padding-left);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&-search-icon {
|
|
75
|
+
.use-var(color, search-bar-search-icon-color);
|
|
76
|
+
.use-var(font-size, search-bar-search-icon-font-size);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&-cancel-btn {
|
|
80
|
+
.use-var-with-rtl(margin-left, search-bar-cancel-btn-margin-left);
|
|
81
|
+
.use-var(color, search-bar-cancel-btn-color);
|
|
82
|
+
.use-var(font-size, search-bar-cancel-btn-font-size);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-association {
|
|
86
|
+
position: absolute;
|
|
87
|
+
left: 0;
|
|
88
|
+
right: 0;
|
|
89
|
+
.use-var(background-color, search-bar-association-background-color);
|
|
90
|
+
top: 100%;
|
|
91
|
+
display: none;
|
|
92
|
+
|
|
93
|
+
&-visible {
|
|
94
|
+
display: block;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-item {
|
|
98
|
+
.use-var(height, search-bar-association-item-height);
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
position: relative;
|
|
102
|
+
.use-var(color, search-bar-association-item-color);
|
|
103
|
+
.use-var(padding, search-bar-association-item-padding);
|
|
104
|
+
.use-var(font-size, search-bar-association-item-font-size);
|
|
105
|
+
|
|
106
|
+
&:not(:last-child) {
|
|
107
|
+
.onepx-border-var(bottom, line-color);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&-highlight {
|
|
111
|
+
.use-var(color, search-bar-association-item-highlight-color)
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// 这里啥也没有,但是为了兼容 babel-plugin-import的统一引用,还是需要创建下文件
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-skeleton {
|
|
4
|
+
position: relative;
|
|
5
|
+
.use-var(color, skeleton-gradient-animation-color);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.@{prefix}-skeleton-title {
|
|
9
|
+
.use-var(height, skeleton-title-height);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.@{prefix}-skeleton-paragraph {
|
|
13
|
+
&-line {
|
|
14
|
+
width: 100%;
|
|
15
|
+
.use-var(height, skeleton-paragraph-height);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-line + &-line {
|
|
19
|
+
.use-var(margin-top, skeleton-paragraph-margin-top);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.@{prefix}-skeleton-avatar.@{prefix}-skeleton-item {
|
|
24
|
+
.use-var(width, skeleton-avatar-size);
|
|
25
|
+
.use-var(height, skeleton-avatar-size);
|
|
26
|
+
border-radius: 100%;
|
|
27
|
+
transform: translateZ(0);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.@{prefix}-skeleton-content {
|
|
31
|
+
width: 100%;
|
|
32
|
+
|
|
33
|
+
.@{prefix}-skeleton-title + .@{prefix}-skeleton-paragraph {
|
|
34
|
+
.use-var(margin-top, skeleton-large-gutter);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.@{prefix}-skeleton-with-avatar {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
|
|
42
|
+
.@{prefix}-skeleton-avatar {
|
|
43
|
+
flex: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.@{prefix}-skeleton-content {
|
|
47
|
+
.@{prefix}-skeleton-title {
|
|
48
|
+
.use-var(margin-top, skeleton-medium-gutter);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.@{prefix}-skeleton-avatar + .@{prefix}-skeleton-content {
|
|
53
|
+
.use-var-with-rtl(margin-left, skeleton-medium-gutter);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.@{prefix}-skeleton-grid {
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
width: 100%;
|
|
61
|
+
|
|
62
|
+
&-item {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
align-items: center;
|
|
66
|
+
}
|
|
67
|
+
&-icon {
|
|
68
|
+
.use-var(width, skeleton-grid-icon-size);
|
|
69
|
+
.use-var(height, skeleton-grid-icon-size);
|
|
70
|
+
}
|
|
71
|
+
&-text {
|
|
72
|
+
.use-var(margin-top, skeleton-medium-gutter);
|
|
73
|
+
.use-var(width, skeleton-grid-text-width);
|
|
74
|
+
.use-var(height, skeleton-grid-text-height);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.@{prefix}-skeleton-node {
|
|
79
|
+
display: inline-block;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.@{prefix}-skeleton-item {
|
|
83
|
+
position: relative;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
.use-var(border-radius, skeleton-border-radius);
|
|
86
|
+
.use-var(background-color, skeleton-background-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.@{prefix}-skeleton-animation-item {
|
|
90
|
+
position: absolute;
|
|
91
|
+
width: 100vw;
|
|
92
|
+
height: 100%;
|
|
93
|
+
top: 0;
|
|
94
|
+
left: 0;
|
|
95
|
+
background-image: linear-gradient(
|
|
96
|
+
90deg,
|
|
97
|
+
rgba(255, 255, 255, 0) 35%,
|
|
98
|
+
currentColor 50%,
|
|
99
|
+
rgba(255, 255, 255, 0) 65%
|
|
100
|
+
);
|
|
101
|
+
transform-origin: top left;
|
|
102
|
+
animation-name: skeleton-gradient;
|
|
103
|
+
animation-iteration-count: infinite;
|
|
104
|
+
.use-var(animation-timing-function, skeleton-gradient-animation-timing-function);
|
|
105
|
+
.use-var(animation-duration, skeleton-gradient-animation-duration);
|
|
106
|
+
.style-with-rtl({
|
|
107
|
+
animation-name: skeleton-gradient-reverse;
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
.@{prefix}-skeleton-animation-breath {
|
|
111
|
+
animation: skeleton-breath linear infinite;
|
|
112
|
+
.use-var(animation-duration, skeleton-breath-animation-duration);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@keyframes skeleton-gradient {
|
|
116
|
+
0% {
|
|
117
|
+
transform: translateX(-65%) skewX(-45deg);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
100% {
|
|
121
|
+
transform: translateX(135%) skewX(-45deg);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@keyframes skeleton-gradient-reverse {
|
|
126
|
+
0% {
|
|
127
|
+
transform: translateX(65%) skewX(45deg);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
100% {
|
|
131
|
+
transform: translateX(-135%) skewX(45deg);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@keyframes skeleton-breath {
|
|
136
|
+
0% {
|
|
137
|
+
opacity: 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
50% {
|
|
141
|
+
.use-var(opacity, skeleton-breath-opacity);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
100% {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-slider {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
.use-var(padding, slider-padding);
|
|
7
|
+
|
|
8
|
+
&.is-vertical {
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.is-horizontal.show-marks {
|
|
13
|
+
.use-var(padding-bottom, slider-has-mark-padding-bottom);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-wrapper {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
flex: 1;
|
|
21
|
+
|
|
22
|
+
.is-vertical & {
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-label {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
.use-var(font-size, slider-label-font-size);
|
|
31
|
+
.use-var(color, slider-text-color);
|
|
32
|
+
|
|
33
|
+
.is-horizontal & {
|
|
34
|
+
.use-var-with-rtl(margin-right, slider-label-gutter);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.is-vertical & {
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
.use-var(margin-bottom, slider-label-gutter);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-wrapper + &-label {
|
|
44
|
+
|
|
45
|
+
.is-horizontal & {
|
|
46
|
+
margin-right: 0;
|
|
47
|
+
.use-var-with-rtl(margin-left, slider-label-gutter);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.is-vertical & {
|
|
51
|
+
margin-bottom: 0;
|
|
52
|
+
.use-var(margin-top, slider-label-gutter);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-line {
|
|
57
|
+
position: relative;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex: 1;
|
|
60
|
+
.use-var(border-radius, slider-line-border-radius);
|
|
61
|
+
.use-var(background, slider-line-color);
|
|
62
|
+
|
|
63
|
+
&:not(.is-activated)::before {
|
|
64
|
+
position: absolute;
|
|
65
|
+
content: "";
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
|
|
69
|
+
.is-horizontal & {
|
|
70
|
+
top: -50%;
|
|
71
|
+
transform: translateY(-50%);
|
|
72
|
+
.use-var(padding, slider-mask-padding, "", 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.is-vertical & {
|
|
76
|
+
left: -50%;
|
|
77
|
+
transform: translateX(-50%);
|
|
78
|
+
.use-var(padding, slider-mask-padding, 0);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.is-activated {
|
|
83
|
+
position: absolute;
|
|
84
|
+
.use-var(background, slider-line-activated-color);
|
|
85
|
+
|
|
86
|
+
.is-disabled & {
|
|
87
|
+
.use-var(background, slider-line-disabled-color);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-thumb {
|
|
93
|
+
.use-var(width, slider-thumb-width);
|
|
94
|
+
.use-var(height, slider-thumb-height);
|
|
95
|
+
.use-var(background, slider-thumb-background);
|
|
96
|
+
.use-var(box-shadow, slider-thumb-box-shadow);
|
|
97
|
+
.use-var(border-radius, slider-thumb-border-radius);
|
|
98
|
+
|
|
99
|
+
&-wrapper {
|
|
100
|
+
position: absolute;
|
|
101
|
+
display: flex;
|
|
102
|
+
width: fit-content;
|
|
103
|
+
height: fit-content;
|
|
104
|
+
margin: auto;
|
|
105
|
+
align-items: center;
|
|
106
|
+
|
|
107
|
+
.is-vertical & {
|
|
108
|
+
left: 1PX;
|
|
109
|
+
right: 0;
|
|
110
|
+
|
|
111
|
+
&.is-end {
|
|
112
|
+
top: 0;
|
|
113
|
+
transform: translate(-50%, -50%);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.is-start {
|
|
117
|
+
bottom: 0;
|
|
118
|
+
transform: translate(-50%, 50%);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.is-horizontal & {
|
|
123
|
+
top: 0;
|
|
124
|
+
bottom: 0;
|
|
125
|
+
|
|
126
|
+
&.is-end {
|
|
127
|
+
.set-prop-with-rtl(right, 0);
|
|
128
|
+
transform: translateX(50%);
|
|
129
|
+
.style-with-rtl({
|
|
130
|
+
transform: translateX(-50%);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.is-start {
|
|
135
|
+
.set-prop-with-rtl(left, 0);
|
|
136
|
+
transform: translateX(-50%);
|
|
137
|
+
.style-with-rtl({
|
|
138
|
+
transform: translateX(50%);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&-popover-wrapper &-thumb {
|
|
146
|
+
position: relative;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&-popover {
|
|
150
|
+
position: absolute;
|
|
151
|
+
width: max-content;
|
|
152
|
+
.use-var(color, popover-content-color);
|
|
153
|
+
.use-var(font-size, slider-popover-font-size);
|
|
154
|
+
.use-var(line-height, slider-popover-line-height);
|
|
155
|
+
|
|
156
|
+
.is-horizontal & {
|
|
157
|
+
bottom: 100%;
|
|
158
|
+
.use-var(margin-bottom, slider-popover-gutter);
|
|
159
|
+
left: 50%;
|
|
160
|
+
transform: translateX(-50%);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.is-vertical & {
|
|
164
|
+
left: 100%;
|
|
165
|
+
.use-var(margin-left, slider-popover-gutter);
|
|
166
|
+
top: 50%;
|
|
167
|
+
transform: translateY(-50%);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&.no-content {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&-wrapper {
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: 50%;
|
|
177
|
+
transform: translateX(-50%);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&-content {
|
|
181
|
+
position: relative;
|
|
182
|
+
left: 0;
|
|
183
|
+
top: 0;
|
|
184
|
+
width: 100%;
|
|
185
|
+
height: 100%;
|
|
186
|
+
.use-var(border-radius, popover-inner-border-radius);
|
|
187
|
+
.use-var(padding, popover-content-padding);
|
|
188
|
+
z-index: 2;
|
|
189
|
+
.use-var(background-color, popover-background-color);
|
|
190
|
+
|
|
191
|
+
.android & {
|
|
192
|
+
.use-var(padding, popover-content-android-padding);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
p {
|
|
196
|
+
white-space: normal;
|
|
197
|
+
word-break: break-all;
|
|
198
|
+
text-align: left;
|
|
199
|
+
.use-var(font-size, popover-content-font-size);
|
|
200
|
+
.use-var(line-height, popover-content-line-height);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&-arrow {
|
|
205
|
+
position: absolute;
|
|
206
|
+
margin: auto;
|
|
207
|
+
width: 0;
|
|
208
|
+
height: 0;
|
|
209
|
+
.use-var(border-width, slider-popover-arrow-size);
|
|
210
|
+
border-style: solid;
|
|
211
|
+
border-color: transparent;
|
|
212
|
+
|
|
213
|
+
.is-horizontal & {
|
|
214
|
+
transform: translateY(100%);
|
|
215
|
+
bottom: 0;
|
|
216
|
+
left: 0;
|
|
217
|
+
right: 0;
|
|
218
|
+
.use-var(border-top-color, popover-background-color);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.is-vertical & {
|
|
222
|
+
.use-var(border-right-color, popover-background-color);
|
|
223
|
+
transform: translateX(-100%);
|
|
224
|
+
left: 0;
|
|
225
|
+
top: 0;
|
|
226
|
+
bottom: 0;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&-marks {
|
|
232
|
+
position: absolute;
|
|
233
|
+
width: 100%;
|
|
234
|
+
height: 100%;
|
|
235
|
+
flex: 1;
|
|
236
|
+
|
|
237
|
+
&-item {
|
|
238
|
+
position: absolute;
|
|
239
|
+
margin: auto;
|
|
240
|
+
.use-var(width, slider-mark-width);
|
|
241
|
+
.use-var(height, slider-mark-height);
|
|
242
|
+
.use-var(border-radius, slider-mark-border-radius);
|
|
243
|
+
.use-var(background, slider-line-color);
|
|
244
|
+
transform: translateX(-50%);
|
|
245
|
+
.style-with-rtl({
|
|
246
|
+
transform: translateX(50%);
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
&.is-activated {
|
|
250
|
+
.use-var(background, slider-line-activated-color);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.is-vertical & {
|
|
254
|
+
left: 0;
|
|
255
|
+
right: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.is-horizontal & {
|
|
259
|
+
top: 0;
|
|
260
|
+
bottom: 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&-label {
|
|
264
|
+
position: absolute;
|
|
265
|
+
.use-var(font-size, slider-mark-label-font-size);
|
|
266
|
+
.use-var(line-height, slider-mark-label-line-height);
|
|
267
|
+
.use-var(color, slider-text-color);
|
|
268
|
+
|
|
269
|
+
.is-horizontal & {
|
|
270
|
+
left: 50%;
|
|
271
|
+
.use-var(top, slider-horizontal-mark-label-top);
|
|
272
|
+
transform: translateX(-50%);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.is-vertical & {
|
|
276
|
+
top: 50%;
|
|
277
|
+
.use-var(right, slider-vertical-mark-label-right);
|
|
278
|
+
transform: translateY(-50%);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.is-transferable {
|
|
285
|
+
transition: all .3s;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.@{prefix}-fade-enter-active,
|
|
289
|
+
.@{prefix}-fade-enter-done {
|
|
290
|
+
.use-var(opacity, popover-inner-opacity);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-stepper {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
.use-var(font-size, stepper-font-size);
|
|
6
|
+
|
|
7
|
+
&.@{prefix}-square {
|
|
8
|
+
border-width: 1PX;
|
|
9
|
+
border-style: solid;
|
|
10
|
+
.use-var(border-color, stepper-square-border-color);
|
|
11
|
+
.use-var(border-radius, stepper-square-border-radius);
|
|
12
|
+
|
|
13
|
+
.@{prefix}-stepper {
|
|
14
|
+
&-add-button,
|
|
15
|
+
&-minus-button,
|
|
16
|
+
&-input {
|
|
17
|
+
.use-var(background, stepper-square-background-color);
|
|
18
|
+
}
|
|
19
|
+
&-input {
|
|
20
|
+
border-left-width: 1PX;
|
|
21
|
+
border-right-width: 1PX;
|
|
22
|
+
border-style: solid;
|
|
23
|
+
.use-var(border-left-color, stepper-square-border-color);
|
|
24
|
+
.use-var(border-right-color, stepper-square-border-color);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.@{prefix}-round {
|
|
30
|
+
.@{prefix}-stepper {
|
|
31
|
+
&-minus-button,
|
|
32
|
+
&-add-button {
|
|
33
|
+
.use-var(border-radius, stepper-round-button-border-radius);
|
|
34
|
+
}
|
|
35
|
+
&-input {
|
|
36
|
+
.use-var(background, stepper-round-input-background-color);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-minus-button {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
.use-var(font-size, stepper-button-icon-size);
|
|
46
|
+
.use-var(width, stepper-button-size);
|
|
47
|
+
.use-var(height, stepper-button-size);
|
|
48
|
+
.use-var(background, stepper-default-background-color);
|
|
49
|
+
|
|
50
|
+
&-icon {
|
|
51
|
+
.use-var(color, stepper-content-color);
|
|
52
|
+
|
|
53
|
+
&.disabled {
|
|
54
|
+
.use-var(color, stepper-disable-color);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-input {
|
|
60
|
+
text-align: center;
|
|
61
|
+
.use-var(width, stepper-input-width);
|
|
62
|
+
.use-var(height, stepper-input-height);
|
|
63
|
+
.use-var(background, stepper-default-background-color);
|
|
64
|
+
.use-var(color, stepper-content-color);
|
|
65
|
+
.use-var(margin, stepper-input-margin);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-add-button {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
.use-var(font-size, stepper-button-icon-size);
|
|
73
|
+
.use-var(width, stepper-button-size);
|
|
74
|
+
.use-var(height, stepper-button-size);
|
|
75
|
+
.use-var(background, stepper-default-background-color);
|
|
76
|
+
|
|
77
|
+
&-icon {
|
|
78
|
+
.use-var(color, stepper-content-color);
|
|
79
|
+
|
|
80
|
+
&.disabled {
|
|
81
|
+
.use-var(color, stepper-disable-color);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|