@composy/keyboard-vue 0.0.1 → 0.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/README.md +48 -24
- package/dist/index.css +552 -560
- package/dist/index.js +228 -192
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.min.js +954 -1
- package/dist/index.min.js.map +1 -0
- package/es/.dts-output-manifest.json +1 -0
- package/es/.dts.tsbuildinfo +1 -0
- package/es/components/KeyboardKey.js +1 -1
- package/es/components/KeyboardKey.js.map +1 -1
- package/es/components/KeyboardKey.vue_vue_type_script_setup_true_lang.js +16 -7
- package/es/components/KeyboardKey.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/es/components/KeyboardPopup.js +1 -1
- package/es/components/KeyboardPopup.js.map +1 -1
- package/es/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.js +8 -5
- package/es/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/es/components/LicensePlateKeyboard.js +1 -1
- package/es/components/LicensePlateKeyboard.js.map +1 -1
- package/es/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/es/components/VirtualKeyboard.js +1 -1
- package/es/components/VirtualKeyboard.js.map +1 -1
- package/es/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.d.ts.map +1 -1
- package/es/components/index.js +1 -1
- package/es/composables/index.d.ts +0 -1
- package/es/composables/index.js +1 -1
- package/es/composables/useKeyboard.d.ts +1 -2
- package/es/composables/useKeyboard.d.ts.map +1 -1
- package/es/composables/useKeyboard.js +8 -15
- package/es/composables/useKeyboard.js.map +1 -1
- package/es/composables/useKeyboardPopup.d.ts +2 -51
- package/es/composables/useKeyboardPopup.d.ts.map +1 -1
- package/es/composables/useKeyboardPopup.js +66 -49
- package/es/composables/useKeyboardPopup.js.map +1 -1
- package/es/directives/index.d.ts +0 -1
- package/es/directives/index.js +1 -1
- package/es/directives/v-keyboard.d.ts +0 -1
- package/es/directives/v-keyboard.d.ts.map +1 -1
- package/es/directives/v-keyboard.js +10 -11
- package/es/directives/v-keyboard.js.map +1 -1
- package/es/index.d.ts +3 -4
- package/es/index.d.ts.map +1 -1
- package/es/index.js +2 -5
- package/es/index.js.map +1 -1
- package/es/plugins/engine-plugin.d.ts +0 -1
- package/es/plugins/engine-plugin.d.ts.map +1 -1
- package/es/plugins/engine-plugin.js +19 -4
- package/es/plugins/engine-plugin.js.map +1 -1
- package/es/plugins/index.d.ts +0 -1
- package/es/plugins/index.js +1 -1
- package/es/style/css.js +1 -1
- package/es/style/index.css +2 -0
- package/es/style/index.js +1 -1
- package/es/styles/index.css +391 -0
- package/es/styles/keyboard.css +252 -0
- package/es/styles/themes.css +137 -0
- package/esm/components/KeyboardKey.js +17 -0
- package/esm/components/KeyboardKey.js.map +1 -0
- package/esm/components/KeyboardKey.vue_vue_type_script_setup_true_lang.js +140 -0
- package/esm/components/KeyboardKey.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/esm/components/KeyboardPopup.js +17 -0
- package/esm/components/KeyboardPopup.js.map +1 -0
- package/esm/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.js +167 -0
- package/esm/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/esm/components/LicensePlateKeyboard.js +17 -0
- package/esm/components/LicensePlateKeyboard.js.map +1 -0
- package/esm/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.js +97 -0
- package/esm/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/esm/components/VirtualKeyboard.js +17 -0
- package/esm/components/VirtualKeyboard.js.map +1 -0
- package/esm/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.js +127 -0
- package/esm/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/{lib → esm}/components/index.d.ts +1 -1
- package/esm/components/index.d.ts.map +1 -0
- package/esm/components/index.js +15 -0
- package/esm/composables/index.d.ts.map +1 -0
- package/esm/composables/index.js +13 -0
- package/{lib → esm}/composables/useKeyboard.d.ts +1 -1
- package/esm/composables/useKeyboard.d.ts.map +1 -0
- package/esm/composables/useKeyboard.js +68 -0
- package/esm/composables/useKeyboard.js.map +1 -0
- package/esm/composables/useKeyboardPopup.d.ts +25 -0
- package/esm/composables/useKeyboardPopup.d.ts.map +1 -0
- package/esm/composables/useKeyboardPopup.js +136 -0
- package/esm/composables/useKeyboardPopup.js.map +1 -0
- package/esm/directives/index.d.ts.map +1 -0
- package/esm/directives/index.js +12 -0
- package/esm/directives/v-keyboard.d.ts.map +1 -0
- package/esm/directives/v-keyboard.js +64 -0
- package/esm/directives/v-keyboard.js.map +1 -0
- package/esm/index.d.ts +42 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +34 -0
- package/esm/index.js.map +1 -0
- package/esm/plugins/engine-plugin.d.ts.map +1 -0
- package/esm/plugins/engine-plugin.js +53 -0
- package/esm/plugins/engine-plugin.js.map +1 -0
- package/esm/plugins/index.d.ts.map +1 -0
- package/esm/plugins/index.js +12 -0
- package/esm/style/css.js +1 -0
- package/esm/style/index.js +1 -0
- package/{es → esm}/style/index.less +1 -1
- package/esm/styles/index.less +5 -0
- package/esm/styles/keyboard.less +286 -0
- package/esm/styles/themes.less +164 -0
- package/lib/components/KeyboardKey.cjs +1 -1
- package/lib/components/KeyboardKey.cjs.map +1 -1
- package/lib/components/KeyboardKey.vue_vue_type_script_setup_true_lang.cjs +16 -7
- package/lib/components/KeyboardKey.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/lib/components/KeyboardPopup.cjs +1 -1
- package/lib/components/KeyboardPopup.cjs.map +1 -1
- package/lib/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.cjs +8 -5
- package/lib/components/KeyboardPopup.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/lib/components/LicensePlateKeyboard.cjs +1 -1
- package/lib/components/LicensePlateKeyboard.cjs.map +1 -1
- package/lib/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.cjs +2 -2
- package/lib/components/LicensePlateKeyboard.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/lib/components/VirtualKeyboard.cjs +1 -1
- package/lib/components/VirtualKeyboard.cjs.map +1 -1
- package/lib/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.cjs +4 -4
- package/lib/components/VirtualKeyboard.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.cts +8 -0
- package/lib/components/index.d.cts.map +1 -0
- package/lib/composables/index.cjs +1 -1
- package/lib/composables/index.d.cts +6 -0
- package/lib/composables/index.d.cts.map +1 -0
- package/lib/composables/useKeyboard.cjs +8 -15
- package/lib/composables/useKeyboard.cjs.map +1 -1
- package/lib/composables/useKeyboard.d.cts +112 -0
- package/lib/composables/useKeyboard.d.cts.map +1 -0
- package/lib/composables/useKeyboardPopup.cjs +66 -49
- package/lib/composables/useKeyboardPopup.cjs.map +1 -1
- package/lib/composables/useKeyboardPopup.d.cts +24 -0
- package/lib/composables/useKeyboardPopup.d.cts.map +1 -0
- package/lib/directives/index.cjs +1 -1
- package/lib/directives/index.d.cts +5 -0
- package/lib/directives/index.d.cts.map +1 -0
- package/lib/directives/v-keyboard.cjs +10 -11
- package/lib/directives/v-keyboard.cjs.map +1 -1
- package/lib/directives/v-keyboard.d.cts +35 -0
- package/lib/directives/v-keyboard.d.cts.map +1 -0
- package/lib/index.cjs +2 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +41 -0
- package/lib/index.d.cts.map +1 -0
- package/lib/plugins/engine-plugin.cjs +19 -3
- package/lib/plugins/engine-plugin.cjs.map +1 -1
- package/lib/plugins/engine-plugin.d.cts +36 -0
- package/lib/plugins/engine-plugin.d.cts.map +1 -0
- package/lib/plugins/index.cjs +1 -1
- package/lib/plugins/index.d.cts +5 -0
- package/lib/plugins/index.d.cts.map +1 -0
- package/lib/style/index.css +1 -1
- package/lib/styles/index.css +357 -195
- package/lib/styles/keyboard.css +92 -186
- package/lib/styles/themes.css +102 -178
- package/package.json +43 -34
- package/es/styles/index.less +0 -267
- package/es/styles/keyboard.less +0 -399
- package/es/styles/themes.less +0 -233
- package/lib/composables/useKeyboardPopup.d.ts +0 -73
- package/lib/index.d.ts +0 -42
- /package/{lib → esm}/composables/index.d.ts +0 -0
- /package/{lib → esm}/directives/index.d.ts +0 -0
- /package/{lib → esm}/directives/v-keyboard.d.ts +0 -0
- /package/{lib → esm}/plugins/engine-plugin.d.ts +0 -0
- /package/{lib → esm}/plugins/index.d.ts +0 -0
package/lib/styles/keyboard.css
CHANGED
|
@@ -1,39 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* LDesign Keyboard
|
|
3
|
-
* 简洁现代的默认主题
|
|
2
|
+
* LDesign Keyboard shared styles.
|
|
4
3
|
*/
|
|
5
|
-
/* ====================
|
|
6
|
-
CSS 变量 - 简洁主题
|
|
7
|
-
==================== */
|
|
8
4
|
:root {
|
|
9
|
-
|
|
10
|
-
--keyboard-bg:
|
|
11
|
-
|
|
12
|
-
--keyboard-key-bg:
|
|
13
|
-
--keyboard-key-
|
|
14
|
-
--keyboard-key-
|
|
15
|
-
--keyboard-key-
|
|
16
|
-
|
|
17
|
-
--keyboard-
|
|
18
|
-
--keyboard-
|
|
19
|
-
--keyboard-
|
|
20
|
-
|
|
21
|
-
--keyboard-
|
|
22
|
-
--keyboard-
|
|
23
|
-
--keyboard-
|
|
24
|
-
|
|
25
|
-
--keyboard-
|
|
26
|
-
--keyboard-
|
|
27
|
-
--keyboard-key-
|
|
28
|
-
|
|
29
|
-
--keyboard-font-size: 20px;
|
|
30
|
-
--keyboard-fn-font-size: 14px;
|
|
31
|
-
/* 动画 */
|
|
32
|
-
--keyboard-transition: 80ms ease-out;
|
|
33
|
-
}
|
|
34
|
-
/* ====================
|
|
35
|
-
基础重置
|
|
36
|
-
==================== */
|
|
5
|
+
--keyboard-bg: var(--ld-bg-surface);
|
|
6
|
+
--keyboard-key-bg: var(--ld-bg-container);
|
|
7
|
+
--keyboard-key-color: var(--ld-text-primary);
|
|
8
|
+
--keyboard-key-active-bg: var(--ld-primary-50);
|
|
9
|
+
--keyboard-key-border: var(--ld-border);
|
|
10
|
+
--keyboard-fn-key-bg: var(--ld-bg-elevated);
|
|
11
|
+
--keyboard-fn-key-color: var(--ld-text-secondary);
|
|
12
|
+
--keyboard-fn-key-active-bg: var(--ld-primary-100);
|
|
13
|
+
--keyboard-primary-bg: var(--ld-primary-500);
|
|
14
|
+
--keyboard-primary-active-bg: var(--ld-primary-600);
|
|
15
|
+
--keyboard-primary-color: var(--ld-text-inverse);
|
|
16
|
+
--keyboard-mask-bg: color-mix(in srgb, var(--ld-black) 40%, var(--ld-transparent));
|
|
17
|
+
--keyboard-key-height: var(--ld-px-48);
|
|
18
|
+
--keyboard-key-radius: var(--ld-radius-md);
|
|
19
|
+
--keyboard-key-gap: var(--ld-spacing-sm);
|
|
20
|
+
--keyboard-font-size: var(--ld-font-lg);
|
|
21
|
+
--keyboard-fn-font-size: var(--ld-font-sm);
|
|
22
|
+
--keyboard-padding: var(--ld-spacing-sm);
|
|
23
|
+
--keyboard-key-shadow: var(--ld-shadow-sm, none);
|
|
24
|
+
}
|
|
37
25
|
.virtual-keyboard,
|
|
38
26
|
.virtual-keyboard *,
|
|
39
27
|
.keyboard-popup,
|
|
@@ -43,7 +31,12 @@
|
|
|
43
31
|
padding: 0;
|
|
44
32
|
}
|
|
45
33
|
.virtual-keyboard {
|
|
46
|
-
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
width: 100%;
|
|
37
|
+
padding: var(--keyboard-padding);
|
|
38
|
+
background-color: var(--keyboard-bg);
|
|
39
|
+
font-family: var(--ld-font-family);
|
|
47
40
|
-webkit-font-smoothing: antialiased;
|
|
48
41
|
-moz-osx-font-smoothing: grayscale;
|
|
49
42
|
-webkit-touch-callout: none;
|
|
@@ -51,17 +44,8 @@
|
|
|
51
44
|
-moz-user-select: none;
|
|
52
45
|
user-select: none;
|
|
53
46
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
==================== */
|
|
57
|
-
.virtual-keyboard {
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
padding: 8px;
|
|
61
|
-
background-color: var(--keyboard-bg);
|
|
62
|
-
width: 100%;
|
|
63
|
-
}
|
|
64
|
-
.virtual-keyboard__row {
|
|
47
|
+
.virtual-keyboard__row,
|
|
48
|
+
.numpad-row {
|
|
65
49
|
display: flex;
|
|
66
50
|
justify-content: center;
|
|
67
51
|
width: 100%;
|
|
@@ -71,18 +55,15 @@
|
|
|
71
55
|
.virtual-keyboard__row:last-child {
|
|
72
56
|
margin-bottom: 0;
|
|
73
57
|
}
|
|
74
|
-
/* ====================
|
|
75
|
-
按键基础样式
|
|
76
|
-
==================== */
|
|
77
58
|
.keyboard-key {
|
|
78
59
|
display: inline-flex;
|
|
60
|
+
flex: 1;
|
|
79
61
|
align-items: center;
|
|
80
62
|
justify-content: center;
|
|
81
|
-
flex: 1;
|
|
82
|
-
height: var(--keyboard-key-height);
|
|
83
63
|
min-width: 0;
|
|
84
|
-
|
|
85
|
-
|
|
64
|
+
height: var(--keyboard-key-height);
|
|
65
|
+
padding: 0 var(--ld-spacing-xs);
|
|
66
|
+
border: 0;
|
|
86
67
|
border-radius: var(--keyboard-key-radius);
|
|
87
68
|
background-color: var(--keyboard-key-bg);
|
|
88
69
|
color: var(--keyboard-key-color);
|
|
@@ -90,9 +71,9 @@
|
|
|
90
71
|
font-weight: 500;
|
|
91
72
|
cursor: pointer;
|
|
92
73
|
touch-action: manipulation;
|
|
93
|
-
transition: background-color var(--
|
|
74
|
+
transition: background-color var(--ld-duration-fast), transform var(--ld-duration-fast);
|
|
94
75
|
-webkit-tap-highlight-color: transparent;
|
|
95
|
-
box-shadow:
|
|
76
|
+
box-shadow: var(--keyboard-key-shadow);
|
|
96
77
|
}
|
|
97
78
|
.keyboard-key:active {
|
|
98
79
|
background-color: var(--keyboard-key-active-bg);
|
|
@@ -103,192 +84,130 @@
|
|
|
103
84
|
cursor: default;
|
|
104
85
|
pointer-events: none;
|
|
105
86
|
}
|
|
106
|
-
/* ====================
|
|
107
|
-
功能键样式
|
|
108
|
-
==================== */
|
|
109
87
|
.keyboard-key--backspace,
|
|
110
88
|
.keyboard-key--shift,
|
|
111
89
|
.keyboard-key--tab,
|
|
112
90
|
.keyboard-key--clear,
|
|
113
91
|
.keyboard-key--close {
|
|
114
|
-
background-color: var(--keyboard-fn-bg);
|
|
115
|
-
color: var(--keyboard-fn-color);
|
|
92
|
+
background-color: var(--keyboard-fn-key-bg);
|
|
93
|
+
color: var(--keyboard-fn-key-color);
|
|
116
94
|
font-size: var(--keyboard-fn-font-size);
|
|
117
95
|
font-weight: 400;
|
|
118
|
-
box-shadow: 0 1px 0 var(--keyboard-key-border);
|
|
119
96
|
}
|
|
120
97
|
.keyboard-key--backspace:active,
|
|
121
98
|
.keyboard-key--shift:active,
|
|
122
99
|
.keyboard-key--tab:active,
|
|
123
100
|
.keyboard-key--clear:active,
|
|
124
101
|
.keyboard-key--close:active {
|
|
125
|
-
background-color: var(--keyboard-fn-active-bg);
|
|
102
|
+
background-color: var(--keyboard-fn-key-active-bg);
|
|
126
103
|
}
|
|
127
|
-
|
|
128
|
-
.keyboard-key--shift.keyboard-key--active {
|
|
129
|
-
background-color: var(--keyboard-primary-bg);
|
|
130
|
-
color: var(--keyboard-primary-color);
|
|
131
|
-
}
|
|
132
|
-
/* ====================
|
|
133
|
-
主色按键(完成/确认)
|
|
134
|
-
==================== */
|
|
104
|
+
.keyboard-key--shift.keyboard-key--active,
|
|
135
105
|
.keyboard-key--done,
|
|
136
106
|
.keyboard-key--enter {
|
|
137
107
|
background-color: var(--keyboard-primary-bg);
|
|
138
108
|
color: var(--keyboard-primary-color);
|
|
139
|
-
font-size: var(--keyboard-fn-font-size);
|
|
140
|
-
font-weight: 500;
|
|
141
|
-
box-shadow: none;
|
|
142
109
|
}
|
|
143
110
|
.keyboard-key--done:active,
|
|
144
111
|
.keyboard-key--enter:active {
|
|
145
112
|
background-color: var(--keyboard-primary-active-bg);
|
|
146
113
|
}
|
|
147
|
-
/* ====================
|
|
148
|
-
空格键
|
|
149
|
-
==================== */
|
|
150
114
|
.keyboard-key--space {
|
|
151
115
|
flex: 4;
|
|
152
116
|
}
|
|
153
|
-
/* ====================
|
|
154
|
-
占位键(透明)
|
|
155
|
-
==================== */
|
|
156
117
|
.key-placeholder {
|
|
157
|
-
background-color: transparent
|
|
158
|
-
box-shadow: none
|
|
118
|
+
background-color: transparent;
|
|
119
|
+
box-shadow: none;
|
|
159
120
|
cursor: default;
|
|
160
121
|
pointer-events: none;
|
|
161
122
|
}
|
|
162
|
-
/* ====================
|
|
163
|
-
数字键盘通用样式
|
|
164
|
-
==================== */
|
|
165
|
-
.numpad-row {
|
|
166
|
-
display: flex;
|
|
167
|
-
gap: var(--keyboard-key-gap);
|
|
168
|
-
width: 100%;
|
|
169
|
-
}
|
|
170
123
|
.numpad-row .keyboard-key {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
font-size: 24px;
|
|
174
|
-
font-weight: 500;
|
|
124
|
+
height: var(--ld-px-56);
|
|
125
|
+
font-size: var(--ld-font-xl);
|
|
175
126
|
}
|
|
176
|
-
|
|
177
|
-
.key-
|
|
127
|
+
.key-num,
|
|
128
|
+
.key-plate-province,
|
|
129
|
+
.key-plate-letter,
|
|
130
|
+
.key-plate-number {
|
|
178
131
|
background-color: var(--keyboard-key-bg);
|
|
179
132
|
color: var(--keyboard-key-color);
|
|
180
133
|
}
|
|
181
|
-
|
|
182
|
-
.key-
|
|
183
|
-
|
|
184
|
-
color: var(--keyboard-fn-
|
|
185
|
-
|
|
186
|
-
font-
|
|
134
|
+
.key-numpad-fn,
|
|
135
|
+
.key-plate-fn,
|
|
136
|
+
.key-plate-switch {
|
|
137
|
+
background-color: var(--keyboard-fn-key-bg);
|
|
138
|
+
color: var(--keyboard-fn-key-color);
|
|
139
|
+
font-size: var(--keyboard-fn-font-size);
|
|
187
140
|
}
|
|
188
|
-
|
|
189
|
-
.key-
|
|
141
|
+
.key-numpad-done,
|
|
142
|
+
.key-plate-done {
|
|
190
143
|
background-color: var(--keyboard-primary-bg);
|
|
191
144
|
color: var(--keyboard-primary-color);
|
|
192
|
-
font-size:
|
|
193
|
-
font-weight: 500;
|
|
145
|
+
font-size: var(--keyboard-fn-font-size);
|
|
194
146
|
box-shadow: none;
|
|
195
147
|
}
|
|
196
|
-
.key-numpad-done:active
|
|
148
|
+
.key-numpad-done:active,
|
|
149
|
+
.key-plate-done:active {
|
|
197
150
|
background-color: var(--keyboard-primary-active-bg);
|
|
198
151
|
}
|
|
199
|
-
/* ====================
|
|
200
|
-
车牌键盘样式
|
|
201
|
-
==================== */
|
|
202
152
|
.virtual-keyboard:has(.plate-keyboard-row) {
|
|
203
|
-
min-width:
|
|
153
|
+
min-width: var(--ld-px-280);
|
|
204
154
|
}
|
|
205
155
|
.plate-keyboard-row {
|
|
206
156
|
display: flex;
|
|
207
|
-
gap: 3px;
|
|
208
|
-
width: 100%;
|
|
209
157
|
flex-wrap: nowrap;
|
|
158
|
+
width: 100%;
|
|
159
|
+
gap: var(--ld-spacing-xs);
|
|
210
160
|
}
|
|
211
161
|
.plate-keyboard-row .keyboard-key {
|
|
212
162
|
flex: 1 1 0;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
font-weight: 500;
|
|
219
|
-
border-radius: 5px;
|
|
220
|
-
}
|
|
221
|
-
.key-plate-province,
|
|
222
|
-
.key-plate-letter,
|
|
223
|
-
.key-plate-number {
|
|
224
|
-
background-color: var(--keyboard-key-bg);
|
|
163
|
+
min-width: var(--ld-px-28);
|
|
164
|
+
height: var(--ld-px-42);
|
|
165
|
+
padding: 0 var(--ld-px-2);
|
|
166
|
+
font-size: var(--ld-font-sm);
|
|
167
|
+
border-radius: var(--ld-radius-sm);
|
|
225
168
|
}
|
|
226
169
|
.key-plate-fn {
|
|
227
|
-
background-color: var(--keyboard-fn-bg);
|
|
228
|
-
font-size: 12px;
|
|
229
170
|
flex: 1.2 1 0 !important;
|
|
230
171
|
}
|
|
231
172
|
.key-plate-done {
|
|
232
|
-
background-color: var(--keyboard-primary-bg);
|
|
233
|
-
color: var(--keyboard-primary-color);
|
|
234
|
-
font-size: 13px;
|
|
235
|
-
box-shadow: none;
|
|
236
173
|
flex: 1.5 1 0 !important;
|
|
237
174
|
}
|
|
238
175
|
.key-plate-switch {
|
|
239
|
-
background-color: var(--keyboard-fn-bg);
|
|
240
|
-
font-size: 12px;
|
|
241
176
|
flex: 1.3 1 0 !important;
|
|
242
177
|
}
|
|
243
178
|
.key-plate-special {
|
|
244
|
-
background-color:
|
|
245
|
-
color:
|
|
179
|
+
background-color: var(--ld-warning-50);
|
|
180
|
+
color: var(--ld-warning-700);
|
|
246
181
|
}
|
|
247
|
-
/* ====================
|
|
248
|
-
弹出层样式
|
|
249
|
-
==================== */
|
|
250
182
|
.keyboard-popup {
|
|
251
183
|
position: fixed;
|
|
252
184
|
z-index: 1000;
|
|
253
|
-
background-color: var(--keyboard-bg);
|
|
254
185
|
overflow: hidden;
|
|
186
|
+
background-color: var(--keyboard-bg);
|
|
255
187
|
}
|
|
256
188
|
.keyboard-popup--desktop {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
189
|
+
min-width: var(--ld-px-280);
|
|
190
|
+
border-radius: var(--ld-radius-lg);
|
|
191
|
+
box-shadow: var(--ld-shadow-lg, none);
|
|
260
192
|
}
|
|
261
193
|
.keyboard-popup--mobile {
|
|
262
|
-
position: fixed;
|
|
263
|
-
left: 0;
|
|
264
194
|
right: 0;
|
|
265
195
|
bottom: 0;
|
|
196
|
+
left: 0;
|
|
266
197
|
border-radius: 0;
|
|
267
|
-
border-top-left-radius:
|
|
268
|
-
border-top-right-radius:
|
|
269
|
-
box-shadow:
|
|
270
|
-
}
|
|
271
|
-
/* 安全区域 */
|
|
272
|
-
@supports (padding-bottom: env(safe-area-inset-bottom)) {
|
|
273
|
-
.keyboard-popup--mobile {
|
|
274
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
275
|
-
}
|
|
198
|
+
border-top-left-radius: var(--ld-radius-lg);
|
|
199
|
+
border-top-right-radius: var(--ld-radius-lg);
|
|
200
|
+
box-shadow: var(--ld-shadow-md, none);
|
|
276
201
|
}
|
|
277
|
-
/* ====================
|
|
278
|
-
遮罩层
|
|
279
|
-
==================== */
|
|
280
202
|
.keyboard-mask {
|
|
281
203
|
position: fixed;
|
|
282
204
|
inset: 0;
|
|
283
|
-
background-color: rgba(0, 0, 0, 0.3);
|
|
284
205
|
z-index: 999;
|
|
206
|
+
background-color: var(--keyboard-mask-bg);
|
|
285
207
|
}
|
|
286
|
-
/* ====================
|
|
287
|
-
动画
|
|
288
|
-
==================== */
|
|
289
208
|
.keyboard-mask-enter-active,
|
|
290
209
|
.keyboard-mask-leave-active {
|
|
291
|
-
transition: opacity
|
|
210
|
+
transition: opacity var(--ld-duration-fast);
|
|
292
211
|
}
|
|
293
212
|
.keyboard-mask-enter-from,
|
|
294
213
|
.keyboard-mask-leave-to {
|
|
@@ -296,51 +215,38 @@
|
|
|
296
215
|
}
|
|
297
216
|
.keyboard-fade-enter-active,
|
|
298
217
|
.keyboard-fade-leave-active {
|
|
299
|
-
transition: opacity
|
|
218
|
+
transition: opacity var(--ld-duration-fast), transform var(--ld-duration-fast);
|
|
300
219
|
}
|
|
301
220
|
.keyboard-fade-enter-from,
|
|
302
221
|
.keyboard-fade-leave-to {
|
|
303
222
|
opacity: 0;
|
|
304
|
-
transform: translateY(-
|
|
223
|
+
transform: translateY(calc(-1 * var(--ld-px-4))) scale(0.98);
|
|
305
224
|
}
|
|
306
225
|
.keyboard-slide-enter-active,
|
|
307
226
|
.keyboard-slide-leave-active {
|
|
308
|
-
transition: transform
|
|
227
|
+
transition: transform var(--ld-duration-normal);
|
|
309
228
|
}
|
|
310
229
|
.keyboard-slide-enter-from,
|
|
311
230
|
.keyboard-slide-leave-to {
|
|
312
231
|
transform: translateY(100%);
|
|
313
232
|
}
|
|
314
|
-
|
|
315
|
-
移动端适配
|
|
316
|
-
==================== */
|
|
317
|
-
@media (max-width: 768px) {
|
|
233
|
+
@media (max-width: 48em) {
|
|
318
234
|
.virtual-keyboard {
|
|
319
|
-
padding:
|
|
235
|
+
padding: var(--ld-spacing-xs);
|
|
320
236
|
}
|
|
321
237
|
.keyboard-key {
|
|
322
|
-
height:
|
|
323
|
-
}
|
|
324
|
-
.numpad-row .keyboard-key {
|
|
325
|
-
height: 52px;
|
|
326
|
-
font-size: 22px;
|
|
327
|
-
}
|
|
328
|
-
.plate-keyboard-row .keyboard-key {
|
|
329
|
-
height: 40px;
|
|
330
|
-
font-size: 15px;
|
|
238
|
+
height: var(--ld-px-48);
|
|
331
239
|
}
|
|
332
240
|
}
|
|
333
|
-
|
|
334
|
-
横屏适配
|
|
335
|
-
==================== */
|
|
336
|
-
@media (orientation: landscape) and (max-height: 500px) {
|
|
241
|
+
@media (orientation: landscape) and (max-height: 32em) {
|
|
337
242
|
.keyboard-key {
|
|
338
|
-
height:
|
|
339
|
-
font-size:
|
|
243
|
+
height: var(--ld-px-36);
|
|
244
|
+
font-size: var(--ld-font-base);
|
|
340
245
|
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
246
|
+
}
|
|
247
|
+
@supports (padding-bottom: env(safe-area-inset-bottom)) {
|
|
248
|
+
.keyboard-popup--mobile {
|
|
249
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
344
250
|
}
|
|
345
251
|
}
|
|
346
|
-
/*# sourceMappingURL=src
|
|
252
|
+
/*# sourceMappingURL=src\styles\keyboard.less.map */
|