@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.
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/common/var.scss +247 -247
- package/src/components/avatar-group.scss +113 -113
- package/src/components/avatar.scss +123 -123
- package/src/components/badge.scss +210 -210
- package/src/components/breadcrumb.scss +203 -203
- package/src/components/button.scss +975 -975
- package/src/components/card.scss +699 -696
- package/src/components/checkbox-group.scss +22 -22
- package/src/components/checkbox.scss +320 -320
- package/src/components/col.scss +43 -43
- package/src/components/dialog.scss +360 -360
- package/src/components/divider.scss +250 -250
- package/src/components/empty.scss +99 -99
- package/src/components/form-item.scss +189 -189
- package/src/components/form.scss +59 -59
- package/src/components/icon.scss +83 -83
- package/src/components/image-preview.scss +147 -147
- package/src/components/image.scss +351 -351
- package/src/components/input-number.scss +129 -129
- package/src/components/input.scss +362 -362
- package/src/components/loading.scss +64 -64
- package/src/components/notification.scss +348 -348
- package/src/components/pagination.scss +287 -280
- package/src/components/pattern-background.scss +18 -18
- package/src/components/popover.scss +438 -438
- package/src/components/progress.scss +438 -438
- package/src/components/radio-group.scss +22 -22
- package/src/components/radio.scss +286 -286
- package/src/components/row.scss +12 -12
- package/src/components/scrollbar.scss +40 -40
- package/src/components/segmented.scss +566 -566
- package/src/components/select.scss +15 -1
- package/src/components/slider.scss +421 -421
- package/src/components/status-indicator.scss +206 -206
- package/src/components/switch.scss +405 -405
- package/src/components/table.scss +474 -474
- package/src/components/tag.scss +416 -416
- package/src/components/text.scss +310 -271
- package/src/components/textarea.scss +106 -104
- package/src/components/timeline.scss +379 -379
- package/src/components/tree.scss +397 -397
- package/src/components/upload.scss +509 -509
- package/src/index.scss +60 -60
- package/src/mixins/mixins.scss +156 -156
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
// CpTextarea 组件样式
|
|
2
|
-
// 赛博朋克/机甲风格
|
|
3
|
-
|
|
4
|
-
@use '../common/var' as *;
|
|
5
|
-
@use '../mixins/mixins' as *;
|
|
6
|
-
|
|
7
|
-
@include b(textarea) {
|
|
8
|
-
position: relative;
|
|
9
|
-
display: inline-flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
width: 100%;
|
|
12
|
-
font-family: var(--cp-font-family-ui);
|
|
13
|
-
|
|
14
|
-
// ===== 尺寸 =====
|
|
15
|
-
@include m(sm) {
|
|
16
|
-
font-size: var(--cp-font-size-sm);
|
|
17
|
-
|
|
18
|
-
.cp-textarea__inner {
|
|
19
|
-
padding: var(--cp-spacing-xs) var(--cp-spacing-sm);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@include m(md) {
|
|
24
|
-
font-size: var(--cp-font-size-md);
|
|
25
|
-
|
|
26
|
-
.cp-textarea__inner {
|
|
27
|
-
padding: var(--cp-spacing-sm) var(--cp-spacing-md);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@include m(lg) {
|
|
32
|
-
font-size: var(--cp-font-size-lg);
|
|
33
|
-
|
|
34
|
-
.cp-textarea__inner {
|
|
35
|
-
padding: var(--cp-spacing-md) var(--cp-spacing-lg);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// ===== Outline 变体 =====
|
|
40
|
-
@include m(outline) {
|
|
41
|
-
.cp-textarea__inner {
|
|
42
|
-
background: transparent;
|
|
43
|
-
border: 1px solid var(--cp-border);
|
|
44
|
-
|
|
45
|
-
&:hover:not(:disabled):not([readonly]) {
|
|
46
|
-
border-color: var(--cp-color-primary);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&.is-focused .cp-textarea__inner {
|
|
51
|
-
border-color: var(--cp-color-primary);
|
|
52
|
-
box-shadow: 0 0 10px var(--cp-color-primary-light), inset 0 0 5px var(--cp-color-primary-light);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// ===== Filled 变体 =====
|
|
57
|
-
@include m(filled) {
|
|
58
|
-
.cp-textarea__inner {
|
|
59
|
-
background: var(--cp-bg-elevated);
|
|
60
|
-
border: 1px solid var(--cp-border);
|
|
61
|
-
|
|
62
|
-
&:hover:not(:disabled):not([readonly]) {
|
|
63
|
-
border-color: var(--cp-color-primary);
|
|
64
|
-
background: color-mix(in srgb, var(--cp-color-primary) 5%, transparent);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&.is-focused .cp-textarea__inner {
|
|
69
|
-
border-color: var(--cp-color-primary);
|
|
70
|
-
background: color-mix(in srgb, var(--cp-color-primary) 8%, transparent);
|
|
71
|
-
box-shadow: 0 0 10px var(--cp-color-primary-light);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// ===== 状态 =====
|
|
76
|
-
@include when(disabled) {
|
|
77
|
-
cursor: not-allowed;
|
|
78
|
-
opacity: 0.5;
|
|
79
|
-
|
|
80
|
-
.cp-textarea__inner {
|
|
81
|
-
cursor: not-allowed;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
1
|
+
// CpTextarea 组件样式
|
|
2
|
+
// 赛博朋克/机甲风格
|
|
3
|
+
|
|
4
|
+
@use '../common/var' as *;
|
|
5
|
+
@use '../mixins/mixins' as *;
|
|
6
|
+
|
|
7
|
+
@include b(textarea) {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
width: 100%;
|
|
12
|
+
font-family: var(--cp-font-family-ui);
|
|
13
|
+
|
|
14
|
+
// ===== 尺寸 =====
|
|
15
|
+
@include m(sm) {
|
|
16
|
+
font-size: var(--cp-font-size-sm);
|
|
17
|
+
|
|
18
|
+
.cp-textarea__inner {
|
|
19
|
+
padding: var(--cp-spacing-xs) var(--cp-spacing-sm);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include m(md) {
|
|
24
|
+
font-size: var(--cp-font-size-md);
|
|
25
|
+
|
|
26
|
+
.cp-textarea__inner {
|
|
27
|
+
padding: var(--cp-spacing-sm) var(--cp-spacing-md);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include m(lg) {
|
|
32
|
+
font-size: var(--cp-font-size-lg);
|
|
33
|
+
|
|
34
|
+
.cp-textarea__inner {
|
|
35
|
+
padding: var(--cp-spacing-md) var(--cp-spacing-lg);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// ===== Outline 变体 =====
|
|
40
|
+
@include m(outline) {
|
|
41
|
+
.cp-textarea__inner {
|
|
42
|
+
background: transparent;
|
|
43
|
+
border: 1px solid var(--cp-border);
|
|
44
|
+
|
|
45
|
+
&:hover:not(:disabled):not([readonly]) {
|
|
46
|
+
border-color: var(--cp-color-primary);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.is-focused .cp-textarea__inner {
|
|
51
|
+
border-color: var(--cp-color-primary);
|
|
52
|
+
box-shadow: 0 0 10px var(--cp-color-primary-light), inset 0 0 5px var(--cp-color-primary-light);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// ===== Filled 变体 =====
|
|
57
|
+
@include m(filled) {
|
|
58
|
+
.cp-textarea__inner {
|
|
59
|
+
background: var(--cp-bg-elevated);
|
|
60
|
+
border: 1px solid var(--cp-border);
|
|
61
|
+
|
|
62
|
+
&:hover:not(:disabled):not([readonly]) {
|
|
63
|
+
border-color: var(--cp-color-primary);
|
|
64
|
+
background: color-mix(in srgb, var(--cp-color-primary) 5%, transparent);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.is-focused .cp-textarea__inner {
|
|
69
|
+
border-color: var(--cp-color-primary);
|
|
70
|
+
background: color-mix(in srgb, var(--cp-color-primary) 8%, transparent);
|
|
71
|
+
box-shadow: 0 0 10px var(--cp-color-primary-light);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ===== 状态 =====
|
|
76
|
+
@include when(disabled) {
|
|
77
|
+
cursor: not-allowed;
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
|
|
80
|
+
.cp-textarea__inner {
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
85
|
@include when(readonly) {
|
|
86
86
|
.cp-textarea__inner {
|
|
87
87
|
cursor: default;
|
|
@@ -89,17 +89,19 @@
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
@include when(show-word-limit) {
|
|
92
|
-
|
|
92
|
+
.cp-textarea__inner {
|
|
93
|
+
padding-bottom: calc(var(--cp-spacing-sm) + var(--cp-font-size-sm) + 4px);
|
|
94
|
+
}
|
|
93
95
|
}
|
|
94
|
-
|
|
95
|
-
// ===== 自定义颜色 =====
|
|
96
|
+
|
|
97
|
+
// ===== 自定义颜色 =====
|
|
96
98
|
@include when(custom-color) {
|
|
97
99
|
.cp-textarea__inner:hover:not(:disabled):not([readonly]) {
|
|
98
100
|
border-color: var(--cp-textarea-custom-color);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&.is-focused .cp-textarea__inner {
|
|
102
|
-
border-color: var(--cp-textarea-custom-color);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.is-focused .cp-textarea__inner {
|
|
104
|
+
border-color: var(--cp-textarea-custom-color);
|
|
103
105
|
box-shadow: 0 0 10px var(--cp-textarea-custom-color-light), inset 0 0 5px var(--cp-textarea-custom-color-light);
|
|
104
106
|
}
|
|
105
107
|
}
|
|
@@ -120,11 +122,11 @@
|
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
// ===== 内部元素 =====
|
|
123
|
-
@include e(inner) {
|
|
124
|
-
width: 100%;
|
|
125
|
-
min-height: 80px;
|
|
126
|
-
resize: vertical;
|
|
127
|
-
outline: none;
|
|
125
|
+
@include e(inner) {
|
|
126
|
+
width: 100%;
|
|
127
|
+
min-height: 80px;
|
|
128
|
+
resize: vertical;
|
|
129
|
+
outline: none;
|
|
128
130
|
color: var(--cp-textarea-text-color, var(--cp-text-primary));
|
|
129
131
|
font-family: inherit;
|
|
130
132
|
font-size: inherit;
|
|
@@ -138,16 +140,16 @@
|
|
|
138
140
|
|
|
139
141
|
// 机甲风切角
|
|
140
142
|
clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
|
|
141
|
-
|
|
142
|
-
&::placeholder {
|
|
143
|
-
color: var(--cp-text-muted);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
143
|
+
|
|
144
|
+
&::placeholder {
|
|
145
|
+
color: var(--cp-text-muted);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
147
149
|
@include e(count) {
|
|
148
150
|
position: absolute;
|
|
149
|
-
right: var(--cp-spacing-
|
|
150
|
-
bottom:
|
|
151
|
+
right: var(--cp-spacing-md);
|
|
152
|
+
bottom: var(--cp-spacing-sm);
|
|
151
153
|
color: var(--cp-text-muted);
|
|
152
154
|
font-size: var(--cp-font-size-sm);
|
|
153
155
|
font-family: var(--cp-font-family-mono);
|