@q1travel/design-system 0.28.0 → 0.29.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/dist-pkg/style.css
CHANGED
|
@@ -1950,15 +1950,6 @@
|
|
|
1950
1950
|
margin: var(--q1-space-1) 0;
|
|
1951
1951
|
background: var(--q1-color-border);
|
|
1952
1952
|
}
|
|
1953
|
-
.menu__shortcut {
|
|
1954
|
-
padding: 1px 6px;
|
|
1955
|
-
border-radius: var(--q1-radius-1);
|
|
1956
|
-
background: color-mix(in srgb, var(--q1-color-text-primary) 8%, transparent);
|
|
1957
|
-
color: var(--q1-color-text-secondary);
|
|
1958
|
-
font-family: var(--q1-font-mono);
|
|
1959
|
-
font-size: 11px;
|
|
1960
|
-
line-height: 1.6;
|
|
1961
|
-
}
|
|
1962
1953
|
@media (pointer: coarse) {
|
|
1963
1954
|
.menu__trigger[data-pressed='true'] {
|
|
1964
1955
|
background: color-mix(in srgb, var(--q1-color-text-primary) 8%, transparent);
|
|
@@ -8967,25 +8958,15 @@ a.q1-card:focus-visible {
|
|
|
8967
8958
|
color: var(--q1-color-text-muted);
|
|
8968
8959
|
background: transparent;
|
|
8969
8960
|
}
|
|
8970
|
-
.modal-btn--primary {
|
|
8971
|
-
border-color: var(--q1-color-action-primary);
|
|
8972
|
-
background: var(--q1-color-action-primary);
|
|
8973
|
-
color: var(--q1-color-action-on-primary);
|
|
8974
|
-
}
|
|
8975
|
-
.modal-btn--primary:hover {
|
|
8976
|
-
background: var(--q1-color-action-primary-hover, var(--q1-color-action-primary));
|
|
8977
|
-
}
|
|
8978
8961
|
/* 禁用主按钮。这是实心 CTA 按钮,
|
|
8979
8962
|
沿用 Input/Select 已建立的「底色抬灰」表单控件禁用配方,而非 Radio 的描边控件配方——
|
|
8980
8963
|
gray-500 实底配 bg-canvas 字在暗色主题对比度不足,bg-subtle + text-muted 双主题都可读。 */
|
|
8981
|
-
.modal-btn--primary:disabled,
|
|
8982
8964
|
.modal-btn--danger:disabled {
|
|
8983
8965
|
border-color: var(--q1-color-border);
|
|
8984
8966
|
background: var(--q1-color-bg-subtle);
|
|
8985
8967
|
color: var(--q1-color-text-muted);
|
|
8986
8968
|
cursor: not-allowed;
|
|
8987
8969
|
}
|
|
8988
|
-
.modal-btn--primary:disabled:hover,
|
|
8989
8970
|
.modal-btn--danger:disabled:hover {
|
|
8990
8971
|
background: var(--q1-color-bg-subtle);
|
|
8991
8972
|
}
|
|
@@ -9864,7 +9845,7 @@ button.q1-navigation__item:not(:disabled),
|
|
|
9864
9845
|
}
|
|
9865
9846
|
|
|
9866
9847
|
.q1-navigation__item--active {
|
|
9867
|
-
background: var(--q1-color-
|
|
9848
|
+
background: var(--q1-color-gray-alpha-200);
|
|
9868
9849
|
color: var(--q1-color-text-primary);
|
|
9869
9850
|
font-weight: var(--q1-font-weight-medium);
|
|
9870
9851
|
}
|
|
@@ -10053,15 +10034,20 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
10053
10034
|
background-color var(--q1-duration-press) var(--q1-ease-state);
|
|
10054
10035
|
}
|
|
10055
10036
|
|
|
10037
|
+
/* 滚动容器内沿用 Table 的内嵌焦点环,避免四边被 overflow 裁切。 */
|
|
10038
|
+
.q1-navigation--horizontal .q1-navigation__item:focus-visible {
|
|
10039
|
+
box-shadow: inset 0 0 0 calc(var(--q1-space-1) / 2) var(--q1-color-focus);
|
|
10040
|
+
}
|
|
10041
|
+
|
|
10056
10042
|
.q1-navigation--horizontal .q1-navigation__item--active {
|
|
10057
|
-
background: var(--q1-color-
|
|
10043
|
+
background: var(--q1-color-gray-alpha-200);
|
|
10058
10044
|
color: var(--q1-color-text-primary);
|
|
10059
10045
|
}
|
|
10060
10046
|
|
|
10061
10047
|
@media (hover: hover) and (pointer: fine) {
|
|
10062
|
-
.q1-navigation__item:hover:not(:active):not([aria-disabled='true']):not(:disabled),
|
|
10048
|
+
.q1-navigation__item:hover:not(.q1-navigation__item--active):not(:active):not([aria-disabled='true']):not(:disabled),
|
|
10063
10049
|
.q1-navigation__group-trigger:hover:not(:active) {
|
|
10064
|
-
background: var(--q1-color-bg-
|
|
10050
|
+
background: var(--q1-color-bg-hover);
|
|
10065
10051
|
}
|
|
10066
10052
|
|
|
10067
10053
|
.q1-navigation__item-row:hover .q1-navigation__item-action {
|
|
@@ -10072,11 +10058,12 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
10072
10058
|
|
|
10073
10059
|
.q1-navigation--horizontal .q1-navigation__item:hover:not(:active):not([aria-disabled='true']):not(:disabled) {
|
|
10074
10060
|
color: var(--q1-color-text-primary);
|
|
10075
|
-
background: var(--q1-color-bg-
|
|
10061
|
+
background: var(--q1-color-bg-hover);
|
|
10076
10062
|
}
|
|
10077
10063
|
|
|
10078
10064
|
.q1-navigation--horizontal .q1-navigation__item--active:hover:not(:active):not([aria-disabled='true']):not(:disabled) {
|
|
10079
10065
|
color: var(--q1-color-text-primary);
|
|
10066
|
+
background: var(--q1-color-gray-alpha-200);
|
|
10080
10067
|
}
|
|
10081
10068
|
}
|
|
10082
10069
|
|
|
@@ -11285,6 +11272,71 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
11285
11272
|
display: none;
|
|
11286
11273
|
}
|
|
11287
11274
|
|
|
11275
|
+
.q1-navigation--line {
|
|
11276
|
+
--q1-navigation-row-min-height: calc(var(--q1-space-10) + var(--q1-space-1));
|
|
11277
|
+
|
|
11278
|
+
scrollbar-width: none;
|
|
11279
|
+
align-items: stretch;
|
|
11280
|
+
gap: var(--q1-space-6);
|
|
11281
|
+
/* 基线不占布局空间,绘于子项下方;滚动时下划线仍压在同一底边。 */
|
|
11282
|
+
box-shadow: inset 0 calc(var(--q1-space-1) / -4) 0 var(--q1-color-border);
|
|
11283
|
+
}
|
|
11284
|
+
|
|
11285
|
+
.q1-navigation--line::-webkit-scrollbar {
|
|
11286
|
+
display: none;
|
|
11287
|
+
}
|
|
11288
|
+
|
|
11289
|
+
.q1-navigation--line .q1-navigation__item {
|
|
11290
|
+
position: relative;
|
|
11291
|
+
border-bottom: calc(var(--q1-space-1) / 2) solid transparent;
|
|
11292
|
+
border-radius: 0;
|
|
11293
|
+
padding: var(--q1-space-3) var(--q1-space-2);
|
|
11294
|
+
background: none;
|
|
11295
|
+
color: var(--q1-color-text-secondary);
|
|
11296
|
+
font-weight: var(--q1-font-weight-regular);
|
|
11297
|
+
transition: color var(--q1-duration-press) var(--q1-ease-state);
|
|
11298
|
+
}
|
|
11299
|
+
|
|
11300
|
+
/* 焦点环仅纵向收进项内,底边与选中下划线保留一档间距。 */
|
|
11301
|
+
.q1-navigation--horizontal.q1-navigation--line .q1-navigation__item:focus-visible {
|
|
11302
|
+
box-shadow: none;
|
|
11303
|
+
}
|
|
11304
|
+
|
|
11305
|
+
.q1-navigation--line .q1-navigation__item:focus-visible::after {
|
|
11306
|
+
content: '';
|
|
11307
|
+
position: absolute;
|
|
11308
|
+
inset: var(--q1-space-1) 0;
|
|
11309
|
+
border-radius: var(--q1-radius-2);
|
|
11310
|
+
box-shadow: inset 0 0 0 calc(var(--q1-space-1) / 2) var(--q1-color-focus);
|
|
11311
|
+
pointer-events: none;
|
|
11312
|
+
}
|
|
11313
|
+
|
|
11314
|
+
.q1-navigation--line .q1-navigation__item:is(.q1-navigation__item--active, [aria-current='page']) {
|
|
11315
|
+
border-bottom-color: var(--q1-color-text-primary);
|
|
11316
|
+
color: var(--q1-color-text-primary);
|
|
11317
|
+
}
|
|
11318
|
+
|
|
11319
|
+
.q1-navigation--line .q1-navigation__item--disabled {
|
|
11320
|
+
color: var(--q1-color-text-muted);
|
|
11321
|
+
}
|
|
11322
|
+
|
|
11323
|
+
@media (hover: hover) and (pointer: fine) {
|
|
11324
|
+
.q1-navigation--horizontal.q1-navigation--line .q1-navigation__item:hover:not(:active):not([aria-disabled='true']):not(:disabled) {
|
|
11325
|
+
background: none;
|
|
11326
|
+
color: var(--q1-color-text-primary);
|
|
11327
|
+
}
|
|
11328
|
+
}
|
|
11329
|
+
|
|
11330
|
+
.q1-navigation--line .q1-navigation__item:active:not([aria-disabled='true']):not(:disabled) {
|
|
11331
|
+
background: none;
|
|
11332
|
+
}
|
|
11333
|
+
|
|
11334
|
+
@media (prefers-reduced-motion: reduce) {
|
|
11335
|
+
.q1-navigation--line .q1-navigation__item {
|
|
11336
|
+
transition: none;
|
|
11337
|
+
}
|
|
11338
|
+
}
|
|
11339
|
+
|
|
11288
11340
|
/* Calendar grid rows, focus treatment, touch targets, and RangeField entrance motion. */
|
|
11289
11341
|
.calendar__weekdays,
|
|
11290
11342
|
.calendar__row {
|