@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,109 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-grid {
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
|
|
8
|
+
&-rows {
|
|
9
|
+
display: flex;
|
|
10
|
+
|
|
11
|
+
&-item {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
width: 100%;
|
|
17
|
+
|
|
18
|
+
&-icon {
|
|
19
|
+
.use-var(width, grid-icon-width);
|
|
20
|
+
.use-var(height, grid-icon-height);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-icon.circle {
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-text {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
.use-var(margin-top, grid-vertical-text-margin-top);
|
|
31
|
+
text-align: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-title {
|
|
35
|
+
.use-var(font-size, grid-vertical-title-font-size);
|
|
36
|
+
.use-var(line-height, grid-vertical-title-line-height);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-content {
|
|
40
|
+
.use-var(font-size, grid-vertical-content-font-size);
|
|
41
|
+
.use-var(line-height, grid-vertical-content-line-height);
|
|
42
|
+
.use-var(margin-top, grid-vertical-content-margin-top);
|
|
43
|
+
.use-var(color, sub-info-font-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-item.horizontal {
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
|
|
51
|
+
.@{prefix}-grid-rows-item {
|
|
52
|
+
|
|
53
|
+
&-text {
|
|
54
|
+
.use-var-with-rtl(margin-left, grid-horizontal-text-margin-left);
|
|
55
|
+
margin-top: 0;
|
|
56
|
+
.set-value-with-rtl(text-align, left);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-content {
|
|
60
|
+
.use-var(margin-top, grid-horizontal-content-margin-top);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&-item.border {
|
|
67
|
+
position: relative;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
|
|
72
|
+
.vertical-border:after {
|
|
73
|
+
content: "";
|
|
74
|
+
width: 1px;
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 50%;
|
|
77
|
+
right: 0;
|
|
78
|
+
transform: scaleX(.5) translateY(-50%);
|
|
79
|
+
.use-var(height, grid-border-size);
|
|
80
|
+
.use-var(background-color, grid-border-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.horizontal-border:after {
|
|
84
|
+
content: "";
|
|
85
|
+
height: 1px;
|
|
86
|
+
position: absolute;
|
|
87
|
+
bottom: 0;
|
|
88
|
+
left: 50%;
|
|
89
|
+
transform: scaleY(.5) translateX(-50%);
|
|
90
|
+
.use-var(width, grid-border-size);
|
|
91
|
+
.use-var(background-color, grid-border-color);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
.@{prefix}-grid.sliding {
|
|
97
|
+
display: inline-block;
|
|
98
|
+
overflow-x: auto;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.@{prefix}-grid.sliding::-webkit-scrollbar {
|
|
102
|
+
display: none; /* Chrome Safari */
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.@{prefix}-grid {
|
|
106
|
+
.@{prefix}-image-picker {
|
|
107
|
+
width: 100%; /* 兼容grid和image-picker组合使用 */
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-image {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
&.preview {
|
|
8
|
+
transition: all 0.3s ease-in-out;
|
|
9
|
+
|
|
10
|
+
.image-container,
|
|
11
|
+
.image-loading-container .image-loading,
|
|
12
|
+
.image-error-container .image-retry-load {
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.image-container::after {
|
|
17
|
+
border-color: transparent;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.image-bottom-overlap,
|
|
22
|
+
.image-top-overlap {
|
|
23
|
+
position: absolute;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.image-bottom-overlap {
|
|
31
|
+
z-index: 0;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.image-placeholder {
|
|
36
|
+
.use-var(background-color, image-placeholder-background);
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.image-top-overlap {
|
|
42
|
+
z-index: 10;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.image-loading-container,
|
|
46
|
+
.image-error-container {
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
z-index: 2;
|
|
58
|
+
.use-var(font-size, image-inner-font-size);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.image-container {
|
|
62
|
+
position: relative;
|
|
63
|
+
font-size: 0;
|
|
64
|
+
opacity: 0;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
|
|
68
|
+
&.static-label,
|
|
69
|
+
&.loaded,
|
|
70
|
+
&.error,
|
|
71
|
+
&.has-loaded {
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.animate {
|
|
76
|
+
transition-property: opacity;
|
|
77
|
+
.use-var(transition-timing-function, image-transition-function);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.bordered {
|
|
81
|
+
.hairline-var(line-color);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&,
|
|
85
|
+
& img {
|
|
86
|
+
width: inherit;
|
|
87
|
+
height: inherit;
|
|
88
|
+
min-width: inherit;
|
|
89
|
+
min-height: inherit;
|
|
90
|
+
max-width: inherit;
|
|
91
|
+
max-height: inherit;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.preview-fit-contain-y {
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: auto;
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 50%;
|
|
99
|
+
transform: translateY(-50%);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.preview-fit-contain-x {
|
|
103
|
+
height: 100%;
|
|
104
|
+
width: auto;
|
|
105
|
+
position: absolute;
|
|
106
|
+
left: 50%;
|
|
107
|
+
transform: translateX(-50%);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.image-error-container {
|
|
112
|
+
.image-retry-load {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 0;
|
|
115
|
+
left: 0;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
.use-var(background-color, image-mask-background);
|
|
123
|
+
.use-var(font-size, image-retry-font-size);
|
|
124
|
+
.use-var(color, image-retry-icon-color);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.image-loading-container {
|
|
129
|
+
.image-loading {
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: 0;
|
|
132
|
+
left: 0;
|
|
133
|
+
width: 100%;
|
|
134
|
+
height: 100%;
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
align-items: center;
|
|
139
|
+
.use-var(color, image-loading-icon-color);
|
|
140
|
+
.use-var(background-color, image-mask-background);
|
|
141
|
+
.set-loading-color-var(image-loading-icon-color);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-image-picker {
|
|
4
|
+
.use-var(font-size, image-picker-font-size);
|
|
5
|
+
&-container {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
}
|
|
9
|
+
.container() {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
left: 0;
|
|
15
|
+
}
|
|
16
|
+
&-image {
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
padding-top: 100%;
|
|
23
|
+
.use-var(border-radius, image-picker-border-radius);
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
&-container {
|
|
26
|
+
.container()
|
|
27
|
+
}
|
|
28
|
+
.@{prefix}-image {
|
|
29
|
+
height: 100%;
|
|
30
|
+
width: 100%;
|
|
31
|
+
}
|
|
32
|
+
&-mask {
|
|
33
|
+
position: absolute;
|
|
34
|
+
left: 0;
|
|
35
|
+
top: 0;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
z-index: 2;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&-add {
|
|
42
|
+
.use-var(background-color, image-picker-add-background);
|
|
43
|
+
.use-var(border-radius, image-picker-border-radius);
|
|
44
|
+
position: relative;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
padding-top: 100%;
|
|
48
|
+
&-container {
|
|
49
|
+
.container();
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
text-align: center;
|
|
55
|
+
.use-var(font-size, image-picker-add-text-font-size);
|
|
56
|
+
.use-var(color, image-picker-add-text-color);
|
|
57
|
+
}
|
|
58
|
+
&-icon {
|
|
59
|
+
.use-var(font-size, image-picker-add-icon-font-size);
|
|
60
|
+
.use-var(color, image-picker-add-icon-color);
|
|
61
|
+
svg {
|
|
62
|
+
display: block;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&-disabled {
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
}
|
|
68
|
+
&-disabled &-icon {
|
|
69
|
+
.use-var(opacity, image-picker-disabled-opacity);
|
|
70
|
+
}
|
|
71
|
+
input {
|
|
72
|
+
position: absolute;
|
|
73
|
+
opacity: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
top: 0;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&-close {
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: 0;
|
|
84
|
+
right: 0;
|
|
85
|
+
z-index: 2;
|
|
86
|
+
&-icon {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
.use-var(font-size, image-picker-close-font-size);
|
|
91
|
+
.use-var(width, image-picker-close-width);
|
|
92
|
+
.use-var(height, image-picker-close-height);
|
|
93
|
+
.use-var(color, image-picker-close-color);
|
|
94
|
+
.use-var(background, image-picker-close-background);
|
|
95
|
+
.use-var(border-radius, image-picker-close-border-radius);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
&-error {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 0;
|
|
101
|
+
left: 0;
|
|
102
|
+
width: 100%;
|
|
103
|
+
height: 100%;
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
align-items: center;
|
|
108
|
+
.use-var(background, image-picker-error-background);
|
|
109
|
+
.use-var(color, image-picker-error-color);
|
|
110
|
+
.use-var(font-size, image-picker-font-size);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.@{prefix}-image-picker-disabled {
|
|
115
|
+
pointer-events: none;
|
|
116
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-image-preview,
|
|
4
|
+
.image-preview-lock-modal {
|
|
5
|
+
.full-screen();
|
|
6
|
+
z-index: @full-screen-z-index;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.image-preview-lock-modal {
|
|
10
|
+
transform: translateZ(2PX);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.@{prefix}-image-preview {
|
|
14
|
+
.use-var(background, image-preview-mask-background);
|
|
15
|
+
|
|
16
|
+
&.noselect {
|
|
17
|
+
-webkit-touch-callout: none;
|
|
18
|
+
.noselect();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.preview-image-wrap-container, .preview-image-wrap {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
.@{prefix}-carousel-wrap,
|
|
26
|
+
.@{prefix}-carousel,
|
|
27
|
+
.@{prefix}-carousel-inner {
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.carousel-item {
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
|
|
34
|
+
&::-webkit-scrollbar {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.preview-image {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
will-change: transform;
|
|
43
|
+
|
|
44
|
+
.image-container {
|
|
45
|
+
overflow: visible;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.preview-hidden {
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
|
|
51
|
+
.image-container {
|
|
52
|
+
visibility: hidden;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.image-bottom-overlap {
|
|
57
|
+
overflow: visible;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.image-preview-indicator {
|
|
63
|
+
width: 100%;
|
|
64
|
+
left: 0;
|
|
65
|
+
bottom: 0;
|
|
66
|
+
z-index: @full-screen-z-index + 3;
|
|
67
|
+
position: fixed;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
.use-var(font-size, image-preview-indicator-font-size);
|
|
70
|
+
.use-var(color, mask-content-color);
|
|
71
|
+
.use-var(padding, image-preview-indicator-padding);
|
|
72
|
+
.use-var(background, image-preview-indicator-background);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.image-preview-fake-rect {
|
|
76
|
+
.full-screen();
|
|
77
|
+
opacity: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.@{prefix}-image-preview .image-container img.closing-animation,
|
|
81
|
+
.image-preview-fake-trans-image {
|
|
82
|
+
position: fixed;
|
|
83
|
+
left: 0;
|
|
84
|
+
top: 0;
|
|
85
|
+
object-fit: cover;
|
|
86
|
+
.use-var(transition, image-preview-thumb-transition);
|
|
87
|
+
will-change: transform;
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
height: auto !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.image-preview-loading-area {
|
|
93
|
+
.full-screen();
|
|
94
|
+
z-index: @full-screen-z-index + 10;
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
|
|
100
|
+
.loading-icon {
|
|
101
|
+
.set-loading-color-var(mask-content-color);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-index-bar {
|
|
4
|
+
position: relative;
|
|
5
|
+
.use-var(background, index-bar-background);
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
&-container {
|
|
8
|
+
height: 100%;
|
|
9
|
+
overflow-y: auto;
|
|
10
|
+
|
|
11
|
+
&::-webkit-scrollbar {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-group {
|
|
17
|
+
&-active {
|
|
18
|
+
.use-var(color, index-bar-group-active-color);
|
|
19
|
+
}
|
|
20
|
+
&-title {
|
|
21
|
+
.use-var-with-rtl(padding-left, index-bar-group-left-spacing);
|
|
22
|
+
.use-var(height, index-bar-group-title-height);
|
|
23
|
+
.use-var(background, index-bar-group-title-background);
|
|
24
|
+
.use-var(font-size, index-bar-group-title-font-size);
|
|
25
|
+
.use-var(color, index-bar-group-title-font-color);
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
&-item {
|
|
30
|
+
.use-var(height, index-bar-group-item-height);
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
.use-var-with-rtl(margin-left, index-bar-group-left-spacing);
|
|
34
|
+
.use-var(font-size, index-bar-group-item-font-size);
|
|
35
|
+
|
|
36
|
+
&:not(:last-child) {
|
|
37
|
+
.onepx-border-var(bottom, line-color);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-sidebar {
|
|
43
|
+
position: absolute;
|
|
44
|
+
z-index: 2;
|
|
45
|
+
.set-prop-with-rtl(right, 0);
|
|
46
|
+
top: 50%;
|
|
47
|
+
transform: translateY(-50%) translateZ(0);
|
|
48
|
+
user-select: none;
|
|
49
|
+
|
|
50
|
+
&-touching {
|
|
51
|
+
width: 100%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-item {
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: flex-end;
|
|
57
|
+
align-items: center;
|
|
58
|
+
position: relative;
|
|
59
|
+
.use-var(padding, index-bar-sidebar-item-padding);
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
|
|
62
|
+
&-wrapper {
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
.use-var(width, index-bar-sidebar-item-width);
|
|
67
|
+
.use-var(font-size, index-bar-sidebar-item-font-size);
|
|
68
|
+
.use-var(line-height, index-bar-sidebar-item-line-height);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:last-child {
|
|
72
|
+
padding-bottom: 0px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
&-active {
|
|
76
|
+
.use-var(color, index-bar-sidebar-active-color);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&-sweat {
|
|
80
|
+
position: absolute;
|
|
81
|
+
.use-var(height, index-bar-sidebar-sweat-radius);
|
|
82
|
+
.use-var(min-width, index-bar-sidebar-sweat-radius);
|
|
83
|
+
.use-var(line-height, index-bar-sidebar-sweat-radius);
|
|
84
|
+
border-radius: 9999px;
|
|
85
|
+
text-align: center;
|
|
86
|
+
.use-var(padding, index-bar-sidebar-sweat-padding);
|
|
87
|
+
.use-var(background, index-bar-sidebar-sweat-background);
|
|
88
|
+
.use-var-with-rtl(right, index-bar-sidebar-sweat-right);
|
|
89
|
+
.use-var(font-size, index-bar-sidebar-sweat-font-size);
|
|
90
|
+
.use-var(color, index-bar-sidebar-sweat-color);
|
|
91
|
+
&::before {
|
|
92
|
+
content: '';
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 0;
|
|
95
|
+
bottom: 0;
|
|
96
|
+
margin: auto;
|
|
97
|
+
.use-var-with-rtl(right, index-bar-sidebar-sweat-triangle-position);
|
|
98
|
+
width: 0;
|
|
99
|
+
height: 0;
|
|
100
|
+
.use-var(border, index-bar-sidebar-sweat-triangle-border);
|
|
101
|
+
.use-var-with-rtl(border-left-color, index-bar-sidebar-sweat-background);
|
|
102
|
+
border-radius: 4px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&-toast {
|
|
107
|
+
position: absolute;
|
|
108
|
+
.use-var(background, index-bar-sidebar-toast-background);
|
|
109
|
+
.use-var(color, index-bar-sidebar-toast-color);
|
|
110
|
+
left: 50%;
|
|
111
|
+
top: 50%;
|
|
112
|
+
.use-var(min-width, index-bar-sidebar-toast-height);
|
|
113
|
+
.use-var(height, index-bar-sidebar-toast-height);
|
|
114
|
+
.use-var(line-height, index-bar-sidebar-toast-height);
|
|
115
|
+
transform: translate(-50%, -50%);
|
|
116
|
+
text-align: center;
|
|
117
|
+
.use-var(padding, index-bar-sidebar-toast-padding);
|
|
118
|
+
.use-var(font-size, index-bar-sidebar-toast-font-size);
|
|
119
|
+
.use-var(border-radius, index-bar-sidebar-toast-radius);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-input-container {
|
|
4
|
+
width: 100%;
|
|
5
|
+
.use-var(color, font-color);
|
|
6
|
+
position: relative;
|
|
7
|
+
.@{prefix}-input-label {
|
|
8
|
+
.use-var(min-width, input-label-min-width);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.@{prefix}-input-label {
|
|
13
|
+
|
|
14
|
+
&.required::before {
|
|
15
|
+
content: "* ";
|
|
16
|
+
.use-var(color, danger-color);
|
|
17
|
+
}
|
|
18
|
+
padding-top: 1PX;
|
|
19
|
+
|
|
20
|
+
.disabled & {
|
|
21
|
+
.use-var(color, input-disabled-color);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.@{prefix}-input-wrap {
|
|
26
|
+
position: relative;
|
|
27
|
+
.use-var(height, input-height);
|
|
28
|
+
.use-var(padding, input-horizontal-padding, 0);
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
|
|
32
|
+
textarea,
|
|
33
|
+
input {
|
|
34
|
+
flex: 1;
|
|
35
|
+
background: transparent;
|
|
36
|
+
|
|
37
|
+
&:disabled {
|
|
38
|
+
.use-var(color, input-disabled-color);
|
|
39
|
+
// reset for ios
|
|
40
|
+
.use-var(-webkit-text-fill-color, input-disabled-color);
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.textarea {
|
|
46
|
+
height: auto;
|
|
47
|
+
align-items: flex-start;
|
|
48
|
+
.use-var(padding, textarea-padding);
|
|
49
|
+
|
|
50
|
+
&.has-stat {
|
|
51
|
+
.use-var(padding, textarea-has-stat-padding);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.border {
|
|
56
|
+
|
|
57
|
+
&-all {
|
|
58
|
+
.hairline-var(line-color);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-half {
|
|
62
|
+
.hairline-var(line-color, top);
|
|
63
|
+
.hairline-var(line-color, bottom);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&-bottom {
|
|
67
|
+
.hairline-var(line-color, bottom);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.@{prefix}-input-prefix, .@{prefix}-input-suffix, .@{prefix}-input-clear {
|
|
73
|
+
.use-var(font-size, input-text-font-size);
|
|
74
|
+
.use-var(line-height, input-text-line-height);
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
display: flex;
|
|
78
|
+
}
|
|
79
|
+
.@{prefix}-input-prefix {
|
|
80
|
+
.use-var-with-rtl(padding-right, input-label-gutter);
|
|
81
|
+
}
|
|
82
|
+
.@{prefix}-input-clear,
|
|
83
|
+
.@{prefix}-input-suffix {
|
|
84
|
+
.use-var-with-rtl(padding-left, input-horizontal-padding);
|
|
85
|
+
}
|
|
86
|
+
.@{prefix}-input-clear {
|
|
87
|
+
.use-var(color, input-clear-icon-color);
|
|
88
|
+
.use-var(font-size, input-clear-icon-font-size);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.@{prefix}-input {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: 100%;
|
|
95
|
+
.use-var(font-size, input-text-font-size);
|
|
96
|
+
.use-var(line-height, input-text-line-height);
|
|
97
|
+
.use-var(caret-color, input-caret-color);
|
|
98
|
+
.use-var(padding, input-vertical-padding, "", 0);
|
|
99
|
+
.use-var(color, font-color);
|
|
100
|
+
|
|
101
|
+
&::placeholder {
|
|
102
|
+
.use-var(color, input-placeholder-color);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&::-webkit-search-cancel-button {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
}
|