@cyberpunk-vue/theme-chalk 1.14.0 → 1.14.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.
Files changed (47) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.css.map +1 -1
  3. package/package.json +1 -1
  4. package/src/common/var.scss +247 -247
  5. package/src/components/avatar-group.scss +113 -113
  6. package/src/components/avatar.scss +123 -123
  7. package/src/components/badge.scss +210 -210
  8. package/src/components/breadcrumb.scss +203 -203
  9. package/src/components/button.scss +975 -975
  10. package/src/components/card.scss +699 -696
  11. package/src/components/checkbox-group.scss +22 -22
  12. package/src/components/checkbox.scss +320 -320
  13. package/src/components/col.scss +43 -43
  14. package/src/components/dialog.scss +360 -360
  15. package/src/components/divider.scss +250 -250
  16. package/src/components/empty.scss +99 -99
  17. package/src/components/form-item.scss +189 -189
  18. package/src/components/form.scss +59 -59
  19. package/src/components/icon.scss +83 -83
  20. package/src/components/image-preview.scss +147 -147
  21. package/src/components/image.scss +351 -351
  22. package/src/components/input-number.scss +129 -129
  23. package/src/components/input.scss +362 -362
  24. package/src/components/loading.scss +64 -64
  25. package/src/components/notification.scss +348 -348
  26. package/src/components/pagination.scss +287 -280
  27. package/src/components/pattern-background.scss +18 -18
  28. package/src/components/popover.scss +438 -438
  29. package/src/components/progress.scss +438 -438
  30. package/src/components/radio-group.scss +22 -22
  31. package/src/components/radio.scss +286 -286
  32. package/src/components/row.scss +12 -12
  33. package/src/components/scrollbar.scss +40 -40
  34. package/src/components/segmented.scss +566 -566
  35. package/src/components/select.scss +15 -1
  36. package/src/components/slider.scss +421 -421
  37. package/src/components/status-indicator.scss +206 -206
  38. package/src/components/switch.scss +405 -405
  39. package/src/components/table.scss +474 -474
  40. package/src/components/tag.scss +416 -416
  41. package/src/components/text.scss +310 -271
  42. package/src/components/textarea.scss +106 -104
  43. package/src/components/timeline.scss +379 -379
  44. package/src/components/tree.scss +397 -397
  45. package/src/components/upload.scss +509 -509
  46. package/src/index.scss +60 -60
  47. package/src/mixins/mixins.scss +156 -156
@@ -1,9 +1,9 @@
1
- // CpInputNumber 组件样式
2
- // 赛博朋克/机甲风格
3
-
4
- @use '../common/var' as *;
5
- @use '../mixins/mixins' as *;
6
-
1
+ // CpInputNumber 组件样式
2
+ // 赛博朋克/机甲风格
3
+
4
+ @use '../common/var' as *;
5
+ @use '../mixins/mixins' as *;
6
+
7
7
  @include b(input-number) {
8
8
  position: relative;
9
9
  display: inline-flex;
@@ -55,83 +55,83 @@
55
55
  --cp-input-number-icon-size: clamp(10px, calc(var(--cp-input-number-height) * 0.4), 20px);
56
56
  --cp-input-number-right-icon-size: clamp(8px, calc(var(--cp-input-number-height) * 0.32), 16px);
57
57
  }
58
-
59
- // ===== 控制按钮位置 =====
60
- @include m(controls-both) {
61
- .cp-input-number__inner {
62
- text-align: center;
63
- }
64
- }
65
-
58
+
59
+ // ===== 控制按钮位置 =====
60
+ @include m(controls-both) {
61
+ .cp-input-number__inner {
62
+ text-align: center;
63
+ }
64
+ }
65
+
66
66
  @include m(controls-right) {
67
67
  .cp-input-number__inner {
68
68
  padding-right: calc(var(--cp-input-number-right-control-width) + var(--cp-input-number-input-padding));
69
69
  }
70
70
 
71
71
  .cp-input-number__controls {
72
- position: absolute;
73
- right: 0;
74
- top: 0;
72
+ position: absolute;
73
+ right: 0;
74
+ top: 0;
75
75
  bottom: 0;
76
76
  display: flex;
77
77
  flex-direction: column;
78
78
  width: var(--cp-input-number-right-control-width);
79
79
  border-left: 1px solid var(--cp-border);
80
80
  }
81
-
82
- .cp-input-number__increase,
83
- .cp-input-number__decrease {
84
- flex: 1;
85
- width: 100%;
86
- height: 50%;
87
- border: none;
88
- clip-path: none;
81
+
82
+ .cp-input-number__increase,
83
+ .cp-input-number__decrease {
84
+ flex: 1;
85
+ width: 100%;
86
+ height: 50%;
87
+ border: none;
88
+ clip-path: none;
89
89
 
90
90
  svg {
91
91
  width: var(--cp-input-number-right-icon-size);
92
92
  height: var(--cp-input-number-right-icon-size);
93
93
  }
94
94
  }
95
-
96
- .cp-input-number__increase {
97
- border-bottom: 1px solid var(--cp-border);
98
- }
99
- }
100
-
101
- // ===== 状态 =====
102
- @include when(disabled) {
103
- cursor: not-allowed;
104
- opacity: 0.5;
105
-
106
- .cp-input-number__inner,
107
- .cp-input-number__increase,
108
- .cp-input-number__decrease {
109
- cursor: not-allowed;
110
- }
111
- }
112
-
113
- @include when(focused) {
114
- .cp-input-number__inner {
115
- border-color: var(--cp-color-primary);
116
- box-shadow: 0 0 10px var(--cp-color-primary-light), inset 0 0 5px var(--cp-color-primary-light);
117
- }
118
- }
119
-
120
- @include when(without-controls) {
121
- .cp-input-number__inner {
122
- text-align: left;
123
- }
124
- }
125
-
126
- // ===== 自定义颜色 =====
95
+
96
+ .cp-input-number__increase {
97
+ border-bottom: 1px solid var(--cp-border);
98
+ }
99
+ }
100
+
101
+ // ===== 状态 =====
102
+ @include when(disabled) {
103
+ cursor: not-allowed;
104
+ opacity: 0.5;
105
+
106
+ .cp-input-number__inner,
107
+ .cp-input-number__increase,
108
+ .cp-input-number__decrease {
109
+ cursor: not-allowed;
110
+ }
111
+ }
112
+
113
+ @include when(focused) {
114
+ .cp-input-number__inner {
115
+ border-color: var(--cp-color-primary);
116
+ box-shadow: 0 0 10px var(--cp-color-primary-light), inset 0 0 5px var(--cp-color-primary-light);
117
+ }
118
+ }
119
+
120
+ @include when(without-controls) {
121
+ .cp-input-number__inner {
122
+ text-align: left;
123
+ }
124
+ }
125
+
126
+ // ===== 自定义颜色 =====
127
127
  @include when(custom-color) {
128
128
  &.is-focused .cp-input-number__inner {
129
129
  border-color: var(--cp-input-number-custom-color);
130
130
  box-shadow: 0 0 10px var(--cp-input-number-custom-color-light), inset 0 0 5px var(--cp-input-number-custom-color-light);
131
- }
132
-
133
- .cp-input-number__increase:hover:not(.is-disabled),
134
- .cp-input-number__decrease:hover:not(.is-disabled) {
131
+ }
132
+
133
+ .cp-input-number__increase:hover:not(.is-disabled),
134
+ .cp-input-number__decrease:hover:not(.is-disabled) {
135
135
  color: var(--cp-input-number-custom-color);
136
136
  }
137
137
  }
@@ -201,46 +201,46 @@
201
201
  min-width: 0;
202
202
  height: 100%;
203
203
  padding: 0 var(--cp-input-number-input-padding);
204
- border: 1px solid var(--cp-border);
205
- background: transparent;
206
- color: var(--cp-text-primary);
207
- font-family: var(--cp-font-family-mono);
208
- font-size: inherit;
209
- text-align: center;
210
- outline: none;
204
+ border: 1px solid var(--cp-border);
205
+ background: transparent;
206
+ color: var(--cp-text-primary);
207
+ font-family: var(--cp-font-family-mono);
208
+ font-size: inherit;
209
+ text-align: center;
210
+ outline: none;
211
211
  transition: all 0.2s ease;
212
212
 
213
213
  // 机甲风切角
214
214
  clip-path: polygon(var(--cp-input-number-cut-size) 0, 100% 0, 100% calc(100% - var(--cp-input-number-cut-size)), calc(100% - var(--cp-input-number-cut-size)) 100%, 0 100%, 0 var(--cp-input-number-cut-size));
215
-
216
- &::placeholder {
217
- color: var(--cp-text-muted);
218
- }
219
-
220
- // 移除默认箭头
221
- &::-webkit-outer-spin-button,
222
- &::-webkit-inner-spin-button {
223
- -webkit-appearance: none;
224
- appearance: none;
225
- margin: 0;
226
- }
227
-
228
- -moz-appearance: textfield;
229
- appearance: textfield;
230
- }
231
-
215
+
216
+ &::placeholder {
217
+ color: var(--cp-text-muted);
218
+ }
219
+
220
+ // 移除默认箭头
221
+ &::-webkit-outer-spin-button,
222
+ &::-webkit-inner-spin-button {
223
+ -webkit-appearance: none;
224
+ appearance: none;
225
+ margin: 0;
226
+ }
227
+
228
+ -moz-appearance: textfield;
229
+ appearance: textfield;
230
+ }
231
+
232
232
  @include e(increase) {
233
- display: flex;
234
- align-items: center;
235
- justify-content: center;
233
+ display: flex;
234
+ align-items: center;
235
+ justify-content: center;
236
236
  width: var(--cp-input-number-control-width);
237
- height: 100%;
238
- padding: 0;
239
- border: 1px solid var(--cp-border);
240
- border-left: none;
241
- background: var(--cp-bg-elevated);
242
- color: var(--cp-text-secondary);
243
- cursor: pointer;
237
+ height: 100%;
238
+ padding: 0;
239
+ border: 1px solid var(--cp-border);
240
+ border-left: none;
241
+ background: var(--cp-bg-elevated);
242
+ color: var(--cp-text-secondary);
243
+ cursor: pointer;
244
244
  transition: all 0.2s ease;
245
245
 
246
246
  // 右侧切角
@@ -250,30 +250,30 @@
250
250
  width: var(--cp-input-number-icon-size);
251
251
  height: var(--cp-input-number-icon-size);
252
252
  }
253
-
254
- &:hover:not(.is-disabled) {
255
- color: var(--cp-color-primary);
256
- background: color-mix(in srgb, var(--cp-color-primary) 10%, transparent);
257
- }
258
-
259
- &.is-disabled {
260
- cursor: not-allowed;
261
- opacity: 0.5;
262
- }
263
- }
264
-
253
+
254
+ &:hover:not(.is-disabled) {
255
+ color: var(--cp-color-primary);
256
+ background: color-mix(in srgb, var(--cp-color-primary) 10%, transparent);
257
+ }
258
+
259
+ &.is-disabled {
260
+ cursor: not-allowed;
261
+ opacity: 0.5;
262
+ }
263
+ }
264
+
265
265
  @include e(decrease) {
266
- display: flex;
267
- align-items: center;
268
- justify-content: center;
266
+ display: flex;
267
+ align-items: center;
268
+ justify-content: center;
269
269
  width: var(--cp-input-number-control-width);
270
- height: 100%;
271
- padding: 0;
272
- border: 1px solid var(--cp-border);
273
- border-right: none;
274
- background: var(--cp-bg-elevated);
275
- color: var(--cp-text-secondary);
276
- cursor: pointer;
270
+ height: 100%;
271
+ padding: 0;
272
+ border: 1px solid var(--cp-border);
273
+ border-right: none;
274
+ background: var(--cp-bg-elevated);
275
+ color: var(--cp-text-secondary);
276
+ cursor: pointer;
277
277
  transition: all 0.2s ease;
278
278
 
279
279
  // 左侧切角
@@ -283,15 +283,15 @@
283
283
  width: var(--cp-input-number-icon-size);
284
284
  height: var(--cp-input-number-icon-size);
285
285
  }
286
-
287
- &:hover:not(.is-disabled) {
288
- color: var(--cp-color-primary);
289
- background: color-mix(in srgb, var(--cp-color-primary) 10%, transparent);
290
- }
291
-
292
- &.is-disabled {
293
- cursor: not-allowed;
294
- opacity: 0.5;
295
- }
296
- }
297
- }
286
+
287
+ &:hover:not(.is-disabled) {
288
+ color: var(--cp-color-primary);
289
+ background: color-mix(in srgb, var(--cp-color-primary) 10%, transparent);
290
+ }
291
+
292
+ &.is-disabled {
293
+ cursor: not-allowed;
294
+ opacity: 0.5;
295
+ }
296
+ }
297
+ }