@q1travel/design-system 0.30.3 → 0.30.5
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/contracts/design.dark.md +12 -2
- package/contracts/design.md +12 -2
- package/dist-pkg/design-system.d.ts +58 -4
- package/dist-pkg/design-system.js +4868 -4729
- package/dist-pkg/style.css +414 -4
- package/package.json +1 -1
package/dist-pkg/style.css
CHANGED
|
@@ -3966,6 +3966,73 @@ a[href]:has(> .book):focus-visible {
|
|
|
3966
3966
|
}
|
|
3967
3967
|
}
|
|
3968
3968
|
|
|
3969
|
+
/* 统计卡由内容撑开高度,尺寸档位仅影响默认分段。 */
|
|
3970
|
+
.switch-control--cards {
|
|
3971
|
+
display: grid;
|
|
3972
|
+
/* 10rem 是统计卡可读的最小宽度。 */
|
|
3973
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
|
|
3974
|
+
align-items: stretch;
|
|
3975
|
+
gap: var(--q1-space-2);
|
|
3976
|
+
width: 100%;
|
|
3977
|
+
height: auto;
|
|
3978
|
+
padding: 0;
|
|
3979
|
+
border: 0;
|
|
3980
|
+
background: transparent;
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
.switch-control--cards .switch-control__option-wrapper > .q1-tooltip,
|
|
3984
|
+
.switch-control--cards .switch-control__option,
|
|
3985
|
+
.switch-control--cards .switch-control__visual {
|
|
3986
|
+
width: 100%;
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
.switch-control--cards .switch-control__option {
|
|
3990
|
+
border: calc(var(--q1-space-1) / 4) solid var(--q1-color-border);
|
|
3991
|
+
border-radius: var(--q1-radius-3);
|
|
3992
|
+
background: var(--q1-color-bg-panel);
|
|
3993
|
+
white-space: normal;
|
|
3994
|
+
}
|
|
3995
|
+
|
|
3996
|
+
.switch-control--cards .switch-control__visual {
|
|
3997
|
+
flex-direction: column;
|
|
3998
|
+
align-items: flex-start;
|
|
3999
|
+
justify-content: flex-start;
|
|
4000
|
+
min-height: 0;
|
|
4001
|
+
gap: 0;
|
|
4002
|
+
padding: var(--q1-space-2);
|
|
4003
|
+
border-radius: inherit;
|
|
4004
|
+
text-align: start;
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
.switch-control--cards .switch-control__card-label {
|
|
4008
|
+
color: var(--q1-color-text-secondary);
|
|
4009
|
+
font-size: var(--q1-font-size-label-12);
|
|
4010
|
+
line-height: var(--q1-line-height-label-12);
|
|
4011
|
+
font-weight: var(--q1-font-weight-regular);
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
.switch-control--cards .switch-control__option .switch-control__card-count {
|
|
4015
|
+
color: var(--q1-color-text-primary);
|
|
4016
|
+
font-size: var(--q1-font-size-label-14);
|
|
4017
|
+
line-height: var(--q1-line-height-label-14);
|
|
4018
|
+
font-weight: var(--q1-font-weight-regular);
|
|
4019
|
+
font-variant-numeric: tabular-nums;
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
.switch-control--cards .switch-control__option:disabled {
|
|
4023
|
+
opacity: 1;
|
|
4024
|
+
}
|
|
4025
|
+
|
|
4026
|
+
.switch-control--cards .switch-control__option:disabled :is(.switch-control__card-label, .switch-control__card-count) {
|
|
4027
|
+
color: var(--q1-color-text-muted);
|
|
4028
|
+
}
|
|
4029
|
+
|
|
4030
|
+
@media (hover: hover) and (pointer: fine) {
|
|
4031
|
+
.switch-control--cards .switch-control__option[aria-checked='false']:hover:not(:disabled) {
|
|
4032
|
+
border-color: var(--q1-color-border-strong);
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
|
|
3969
4036
|
.tabs-root {
|
|
3970
4037
|
display: grid;
|
|
3971
4038
|
gap: var(--q1-space-4);
|
|
@@ -5398,6 +5465,33 @@ a[href]:has(> .book):focus-visible {
|
|
|
5398
5465
|
margin-top: var(--q1-space-3);
|
|
5399
5466
|
}
|
|
5400
5467
|
|
|
5468
|
+
.empty-state--inline {
|
|
5469
|
+
flex-direction: row;
|
|
5470
|
+
align-items: center;
|
|
5471
|
+
gap: var(--q1-space-3);
|
|
5472
|
+
max-width: none;
|
|
5473
|
+
padding-block: var(--q1-space-3);
|
|
5474
|
+
padding-inline: var(--q1-table-edge-padding-inline);
|
|
5475
|
+
text-align: start;
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
.empty-state--inline .empty-state__icon {
|
|
5479
|
+
flex-shrink: 0;
|
|
5480
|
+
width: var(--q1-space-6);
|
|
5481
|
+
height: var(--q1-space-6);
|
|
5482
|
+
margin-bottom: 0;
|
|
5483
|
+
border-radius: 0;
|
|
5484
|
+
background: none;
|
|
5485
|
+
color: var(--q1-color-text-muted);
|
|
5486
|
+
}
|
|
5487
|
+
|
|
5488
|
+
.empty-state--inline .empty-state__title {
|
|
5489
|
+
font-size: var(--q1-font-size-copy-14);
|
|
5490
|
+
line-height: var(--q1-line-height-copy-14);
|
|
5491
|
+
font-weight: var(--q1-font-weight-regular);
|
|
5492
|
+
color: var(--q1-color-text-secondary);
|
|
5493
|
+
}
|
|
5494
|
+
|
|
5401
5495
|
/* 外层只负责宽度约束与视觉样式;实际的 head/tail flex 布局交给 __visual——
|
|
5402
5496
|
q1-sr-only 完整文本节点与 __visual 是并列的两个子节点,q1-sr-only 绝对定位不占布局空间。 */
|
|
5403
5497
|
.middle-truncate {
|
|
@@ -6372,9 +6466,11 @@ a.q1-card:focus-visible {
|
|
|
6372
6466
|
padding-right: 72px;
|
|
6373
6467
|
}
|
|
6374
6468
|
|
|
6375
|
-
/*
|
|
6469
|
+
/* SearchInput 可按 Esc 清除;SearchDialog 可按 Esc 关闭或全选删除清空,不另加清除控件。 */
|
|
6376
6470
|
.search-input__field::-webkit-search-cancel-button,
|
|
6377
|
-
.search-
|
|
6471
|
+
.search-dialog__input::-webkit-search-cancel-button,
|
|
6472
|
+
.search-input__field::-webkit-search-decoration,
|
|
6473
|
+
.search-dialog__input::-webkit-search-decoration {
|
|
6378
6474
|
-webkit-appearance: none;
|
|
6379
6475
|
appearance: none;
|
|
6380
6476
|
}
|
|
@@ -11358,6 +11454,18 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
11358
11454
|
}
|
|
11359
11455
|
}
|
|
11360
11456
|
|
|
11457
|
+
@media (forced-colors: active) {
|
|
11458
|
+
.progress__track {
|
|
11459
|
+
border: calc(var(--q1-space-1) / 4) solid CanvasText;
|
|
11460
|
+
background: Canvas;
|
|
11461
|
+
}
|
|
11462
|
+
|
|
11463
|
+
.progress__fill {
|
|
11464
|
+
forced-color-adjust: none;
|
|
11465
|
+
background: Highlight;
|
|
11466
|
+
}
|
|
11467
|
+
}
|
|
11468
|
+
|
|
11361
11469
|
/* Optional SearchDialog content slots. */
|
|
11362
11470
|
.search-dialog__section + .search-dialog__section {
|
|
11363
11471
|
margin-top: var(--q1-space-2);
|
|
@@ -12264,6 +12372,7 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
12264
12372
|
.multi-select__trigger[aria-invalid='true'] { border-color: var(--q1-color-status-danger); box-shadow: var(--q1-shadow-focus-input-danger); }
|
|
12265
12373
|
@media (hover: none), (pointer: coarse), (any-pointer: coarse) {
|
|
12266
12374
|
.multi-combobox__control, .multi-combobox__option, .multi-combobox__remove { min-height: var(--q1-touch-target-min); }
|
|
12375
|
+
.multi-combobox__trigger { inset: calc(var(--q1-space-1) / -4); width: auto; }
|
|
12267
12376
|
.multi-combobox__remove { min-width: var(--q1-touch-target-min); }
|
|
12268
12377
|
.multi-combobox__search { font-size: var(--q1-font-size-copy-16); }
|
|
12269
12378
|
}
|
|
@@ -13794,6 +13903,14 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
13794
13903
|
animation: check-circle-fill-draw var(--q1-duration-press) var(--q1-ease-out) calc(var(--q1-duration-base) - var(--q1-duration-press)) both;
|
|
13795
13904
|
}
|
|
13796
13905
|
|
|
13906
|
+
.check-circle-fill--success > svg {
|
|
13907
|
+
color: oklch(from var(--q1-color-status-success) 0.52 c h);
|
|
13908
|
+
}
|
|
13909
|
+
|
|
13910
|
+
.check-circle-fill--success path {
|
|
13911
|
+
color: var(--q1-color-action-on-primary);
|
|
13912
|
+
}
|
|
13913
|
+
|
|
13797
13914
|
@keyframes check-circle-fill-enter {
|
|
13798
13915
|
from { transform: scale(0.6); opacity: 0; }
|
|
13799
13916
|
to { transform: scale(1); opacity: 1; }
|
|
@@ -13812,16 +13929,97 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
13812
13929
|
}
|
|
13813
13930
|
|
|
13814
13931
|
@media (forced-colors: active) {
|
|
13815
|
-
.check-circle-fill > svg
|
|
13932
|
+
.check-circle-fill > svg,
|
|
13933
|
+
.check-circle-fill--success > svg {
|
|
13816
13934
|
forced-color-adjust: none;
|
|
13817
13935
|
color: CanvasText;
|
|
13818
13936
|
}
|
|
13819
13937
|
|
|
13820
|
-
.check-circle-fill path
|
|
13938
|
+
.check-circle-fill path,
|
|
13939
|
+
.check-circle-fill--success path {
|
|
13821
13940
|
color: Canvas;
|
|
13822
13941
|
}
|
|
13823
13942
|
}
|
|
13824
13943
|
|
|
13944
|
+
.empty-state__illustration {
|
|
13945
|
+
display: grid;
|
|
13946
|
+
place-items: center;
|
|
13947
|
+
max-inline-size: calc(var(--q1-space-6) * 4);
|
|
13948
|
+
margin-block-end: var(--q1-space-2);
|
|
13949
|
+
}
|
|
13950
|
+
|
|
13951
|
+
.empty-list-illustration {
|
|
13952
|
+
position: relative;
|
|
13953
|
+
display: inline-block;
|
|
13954
|
+
inline-size: calc(var(--q1-space-6) * 4);
|
|
13955
|
+
max-inline-size: 100%;
|
|
13956
|
+
aspect-ratio: 96 / 104;
|
|
13957
|
+
}
|
|
13958
|
+
|
|
13959
|
+
.empty-list-illustration > svg {
|
|
13960
|
+
display: block;
|
|
13961
|
+
inline-size: 100%;
|
|
13962
|
+
block-size: 100%;
|
|
13963
|
+
}
|
|
13964
|
+
|
|
13965
|
+
.empty-list-illustration__back {
|
|
13966
|
+
fill: var(--q1-color-primary-200);
|
|
13967
|
+
opacity: 0.5;
|
|
13968
|
+
}
|
|
13969
|
+
|
|
13970
|
+
.empty-list-illustration__card {
|
|
13971
|
+
fill: var(--q1-color-primary-100);
|
|
13972
|
+
}
|
|
13973
|
+
|
|
13974
|
+
.empty-list-illustration__rows {
|
|
13975
|
+
fill: var(--q1-color-primary-300);
|
|
13976
|
+
}
|
|
13977
|
+
|
|
13978
|
+
.empty-list-illustration > .check-circle-fill {
|
|
13979
|
+
position: absolute;
|
|
13980
|
+
inset-inline-end: var(--q1-space-2);
|
|
13981
|
+
inset-block-end: var(--q1-space-1);
|
|
13982
|
+
inline-size: var(--q1-space-5);
|
|
13983
|
+
block-size: var(--q1-space-5);
|
|
13984
|
+
}
|
|
13985
|
+
|
|
13986
|
+
.empty-list-illustration > .check-circle-fill > svg {
|
|
13987
|
+
inline-size: 100%;
|
|
13988
|
+
block-size: 100%;
|
|
13989
|
+
}
|
|
13990
|
+
|
|
13991
|
+
/* 暗色面板上的卡面与列表行分别提高色阶,沿用局部主题边界。 */
|
|
13992
|
+
:is(:root[data-theme='dark'], [data-q1-theme='dark']) .empty-list-illustration__back:not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)) {
|
|
13993
|
+
fill: var(--q1-color-primary-300);
|
|
13994
|
+
}
|
|
13995
|
+
|
|
13996
|
+
:is(:root[data-theme='dark'], [data-q1-theme='dark']) .empty-list-illustration__card:not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)) {
|
|
13997
|
+
fill: var(--q1-color-primary-400);
|
|
13998
|
+
}
|
|
13999
|
+
|
|
14000
|
+
:is(:root[data-theme='dark'], [data-q1-theme='dark']) .empty-list-illustration__rows:not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)) {
|
|
14001
|
+
fill: var(--q1-color-primary-600);
|
|
14002
|
+
}
|
|
14003
|
+
|
|
14004
|
+
@media (forced-colors: active) {
|
|
14005
|
+
.empty-list-illustration > svg {
|
|
14006
|
+
forced-color-adjust: none;
|
|
14007
|
+
}
|
|
14008
|
+
|
|
14009
|
+
.empty-list-illustration__back,
|
|
14010
|
+
.empty-list-illustration__card,
|
|
14011
|
+
:is(:root[data-theme='dark'], [data-q1-theme='dark']) .empty-list-illustration__back:not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)),
|
|
14012
|
+
:is(:root[data-theme='dark'], [data-q1-theme='dark']) .empty-list-illustration__card:not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)) {
|
|
14013
|
+
fill: Canvas;
|
|
14014
|
+
stroke: CanvasText;
|
|
14015
|
+
}
|
|
14016
|
+
|
|
14017
|
+
.empty-list-illustration__rows,
|
|
14018
|
+
:is(:root[data-theme='dark'], [data-q1-theme='dark']) .empty-list-illustration__rows:not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)) {
|
|
14019
|
+
fill: CanvasText;
|
|
14020
|
+
}
|
|
14021
|
+
}
|
|
14022
|
+
|
|
13825
14023
|
/* Private geometry derives from existing spacing; no new consumer token surface. */
|
|
13826
14024
|
.control-option.checkbox-circle {
|
|
13827
14025
|
--checkbox-circle-diameter: calc(var(--q1-space-4) + var(--q1-space-1) / 2);
|
|
@@ -14285,6 +14483,180 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
14285
14483
|
}
|
|
14286
14484
|
}
|
|
14287
14485
|
|
|
14486
|
+
.status-page {
|
|
14487
|
+
min-block-size: 100dvh;
|
|
14488
|
+
box-sizing: border-box;
|
|
14489
|
+
display: flex;
|
|
14490
|
+
align-items: center;
|
|
14491
|
+
justify-content: center;
|
|
14492
|
+
padding: var(--q1-space-6);
|
|
14493
|
+
background: var(--q1-color-bg-canvas);
|
|
14494
|
+
color: var(--q1-color-text-primary);
|
|
14495
|
+
}
|
|
14496
|
+
.status-page__content {
|
|
14497
|
+
inline-size: 100%;
|
|
14498
|
+
max-inline-size: calc(var(--q1-space-16) * 8);
|
|
14499
|
+
text-align: center;
|
|
14500
|
+
}
|
|
14501
|
+
.status-page__title {
|
|
14502
|
+
margin: 0;
|
|
14503
|
+
font-size: var(--q1-font-size-heading-24);
|
|
14504
|
+
line-height: var(--q1-line-height-heading-24);
|
|
14505
|
+
font-weight: var(--q1-font-weight-regular);
|
|
14506
|
+
overflow-wrap: anywhere;
|
|
14507
|
+
}
|
|
14508
|
+
.status-page__illustration { margin-block-start: var(--q1-space-16); }
|
|
14509
|
+
.status-page__description {
|
|
14510
|
+
display: flex;
|
|
14511
|
+
align-items: flex-start;
|
|
14512
|
+
justify-content: center;
|
|
14513
|
+
gap: var(--q1-space-4);
|
|
14514
|
+
margin-block-start: calc(var(--q1-space-10) + var(--q1-space-4));
|
|
14515
|
+
color: var(--q1-color-text-secondary);
|
|
14516
|
+
font-size: var(--q1-font-size-copy-14);
|
|
14517
|
+
line-height: var(--q1-line-height-copy-14);
|
|
14518
|
+
text-align: start;
|
|
14519
|
+
}
|
|
14520
|
+
.status-page__description p { margin: 0; overflow-wrap: anywhere; }
|
|
14521
|
+
.status-page__icon { display: inline-flex; flex: none; }
|
|
14522
|
+
.status-page__actions {
|
|
14523
|
+
display: flex;
|
|
14524
|
+
justify-content: center;
|
|
14525
|
+
flex-wrap: wrap;
|
|
14526
|
+
gap: var(--q1-space-3);
|
|
14527
|
+
margin-block-start: var(--q1-space-6);
|
|
14528
|
+
}
|
|
14529
|
+
.skeleton-illustration {
|
|
14530
|
+
inline-size: min(100%, calc(var(--q1-space-16) * 4 + var(--q1-space-6) * 2));
|
|
14531
|
+
margin-inline: auto;
|
|
14532
|
+
}
|
|
14533
|
+
.skeleton-illustration__row { display: flex; gap: var(--q1-space-1); margin-block-end: var(--q1-space-1-5); }
|
|
14534
|
+
.skeleton-illustration__row[data-indent] > :first-child { margin-inline-start: 10.6%; }
|
|
14535
|
+
.skeleton-illustration__bar {
|
|
14536
|
+
position: relative;
|
|
14537
|
+
display: block;
|
|
14538
|
+
flex: none;
|
|
14539
|
+
block-size: var(--q1-space-2);
|
|
14540
|
+
border-radius: var(--q1-radius-full);
|
|
14541
|
+
overflow: hidden;
|
|
14542
|
+
}
|
|
14543
|
+
/* 五档中性 token 随主题反转:400 为远景;500 为轻段;600 为中段;700 为近段;800 为重段。
|
|
14544
|
+
既有中性阶保留明暗层次,装饰不占用状态色或品牌色。 */
|
|
14545
|
+
.skeleton-illustration__bar--0 { background: var(--q1-color-gray-400); }
|
|
14546
|
+
.skeleton-illustration__bar--1 { background: var(--q1-color-gray-500); }
|
|
14547
|
+
.skeleton-illustration__bar--2 { background: var(--q1-color-gray-600); }
|
|
14548
|
+
.skeleton-illustration__bar--3 { background: var(--q1-color-gray-700); }
|
|
14549
|
+
.skeleton-illustration__bar--4 { background: var(--q1-color-gray-800); }
|
|
14550
|
+
.skeleton-illustration__bar::after {
|
|
14551
|
+
content: '';
|
|
14552
|
+
position: absolute;
|
|
14553
|
+
inset: 0;
|
|
14554
|
+
background: linear-gradient(90deg, transparent, var(--q1-color-gray-100), transparent);
|
|
14555
|
+
transform: translateX(-100%);
|
|
14556
|
+
animation: skeleton-sweep 1.6s var(--q1-ease-in-out) infinite;
|
|
14557
|
+
}
|
|
14558
|
+
.skeleton-illustration__ground {
|
|
14559
|
+
block-size: var(--q1-space-2);
|
|
14560
|
+
margin-block-start: var(--q1-space-3);
|
|
14561
|
+
background: linear-gradient(var(--q1-color-bg-subtle), transparent);
|
|
14562
|
+
}
|
|
14563
|
+
@media (prefers-reduced-motion: reduce) {
|
|
14564
|
+
.skeleton-illustration__bar::after { animation: none; }
|
|
14565
|
+
}
|
|
14566
|
+
|
|
14567
|
+
.status-page--region {
|
|
14568
|
+
min-block-size: auto;
|
|
14569
|
+
padding: var(--q1-space-6);
|
|
14570
|
+
background: transparent;
|
|
14571
|
+
animation: status-page-enter var(--q1-duration-base) var(--q1-ease-out);
|
|
14572
|
+
}
|
|
14573
|
+
.status-page--region .status-page__illustration { margin-block-start: 0; }
|
|
14574
|
+
.status-page--region .status-page__illustration > svg {
|
|
14575
|
+
inline-size: var(--q1-space-6);
|
|
14576
|
+
block-size: var(--q1-space-6);
|
|
14577
|
+
color: var(--q1-color-text-secondary);
|
|
14578
|
+
}
|
|
14579
|
+
.status-page--region .status-page__title {
|
|
14580
|
+
margin-block-start: var(--q1-space-4);
|
|
14581
|
+
font-size: var(--q1-font-size-heading-20);
|
|
14582
|
+
line-height: var(--q1-line-height-heading-20);
|
|
14583
|
+
}
|
|
14584
|
+
.status-page--region .status-page__description {
|
|
14585
|
+
margin-block-start: var(--q1-space-3);
|
|
14586
|
+
text-align: center;
|
|
14587
|
+
}
|
|
14588
|
+
.status-page--region .status-page__actions { margin-block-start: var(--q1-space-4); }
|
|
14589
|
+
@keyframes status-page-enter { from { opacity: 0; } to { opacity: 1; } }
|
|
14590
|
+
@media (prefers-reduced-motion: reduce) {
|
|
14591
|
+
.status-page--region { animation: none; }
|
|
14592
|
+
.status-page--region .skeleton-illustration__bar::after { animation: none; }
|
|
14593
|
+
}
|
|
14594
|
+
|
|
14595
|
+
.aspect-ratio {
|
|
14596
|
+
position: relative;
|
|
14597
|
+
inline-size: 100%;
|
|
14598
|
+
min-inline-size: 0;
|
|
14599
|
+
}
|
|
14600
|
+
.aspect-ratio > * {
|
|
14601
|
+
position: absolute;
|
|
14602
|
+
inset: 0;
|
|
14603
|
+
inline-size: 100%;
|
|
14604
|
+
block-size: 100%;
|
|
14605
|
+
}
|
|
14606
|
+
|
|
14607
|
+
.image {
|
|
14608
|
+
position: relative;
|
|
14609
|
+
display: grid;
|
|
14610
|
+
place-items: center;
|
|
14611
|
+
box-sizing: border-box;
|
|
14612
|
+
inline-size: 100%;
|
|
14613
|
+
min-inline-size: 0;
|
|
14614
|
+
overflow: hidden;
|
|
14615
|
+
border: calc(var(--q1-space-1) / 4) solid var(--q1-color-border);
|
|
14616
|
+
border-radius: var(--q1-radius-2);
|
|
14617
|
+
background: var(--q1-color-bg-subtle);
|
|
14618
|
+
color: var(--q1-color-text-secondary);
|
|
14619
|
+
}
|
|
14620
|
+
.image[data-size='sm'] { inline-size: var(--q1-space-8); block-size: var(--q1-space-8); }
|
|
14621
|
+
.image[data-size='md'] { inline-size: var(--q1-control-height-default); block-size: var(--q1-control-height-default); }
|
|
14622
|
+
.image[data-size='lg'] { inline-size: calc(var(--q1-space-6) * 2); block-size: calc(var(--q1-space-6) * 2); }
|
|
14623
|
+
.image__img {
|
|
14624
|
+
display: block;
|
|
14625
|
+
inline-size: 100%;
|
|
14626
|
+
block-size: auto;
|
|
14627
|
+
min-inline-size: 0;
|
|
14628
|
+
min-block-size: 0;
|
|
14629
|
+
object-fit: contain;
|
|
14630
|
+
object-position: center;
|
|
14631
|
+
}
|
|
14632
|
+
.image[data-fit='cover'] > .image__img { object-fit: cover; }
|
|
14633
|
+
.image[data-size] > .image__img,
|
|
14634
|
+
.aspect-ratio > .image > .image__img { block-size: 100%; }
|
|
14635
|
+
.image[data-state='loading'] > .image__img,
|
|
14636
|
+
.image[data-state='error'] > .image__img { visibility: hidden; }
|
|
14637
|
+
.image[data-state='loading']:not([data-size]),
|
|
14638
|
+
.image[data-state='empty']:not([data-size]),
|
|
14639
|
+
.image[data-state='error']:not([data-size]) { min-block-size: var(--q1-control-height-default); }
|
|
14640
|
+
.image__skeleton {
|
|
14641
|
+
position: absolute;
|
|
14642
|
+
inset: 0;
|
|
14643
|
+
inline-size: 100%;
|
|
14644
|
+
block-size: 100%;
|
|
14645
|
+
border-radius: inherit;
|
|
14646
|
+
}
|
|
14647
|
+
.image__fallback {
|
|
14648
|
+
grid-area: 1 / 1;
|
|
14649
|
+
max-inline-size: 100%;
|
|
14650
|
+
font-size: var(--q1-font-size-label-12);
|
|
14651
|
+
line-height: var(--q1-line-height-label-12);
|
|
14652
|
+
text-align: center;
|
|
14653
|
+
overflow-wrap: anywhere;
|
|
14654
|
+
}
|
|
14655
|
+
.image[data-state='error'] > .image__img { grid-area: 1 / 1; }
|
|
14656
|
+
@media (forced-colors: active) {
|
|
14657
|
+
.image { border-color: CanvasText; color: CanvasText; }
|
|
14658
|
+
}
|
|
14659
|
+
|
|
14288
14660
|
.hover-card-trigger { display: inline-flex; }
|
|
14289
14661
|
.hover-card {
|
|
14290
14662
|
max-width: min(calc(100vw - var(--q1-space-6)), calc(var(--q1-space-8) * 9));
|
|
@@ -15111,3 +15483,41 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
15111
15483
|
):not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)) {
|
|
15112
15484
|
background: var(--q1-color-bg-raised);
|
|
15113
15485
|
}
|
|
15486
|
+
|
|
15487
|
+
/* 统计卡是唯一品牌色选中描边例外:无浅底,数字保持最高文字对比。 */
|
|
15488
|
+
.switch-control--cards .switch-control__visual,
|
|
15489
|
+
.switch-control--cards .switch-control__option[aria-checked='true'] .switch-control__visual,
|
|
15490
|
+
:is(:root[data-theme='dark'], [data-q1-theme='dark']) .switch-control--cards .switch-control__option[aria-checked='true']:not(:focus-visible) .switch-control__visual {
|
|
15491
|
+
box-shadow: none;
|
|
15492
|
+
background: transparent;
|
|
15493
|
+
}
|
|
15494
|
+
|
|
15495
|
+
/* 选中标签与选中描边同色,暗色取高亮品牌阶以保证文字对比 */
|
|
15496
|
+
.switch-control--cards .switch-control__option[aria-checked='true'] {
|
|
15497
|
+
border-color: var(--q1-color-border-active);
|
|
15498
|
+
box-shadow: inset 0 0 0 calc(var(--q1-space-1) / 4) var(--q1-color-border-active);
|
|
15499
|
+
}
|
|
15500
|
+
|
|
15501
|
+
.switch-control--cards .switch-control__option[aria-checked='true']:not(:disabled) .switch-control__card-label {
|
|
15502
|
+
color: var(--q1-color-border-active);
|
|
15503
|
+
}
|
|
15504
|
+
|
|
15505
|
+
.switch-control--cards .switch-control__option[aria-checked='true']:focus-visible {
|
|
15506
|
+
box-shadow: inset 0 0 0 calc(var(--q1-space-1) / 4) var(--q1-color-border-active), var(--q1-shadow-focus);
|
|
15507
|
+
}
|
|
15508
|
+
|
|
15509
|
+
.switch-control--cards .switch-control__option[aria-checked='true']:disabled {
|
|
15510
|
+
border-color: var(--q1-color-border-strong);
|
|
15511
|
+
box-shadow: inset 0 0 0 calc(var(--q1-space-1) / 4) var(--q1-color-border-strong);
|
|
15512
|
+
}
|
|
15513
|
+
|
|
15514
|
+
@media (forced-colors: active) {
|
|
15515
|
+
.switch-control--cards .switch-control__option[aria-checked='true'] {
|
|
15516
|
+
outline: calc(var(--q1-space-1) / 2) solid Highlight;
|
|
15517
|
+
outline-offset: calc(var(--q1-space-1) / -4);
|
|
15518
|
+
}
|
|
15519
|
+
|
|
15520
|
+
.switch-control--cards .switch-control__option[aria-checked='true']:disabled {
|
|
15521
|
+
outline-color: GrayText;
|
|
15522
|
+
}
|
|
15523
|
+
}
|