@maxax/ui 1.1.52 → 1.1.54

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.
Files changed (93) hide show
  1. package/dist/index.cjs +4 -4
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.mjs +4 -4
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/theme-chalk/base/col.scss +55 -0
  6. package/dist/theme-chalk/base/config.scss +5 -0
  7. package/dist/theme-chalk/base/function.scss +53 -0
  8. package/dist/theme-chalk/base/transition.scss +29 -0
  9. package/dist/theme-chalk/base/utils.scss +179 -0
  10. package/dist/theme-chalk/base/var-dark.scss +33 -0
  11. package/dist/theme-chalk/base/var-light.scss +33 -0
  12. package/dist/theme-chalk/base/var.scss +139 -0
  13. package/dist/theme-chalk/color/index.scss +16 -0
  14. package/dist/theme-chalk/components/appCommon.scss +52 -0
  15. package/dist/theme-chalk/components/basicActionFooter.scss +24 -0
  16. package/dist/theme-chalk/components/basicArrow.scss +11 -0
  17. package/dist/theme-chalk/components/basicButton.scss +8 -0
  18. package/dist/theme-chalk/components/basicButtonExportMax.scss +27 -0
  19. package/dist/theme-chalk/components/basicButtonGroup.scss +19 -0
  20. package/dist/theme-chalk/components/basicButtonImportMax.scss +118 -0
  21. package/dist/theme-chalk/components/basicCard.scss +8 -0
  22. package/dist/theme-chalk/components/basicCascader.scss +8 -0
  23. package/dist/theme-chalk/components/basicCheckbox.scss +197 -0
  24. package/dist/theme-chalk/components/basicCheckboxGroup.scss +22 -0
  25. package/dist/theme-chalk/components/basicCol.scss +18 -0
  26. package/dist/theme-chalk/components/basicCountTo.scss +8 -0
  27. package/dist/theme-chalk/components/basicDatePicker.scss +8 -0
  28. package/dist/theme-chalk/components/basicDragVerify.scss +75 -0
  29. package/dist/theme-chalk/components/basicDrawer.scss +12 -0
  30. package/dist/theme-chalk/components/basicDrawerFooter.scss +13 -0
  31. package/dist/theme-chalk/components/basicEditBatch.scss +62 -0
  32. package/dist/theme-chalk/components/basicFontIcon.scss +8 -0
  33. package/dist/theme-chalk/components/basicForm.scss +61 -0
  34. package/dist/theme-chalk/components/basicGradientTitle.scss +49 -0
  35. package/dist/theme-chalk/components/basicHelp.scss +16 -0
  36. package/dist/theme-chalk/components/basicHidden.scss +8 -0
  37. package/dist/theme-chalk/components/basicIconOnline.scss +8 -0
  38. package/dist/theme-chalk/components/basicIconPicker.scss +60 -0
  39. package/dist/theme-chalk/components/basicJsonViewer.scss +255 -0
  40. package/dist/theme-chalk/components/basicListPage.scss +42 -0
  41. package/dist/theme-chalk/components/basicLoading.scss +106 -0
  42. package/dist/theme-chalk/components/basicMasterTrigger.scss +13 -0
  43. package/dist/theme-chalk/components/basicMessage.scss +8 -0
  44. package/dist/theme-chalk/components/basicMessageBox.scss +183 -0
  45. package/dist/theme-chalk/components/basicModal.scss +16 -0
  46. package/dist/theme-chalk/components/basicMonaco.scss +8 -0
  47. package/dist/theme-chalk/components/basicNotification.scss +103 -0
  48. package/dist/theme-chalk/components/basicOverlay.scss +21 -0
  49. package/dist/theme-chalk/components/basicPage.scss +60 -0
  50. package/dist/theme-chalk/components/basicPanel.scss +36 -0
  51. package/dist/theme-chalk/components/basicPanelPage.scss +11 -0
  52. package/dist/theme-chalk/components/basicRadio.scss +66 -0
  53. package/dist/theme-chalk/components/basicRadioGroup.scss +14 -0
  54. package/dist/theme-chalk/components/basicRegion.scss +112 -0
  55. package/dist/theme-chalk/components/basicRegionSelect.scss +74 -0
  56. package/dist/theme-chalk/components/basicRow.scss +33 -0
  57. package/dist/theme-chalk/components/basicScrollText.scss +32 -0
  58. package/dist/theme-chalk/components/basicSelect.scss +8 -0
  59. package/dist/theme-chalk/components/basicSubPanel.scss +48 -0
  60. package/dist/theme-chalk/components/basicSvgIcon.scss +18 -0
  61. package/dist/theme-chalk/components/basicTable.scss +101 -0
  62. package/dist/theme-chalk/components/basicTag.scss +24 -0
  63. package/dist/theme-chalk/components/basicText.scss +45 -0
  64. package/dist/theme-chalk/components/basicTitle.scss +42 -0
  65. package/dist/theme-chalk/components/basicTree.scss +16 -0
  66. package/dist/theme-chalk/components/basicTriggerButton.scss +8 -0
  67. package/dist/theme-chalk/components/basicUpload.scss +65 -0
  68. package/dist/theme-chalk/components/basicUploadCore.scss +8 -0
  69. package/dist/theme-chalk/components/basicUploadDragger.scss +38 -0
  70. package/dist/theme-chalk/components/basicUploadList.scss +19 -0
  71. package/dist/theme-chalk/components/basicUploadListItem.scss +240 -0
  72. package/dist/theme-chalk/components/basicViewBar.scss +88 -0
  73. package/dist/theme-chalk/components/common.scss +63 -0
  74. package/dist/theme-chalk/components/components.scss +56 -0
  75. package/dist/theme-chalk/components/tree.scss +115 -0
  76. package/dist/theme-chalk/components/treeDrop.scss +138 -0
  77. package/dist/theme-chalk/components/treeNode.scss +209 -0
  78. package/dist/theme-chalk/components/treeSearch.scss +128 -0
  79. package/dist/theme-chalk/index.css +1 -1
  80. package/dist/theme-chalk/index.scss +2 -0
  81. package/dist/theme-chalk/light.css +1 -1
  82. package/dist/theme-chalk/theme/dark.scss +14 -0
  83. package/dist/theme-chalk/theme/light.scss +26 -0
  84. package/dist/theme-chalk/vxe-table/table/base.scss +87 -0
  85. package/dist/theme-chalk/vxe-table/table/dark.scss +48 -0
  86. package/dist/theme-chalk/vxe-table/table/index.scss +3 -0
  87. package/dist/theme-chalk/vxe-table/table/light.scss +42 -0
  88. package/dist/theme-chalk/vxe-table/ui/base.scss +200 -0
  89. package/dist/theme-chalk/vxe-table/ui/dark.scss +117 -0
  90. package/dist/theme-chalk/vxe-table/ui/index.scss +3 -0
  91. package/dist/theme-chalk/vxe-table/ui/light.scss +114 -0
  92. package/dist/theme-chalk/vxe-table/vxe-table.scss +7 -0
  93. package/package.json +3 -3
@@ -0,0 +1,101 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-table') {
7
+ &.is-card {
8
+ padding: 16px 16px 0 16px;
9
+ // margin-bottom: 12px;
10
+ background-color: getCssVar('fill-color', 'base');
11
+ }
12
+
13
+ @include e('wrapper-inner') {
14
+ height: 100%;
15
+ }
16
+ @include e('empty') {
17
+ display: flex;
18
+ flex-direction: column;
19
+ align-items: center;
20
+ justify-content: center;
21
+ }
22
+ @include e('empty-text') {
23
+ margin-top: 8px;
24
+ color: rgb(107 114 128 / var(--un-text-opacity)) /* #6b7280 */;
25
+ }
26
+ @include e('bottom') {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: space-between;
30
+ background-color: var(--vxe-ui-layout-background-color);
31
+ }
32
+
33
+ @include e('selection-wrapper') {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: space-between;
37
+ background-color: var(--vxe-ui-layout-background-color);
38
+ }
39
+
40
+ @include e('selection-wrapper-inner') {
41
+ display: flex;
42
+ align-items: center;
43
+ height: 40px;
44
+ }
45
+
46
+ @include e('selection-operation') {
47
+ display: flex;
48
+ align-items: center;
49
+ gap: 10px;
50
+ margin-right: 10px;
51
+ }
52
+
53
+ .vxe-table--body .vxe-cell {
54
+ padding: 0 8px;
55
+ }
56
+
57
+ .vxe-grid--table-container .n-input .n-input__border,
58
+ .vxe-grid--table-container .n-input .n-input__state-border {
59
+ border: none;
60
+ }
61
+
62
+ .vxe-grid--table-container .n-base-selection .n-base-selection__border,
63
+ .vxe-grid--table-container .n-base-selection .n-base-selection__state-border {
64
+ border: none;
65
+ }
66
+
67
+ .vxe-toolbar {
68
+ padding: 0;
69
+ padding-bottom: 12px;
70
+ background-color: transparent;
71
+
72
+ // .vxe-tools--operate {
73
+ // position: absolute;
74
+ // right: 0;
75
+ // bottom: -48px;
76
+ // z-index: 1;
77
+ // }
78
+
79
+ .vxe-button {
80
+ padding: 0;
81
+ border-radius: 2px;
82
+ height: 34px;
83
+ margin: 0;
84
+ background-color: transparent;
85
+ border: none;
86
+ min-width: 28px !important;
87
+ }
88
+ }
89
+ }
90
+
91
+ .vxe-table--render-default.border--inner .vxe-table--border-line {
92
+ border: none;
93
+ }
94
+
95
+ .vxe-table--render-default.size--small .vxe-body--column:not(.col--ellipsis) {
96
+ padding: 0;
97
+ }
98
+
99
+ .vxe-table--render-default.border--inner .vxe-table--border-line {
100
+ border: none;
101
+ }
@@ -0,0 +1,24 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-tag') {
7
+ --basic-tag-name: 'basic-tag';
8
+
9
+ display: inline-flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+
13
+ @each $size in $sizes {
14
+ @include m('#{$size}') {
15
+ font-size: getCssVar(font-size, $size);
16
+ }
17
+ }
18
+
19
+ @each $type in $types {
20
+ @include m('#{$type}') {
21
+ color: rgb(var(--#{$type}-color));
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,45 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-text') {
7
+ --basic-text-name: 'basic-text';
8
+
9
+ @each $size in $sizes {
10
+ @include m('#{$size}') {
11
+ font-size: getCssVar(font-size, $size);
12
+ }
13
+ }
14
+
15
+ @each $type in $types {
16
+ @include m('#{$type}') {
17
+ color: rgb(var(--#{$type}-color));
18
+ }
19
+ }
20
+
21
+ @include m('flex') {
22
+ display: flex;
23
+ }
24
+
25
+ @include m('items-center') {
26
+ align-items: center;
27
+ }
28
+
29
+ @include m('gap-2') {
30
+ gap: 2px;
31
+ }
32
+
33
+ @include m('cursor-pointer') {
34
+ cursor: pointer;
35
+ }
36
+
37
+ &.is-weight {
38
+ font-weight: bold;
39
+ }
40
+
41
+ &.is-tag {
42
+ padding: 2px 4px;
43
+ border-radius: 4px;
44
+ }
45
+ }
@@ -0,0 +1,42 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-title') {
7
+ --basic-title-name: 'basic-title';
8
+
9
+ @include inline-flex-center();
10
+
11
+ @each $level in (1, 2, 3, 4, 5, 6) {
12
+ @include m('level-#{$level}') {
13
+ font-size: 14px + $level;
14
+ font-weight: bold;
15
+ }
16
+ }
17
+
18
+ @each $size in $sizes {
19
+ @include m('#{$size}') {
20
+ font-size: getCssVar(font-size, $size);
21
+ }
22
+ }
23
+
24
+ @each $type in $types {
25
+ @include m('#{$type}') {
26
+ color: rgb(var(--#{$type}-color));
27
+ }
28
+ }
29
+
30
+ @include e('dot') {
31
+ display: inline-block;
32
+ width: 4px;
33
+ height: 4px;
34
+ border-radius: 50%;
35
+ background-color: currentColor;
36
+ margin-right: 4px;
37
+ }
38
+
39
+ @include b('basic-help-trigger') {
40
+ margin-left: 2px;
41
+ }
42
+ }
@@ -0,0 +1,16 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-tree') {
7
+ height: 100%;
8
+
9
+ @include e('wrapper') {
10
+ height: 100%;
11
+ display: flex;
12
+ flex-direction: column;
13
+ overflow-y: auto;
14
+ background-color: var(--background);
15
+ }
16
+ }
@@ -0,0 +1,8 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-trigger-button') {
7
+ --basic-trigger-button-name: 'basic-trigger-button';
8
+ }
@@ -0,0 +1,65 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-upload') {
7
+ box-sizing: border-box;
8
+ margin: 0;
9
+ padding: 0;
10
+ color: rgba(0, 0, 0, 0.88);
11
+ font-size: 14px;
12
+ line-height: 1.5714285714285714;
13
+ list-style: none;
14
+
15
+ input[type='file'] {
16
+ cursor: pointer;
17
+ }
18
+
19
+ &-select {
20
+ display: inline-block;
21
+ }
22
+
23
+ &-disabled {
24
+ cursor: not-allowed;
25
+ color: getVarCss('disabled-text');
26
+ }
27
+
28
+ &-picture-card-wrapper {
29
+ display: inline-block;
30
+ width: 100%;
31
+
32
+ &:before {
33
+ display: table;
34
+ content: '';
35
+ }
36
+
37
+ &:after {
38
+ display: table;
39
+ clear: both;
40
+ content: '';
41
+ }
42
+ }
43
+
44
+ &-picture-card-wrapper &-select {
45
+ width: 102px;
46
+ height: 102px;
47
+ margin-inline-end: 8px;
48
+ margin-bottom: 8px;
49
+ text-align: center;
50
+ vertical-align: top;
51
+ background-color: rgba(0, 0, 0, 0.02);
52
+ border: 1px dashed #d9d9d9;
53
+ border-radius: 8px;
54
+ cursor: pointer;
55
+ transition: border-color 0.3s;
56
+ }
57
+
58
+ &-picture-card-wrapper &-select & {
59
+ display: flex;
60
+ align-items: center;
61
+ justify-content: center;
62
+ height: 100%;
63
+ text-align: center;
64
+ }
65
+ }
@@ -0,0 +1,8 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-upload-core') {
7
+ --basic-upload-core-name: 'basic-upload-core';
8
+ }
@@ -0,0 +1,38 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-upload-dragger') {
7
+ position: relative;
8
+ width: 100%;
9
+ height: 100%;
10
+ text-align: center;
11
+ background: rgba(0, 0, 0, 0.02);
12
+ border: 1px dashed #d9d9d9;
13
+ border-radius: 8px;
14
+ cursor: pointer;
15
+ transition: border-color 0.3s;
16
+
17
+ &-btn {
18
+ display: table;
19
+ width: 100%;
20
+ height: 100%;
21
+ outline: none;
22
+ padding: 16px 0;
23
+ }
24
+
25
+ &-drag-container {
26
+ display: table-cell;
27
+ vertical-align: middle;
28
+ }
29
+
30
+ &:not(&-disabled):hover {
31
+ border-color: rgb(var(--primary-color, 100, 108, 255));
32
+ }
33
+
34
+ &-disabled {
35
+ cursor: not-allowed;
36
+ opacity: 0.6;
37
+ }
38
+ }
@@ -0,0 +1,19 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-upload-list') {
7
+ line-height: 1.5;
8
+
9
+ &:before {
10
+ display: table;
11
+ content: '';
12
+ }
13
+
14
+ &:after {
15
+ display: table;
16
+ clear: both;
17
+ content: '';
18
+ }
19
+ }
@@ -0,0 +1,240 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-upload-list-item') {
7
+ position: relative;
8
+ height: 22px;
9
+ font-size: 14px;
10
+ display: flex;
11
+ align-items: center;
12
+ transition: background-color 0.3s;
13
+ margin-top: 8px;
14
+
15
+ &-name {
16
+ overflow: hidden;
17
+ white-space: nowrap;
18
+ text-overflow: ellipsis;
19
+ padding: 0 8px;
20
+ line-height: 1.5;
21
+ flex: auto;
22
+ transition: all 0.3s;
23
+ color: rgb(var(--primary-color, 100, 108, 255));
24
+ text-decoration: none;
25
+ background-color: transparent;
26
+ outline: none;
27
+ cursor: pointer;
28
+ }
29
+
30
+ &-container {
31
+ transition:
32
+ opacity 0.3s,
33
+ height 0.3s;
34
+
35
+ &:before {
36
+ display: table;
37
+ width: 0;
38
+ height: 0;
39
+ content: '';
40
+ }
41
+
42
+ &:after {
43
+ display: table;
44
+ clear: both;
45
+ content: '';
46
+ }
47
+ }
48
+
49
+ &-thumbnail {
50
+ overflow: hidden;
51
+ white-space: nowrap;
52
+ text-overflow: ellipsis;
53
+ width: 48px;
54
+ height: 48px;
55
+ line-height: 60px;
56
+ text-align: center;
57
+ flex: none;
58
+ }
59
+
60
+ &-picture-card {
61
+ display: inline-block;
62
+ width: 102px;
63
+ height: 102px;
64
+ vertical-align: top;
65
+ margin-block: 0 8px;
66
+ margin-inline: 0 8px;
67
+ }
68
+
69
+ &-picture-card & {
70
+ position: relative;
71
+ height: 100%;
72
+ padding: 8px;
73
+ border: 1px solid #d9d9d9;
74
+ border-radius: 4px;
75
+ margin-top: 0;
76
+ }
77
+
78
+ &-picture-card &-done,
79
+ &-picture-card &-error,
80
+ &-picture-card &-undefined {
81
+ &::before {
82
+ position: absolute;
83
+ z-index: 1;
84
+ width: calc(100% - 16px);
85
+ height: calc(100% - 16px);
86
+ background-color: rgba(0, 0, 0, 0.45);
87
+ opacity: 0;
88
+ transition: all 0.3s;
89
+ content: ' ';
90
+ }
91
+ }
92
+
93
+ &-picture-card &:hover {
94
+ &::before {
95
+ opacity: 1;
96
+ }
97
+ }
98
+
99
+ &-picture-card &:hover &-actions {
100
+ opacity: 1;
101
+ }
102
+
103
+ &-picture-card &-thumbnail,
104
+ &-picture-card &-thumbnail img {
105
+ position: static;
106
+ display: block;
107
+ width: 100%;
108
+ height: 100%;
109
+ object-fit: contain;
110
+ }
111
+
112
+ .anticon {
113
+ font-size: 28px;
114
+ }
115
+
116
+ &-action {
117
+ height: 1em;
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+ opacity: 0;
122
+ cursor: pointer;
123
+ padding: 0 8px;
124
+
125
+ &:focus {
126
+ opacity: 1;
127
+ }
128
+
129
+ &.picture & {
130
+ opacity: 1;
131
+ }
132
+ }
133
+
134
+ &-text-icon {
135
+ width: 1em;
136
+ height: 1em;
137
+ display: flex;
138
+ align-items: center;
139
+ justify-content: center;
140
+ }
141
+
142
+ &-progress {
143
+ position: absolute;
144
+ bottom: -12px;
145
+ width: 100%;
146
+ padding-inline-start: 22px;
147
+ font-size: 14px;
148
+ line-height: 0;
149
+ pointer-events: none;
150
+ }
151
+
152
+ &:hover &-action {
153
+ opacity: 1;
154
+ }
155
+
156
+ &-error {
157
+ color: rgb(var(--error-color));
158
+ }
159
+
160
+ &-error &-name {
161
+ color: rgb(var(--error-color));
162
+ }
163
+
164
+ &-error:hover &-action {
165
+ color: rgb(var(--error-color));
166
+ }
167
+
168
+ &-picture-card &-actions {
169
+ position: absolute;
170
+ inset-inline-start: 0;
171
+ z-index: 10;
172
+ width: 100%;
173
+ white-space: nowrap;
174
+ text-align: center;
175
+ opacity: 0;
176
+ transition: all 0.3s;
177
+ font-size: 16px;
178
+ display: flex;
179
+ align-items: center;
180
+ justify-content: center;
181
+ }
182
+
183
+ &-picture-card &-action {
184
+ color: #fff;
185
+ &:hover {
186
+ color: #fff;
187
+ background-color: transparent;
188
+ }
189
+ }
190
+
191
+ &-error-tooltip {
192
+ height: 100%;
193
+ width: 100%;
194
+ }
195
+
196
+ &-picture-card &-name {
197
+ display: none;
198
+ text-align: center;
199
+ }
200
+
201
+ &-picture-card &-file + &-name {
202
+ position: absolute;
203
+ bottom: 16px;
204
+ display: block;
205
+ width: calc(100% - 16px);
206
+ }
207
+
208
+ &-picture-card &-progress {
209
+ bottom: 32px;
210
+ width: calc(100% - 16px);
211
+ padding-inline-start: 0;
212
+ }
213
+
214
+ &-picture & {
215
+ position: relative;
216
+ height: 66px;
217
+ padding: 8px;
218
+ border: 1px solid #d9d9d9;
219
+ border-radius: 4px;
220
+ }
221
+
222
+ &-picture &-thumbnail,
223
+ &-picture &-thumbnail img {
224
+ overflow: hidden;
225
+ white-space: nowrap;
226
+ text-overflow: ellipsis;
227
+ width: 48px;
228
+ height: 48px;
229
+ line-height: 60px;
230
+ text-align: center;
231
+ flex: none;
232
+ }
233
+
234
+ &-picture &-progress {
235
+ bottom: 2px;
236
+ width: calc(100% - 24px);
237
+ margin-top: 0;
238
+ padding-inline-start: 56px;
239
+ }
240
+ }
@@ -0,0 +1,88 @@
1
+ @use '../base/config' as *;
2
+ @use '../base/var' as *;
3
+ @use '../base/utils' as *;
4
+ @use '../base/function' as *;
5
+
6
+ @include b('basic-view-bar') {
7
+ --basic-view-bar-name: 'basic-view-bar';
8
+ --x-basic-text-color: rgb(var(--primary-color, 100, 108, 255));
9
+ --x-basic-hover-text-color: rgb(var(--primary-color, 100, 108, 255) / 80%);
10
+ --x-basic-disabled-text-color: rgb(var(--primary-color, 100, 108, 255) / 50%);
11
+
12
+ --x-basic-view-control-width: 34px;
13
+ --x-basic-view-bar-height: 34px;
14
+
15
+ display: flex;
16
+ transition: all 0.2s ease-in-out;
17
+ position: relative;
18
+ padding: 0 10px;
19
+
20
+ @include e('main') {
21
+ height: var(--x-basic-view-bar-height);
22
+ display: flex;
23
+ max-width: 100%;
24
+ min-width: 100%;
25
+ align-items: center;
26
+ }
27
+
28
+ @include e('wrap') {
29
+ flex-grow: 1;
30
+ flex-shrink: 1;
31
+ position: relative;
32
+ overflow: hidden;
33
+
34
+ &.is-scrollable {
35
+ padding: 0 34px;
36
+ overflow: hidden;
37
+ height: 100%;
38
+ line-height: var(--x-basic-view-bar-height);
39
+ }
40
+ }
41
+
42
+ @include e('prev') {
43
+ position: absolute;
44
+ width: var(--x-basic-view-control-width);
45
+ height: var(--x-basic-view-bar-height);
46
+ cursor: pointer;
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ font-size: 22px;
51
+ color: var(--x-basic-text-color);
52
+ left: 0;
53
+
54
+ &:hover {
55
+ color: var(--x-basic-hover-text-color);
56
+ }
57
+
58
+ &.is-hide {
59
+ display: none;
60
+ }
61
+ }
62
+
63
+ @include e('next') {
64
+ position: absolute;
65
+ width: var(--x-basic-view-control-width);
66
+ height: var(--x-basic-view-bar-height);
67
+ cursor: pointer;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ font-size: 22px;
72
+ color: var(--x-basic-text-color);
73
+ right: 0;
74
+
75
+ &:hover {
76
+ color: var(--x-basic-hover-text-color);
77
+ }
78
+
79
+ &.is-hide {
80
+ display: none;
81
+ }
82
+ }
83
+
84
+ @include e('scroll') {
85
+ white-space: nowrap;
86
+ overflow: hidden;
87
+ }
88
+ }