@q1travel/design-system 0.25.0 → 0.26.0
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 +2 -0
- package/contracts/design.dark.md +6 -0
- package/contracts/design.md +6 -0
- package/contracts/token-naming.md +6 -0
- package/dist-pkg/design-system.d.ts +2 -8
- package/dist-pkg/design-system.js +3992 -4010
- package/dist-pkg/style.css +19 -15
- package/dist-pkg/tokens.css +4 -0
- package/package.json +1 -1
package/dist-pkg/style.css
CHANGED
|
@@ -226,6 +226,8 @@
|
|
|
226
226
|
--q1-line-height-label-14: 20px;
|
|
227
227
|
--q1-font-size-label-13: 13px;
|
|
228
228
|
--q1-line-height-label-13: 18px;
|
|
229
|
+
--q1-font-size-label-12: 12px;
|
|
230
|
+
--q1-line-height-label-12: 16px;
|
|
229
231
|
--q1-font-size-copy-16: 16px;
|
|
230
232
|
--q1-line-height-copy-16: 28px;
|
|
231
233
|
--q1-font-size-copy-14: 14px;
|
|
@@ -1030,6 +1032,18 @@
|
|
|
1030
1032
|
display: inline-grid;
|
|
1031
1033
|
}
|
|
1032
1034
|
|
|
1035
|
+
/* 槽位里的按钮不画悬停框:通用 .button--icon 悬停会加边框和底色,放在输入框内侧就成了
|
|
1036
|
+
一个几乎等高、贴着右边框的灰框。悬停只把图标从次要色加深到主色;键盘焦点环保持不变。 */
|
|
1037
|
+
.input-control__action .button--ghost.button--icon {
|
|
1038
|
+
color: var(--q1-color-text-secondary);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.input-control__action .button--ghost.button--icon:not(:disabled):not([aria-disabled='true']):hover {
|
|
1042
|
+
border-color: transparent;
|
|
1043
|
+
background: transparent;
|
|
1044
|
+
color: var(--q1-color-text-primary);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1033
1047
|
.input-control__reveal-icon {
|
|
1034
1048
|
grid-area: 1 / 1;
|
|
1035
1049
|
display: inline-flex;
|
|
@@ -6815,8 +6829,8 @@ a.q1-card:focus-visible {
|
|
|
6815
6829
|
}
|
|
6816
6830
|
.pagination__summary {
|
|
6817
6831
|
min-width: 0;
|
|
6818
|
-
font-size:
|
|
6819
|
-
line-height:
|
|
6832
|
+
font-size: var(--q1-font-size-label-12);
|
|
6833
|
+
line-height: var(--q1-line-height-label-12);
|
|
6820
6834
|
color: var(--q1-color-text-secondary);
|
|
6821
6835
|
overflow-wrap: anywhere;
|
|
6822
6836
|
}
|
|
@@ -13018,11 +13032,6 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
13018
13032
|
gap: var(--q1-space-3);
|
|
13019
13033
|
}
|
|
13020
13034
|
|
|
13021
|
-
.feedback__prompt {
|
|
13022
|
-
color: var(--q1-color-text-primary);
|
|
13023
|
-
font-size: var(--q1-font-size-copy-14);
|
|
13024
|
-
}
|
|
13025
|
-
|
|
13026
13035
|
.feedback__emotions {
|
|
13027
13036
|
display: flex;
|
|
13028
13037
|
gap: var(--q1-space-1);
|
|
@@ -13275,8 +13284,7 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
13275
13284
|
|
|
13276
13285
|
.page-feedback__heading,
|
|
13277
13286
|
.page-feedback__options,
|
|
13278
|
-
.page-feedback__actions
|
|
13279
|
-
.page-feedback__consent {
|
|
13287
|
+
.page-feedback__actions {
|
|
13280
13288
|
display: flex;
|
|
13281
13289
|
flex-wrap: wrap;
|
|
13282
13290
|
align-items: center;
|
|
@@ -13323,15 +13331,12 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
13323
13331
|
padding: var(--q1-space-3);
|
|
13324
13332
|
}
|
|
13325
13333
|
|
|
13326
|
-
.page-feedback :is(button, textarea
|
|
13334
|
+
.page-feedback :is(button, textarea):focus-visible {
|
|
13327
13335
|
outline: none;
|
|
13328
13336
|
box-shadow: var(--q1-shadow-focus);
|
|
13329
13337
|
}
|
|
13330
13338
|
|
|
13331
13339
|
.page-feedback__actions { justify-content: flex-end; }
|
|
13332
|
-
.page-feedback__consent label { display: inline-flex; align-items: center; gap: var(--q1-space-2); }
|
|
13333
|
-
.page-feedback__consent input { accent-color: var(--q1-color-text-primary); }
|
|
13334
|
-
.page-feedback__consent a { color: var(--q1-color-text-primary); }
|
|
13335
13340
|
.page-feedback__status { margin: 0; }
|
|
13336
13341
|
.page-feedback__error { color: var(--q1-color-status-danger); }
|
|
13337
13342
|
.page-feedback :disabled { cursor: default; opacity: 0.5; }
|
|
@@ -13344,8 +13349,7 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
13344
13349
|
}
|
|
13345
13350
|
|
|
13346
13351
|
@media (max-width: 48rem), (pointer: coarse), (any-pointer: coarse) {
|
|
13347
|
-
.page-feedback__option
|
|
13348
|
-
.page-feedback__consent label {
|
|
13352
|
+
.page-feedback__option {
|
|
13349
13353
|
min-height: calc(var(--q1-space-10) + var(--q1-space-1));
|
|
13350
13354
|
min-width: calc(var(--q1-space-10) + var(--q1-space-1));
|
|
13351
13355
|
}
|
package/dist-pkg/tokens.css
CHANGED
|
@@ -216,6 +216,8 @@
|
|
|
216
216
|
--q1-line-height-label-14: 20px;
|
|
217
217
|
--q1-font-size-label-13: 13px;
|
|
218
218
|
--q1-line-height-label-13: 18px;
|
|
219
|
+
--q1-font-size-label-12: 12px;
|
|
220
|
+
--q1-line-height-label-12: 16px;
|
|
219
221
|
--q1-font-size-copy-16: 16px;
|
|
220
222
|
--q1-line-height-copy-16: 28px;
|
|
221
223
|
--q1-font-size-copy-14: 14px;
|
|
@@ -510,6 +512,8 @@
|
|
|
510
512
|
--q1-line-height-label-14: 20px;
|
|
511
513
|
--q1-font-size-label-13: 13px;
|
|
512
514
|
--q1-line-height-label-13: 18px;
|
|
515
|
+
--q1-font-size-label-12: 12px;
|
|
516
|
+
--q1-line-height-label-12: 16px;
|
|
513
517
|
--q1-font-size-copy-16: 16px;
|
|
514
518
|
--q1-line-height-copy-16: 28px;
|
|
515
519
|
--q1-font-size-copy-14: 14px;
|