@ebay/skin 19.8.1 → 19.10.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/card.browser.json +1 -0
- package/card.css +1 -0
- package/card.js +1 -0
- package/card.mjs +1 -0
- package/dist/bundles/skin-default.css +372 -41
- package/dist/bundles/skin-full.css +372 -41
- package/dist/bundles/skin-headless.css +368 -37
- package/dist/card/card.css +163 -0
- package/dist/chip/chip.css +16 -13
- package/dist/filter-chip/filter-chip.css +147 -0
- package/dist/lightbox-dialog/lightbox-dialog.css +7 -2
- package/dist/mixins/_animation-mixins.scss +41 -0
- package/dist/selection-chip/selection-chip.css +76 -0
- package/dist/svg/icon/icon-ebay-balance-12-colored.svg +1 -0
- package/dist/svg/icon/icon-ebay-balance-18-colored.svg +1 -0
- package/dist/svg/icon/icon-ebay-balance-24-colored.svg +1 -0
- package/dist/svg/icon/icon-ebay-balance-32-colored.svg +1 -0
- package/dist/svg/icons.svg +4 -0
- package/filter-chip.browser.json +1 -0
- package/filter-chip.css +1 -0
- package/filter-chip.js +1 -0
- package/filter-chip.mjs +1 -0
- package/index.browser.json +3 -0
- package/index.css +3 -0
- package/index.js +3 -0
- package/index.mjs +3 -0
- package/package.json +1 -1
- package/selection-chip.browser.json +1 -0
- package/selection-chip.css +1 -0
- package/selection-chip.js +1 -0
- package/selection-chip.mjs +1 -0
|
@@ -177,28 +177,6 @@ a:not([href]),a[aria-disabled=true]{
|
|
|
177
177
|
border-right-style:inset;
|
|
178
178
|
box-shadow:none;
|
|
179
179
|
}
|
|
180
|
-
@keyframes chevron-bounce-open{
|
|
181
|
-
0%{
|
|
182
|
-
transform:translateY(0);
|
|
183
|
-
}
|
|
184
|
-
50%{
|
|
185
|
-
transform:translateY(-7px);
|
|
186
|
-
}
|
|
187
|
-
to{
|
|
188
|
-
transform:translateY(0);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
@keyframes chevron-bounce-close{
|
|
192
|
-
0%{
|
|
193
|
-
transform:translateY(0);
|
|
194
|
-
}
|
|
195
|
-
50%{
|
|
196
|
-
transform:translateY(7px);
|
|
197
|
-
}
|
|
198
|
-
to{
|
|
199
|
-
transform:translateY(0);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
180
|
ul.accordion{
|
|
203
181
|
margin:0;
|
|
204
182
|
padding:0;
|
|
@@ -1126,6 +1104,161 @@ button.btn--floating-label .btn__floating-label--inline{
|
|
|
1126
1104
|
border-left-color:var(--btn-primary-border-color, var(--color-stroke-accent));
|
|
1127
1105
|
border-right-color:var(--primary-border-split-color, var(--color-stroke-subtle));
|
|
1128
1106
|
}
|
|
1107
|
+
|
|
1108
|
+
.card{
|
|
1109
|
+
background-color:var(--color-background-secondary);
|
|
1110
|
+
border:none;
|
|
1111
|
+
border-radius:var(--border-radius-150);
|
|
1112
|
+
color:var(--color-foreground-primary);
|
|
1113
|
+
display:flex;
|
|
1114
|
+
flex-direction:column;
|
|
1115
|
+
max-width:400px;
|
|
1116
|
+
min-width:200px;
|
|
1117
|
+
outline:6px solid transparent;
|
|
1118
|
+
outline-offset:4px;
|
|
1119
|
+
padding-block-end:var(--spacing-150);
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.card--outlined{
|
|
1123
|
+
background-color:inherit;
|
|
1124
|
+
border:1px solid var(--color-stroke-subtle);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
a.card{
|
|
1128
|
+
color:inherit;
|
|
1129
|
+
text-decoration:none;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
button.card{
|
|
1133
|
+
font-size:inherit;
|
|
1134
|
+
line-height:inherit;
|
|
1135
|
+
padding:0;
|
|
1136
|
+
padding-block-end:var(--spacing-150);
|
|
1137
|
+
text-align:start;
|
|
1138
|
+
transition:transform var(--motion-duration-medium-3) var(--motion-easing-quick-enter), box-shadow var(--motion-duration-medium-3) var(--motion-easing-quick-enter);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
.card[disabled],.card[href=""]{
|
|
1142
|
+
filter:grayscale(1);
|
|
1143
|
+
opacity:.5;
|
|
1144
|
+
pointer-events:none;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
button.card:hover{
|
|
1148
|
+
cursor:pointer;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.card:hover .card__hero-image{
|
|
1152
|
+
transform:scale3d(1.01, 1.01, 1);
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.card:focus-visible{
|
|
1156
|
+
animation:card-focus-animation var(--motion-duration-short-3) var(--motion-easing-quick-enter) forwards;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.card__media{
|
|
1160
|
+
aspect-ratio:1/1;
|
|
1161
|
+
margin:var(--spacing-150);
|
|
1162
|
+
margin-block-end:var(--spacing-200);
|
|
1163
|
+
overflow:hidden;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.card__hero-image,.card__media{
|
|
1167
|
+
border-radius:var(--border-radius-100);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
.card__hero-image{
|
|
1171
|
+
display:block;
|
|
1172
|
+
height:100%;
|
|
1173
|
+
object-fit:cover;
|
|
1174
|
+
transition:transform var(--motion-duration-long-3) var(--motion-easing-quick-enter);
|
|
1175
|
+
width:100%;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.card--full-hero .card__hero-image,.card--full-hero .card__media{
|
|
1179
|
+
border-bottom-left-radius:0;
|
|
1180
|
+
border-bottom-right-radius:0;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.card__main{
|
|
1184
|
+
display:flex;
|
|
1185
|
+
flex:1;
|
|
1186
|
+
flex-direction:column;
|
|
1187
|
+
margin-inline:var(--spacing-150);
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.card__overline{
|
|
1191
|
+
align-items:center;
|
|
1192
|
+
display:flex;
|
|
1193
|
+
font-weight:700;
|
|
1194
|
+
gap:var(--spacing-100);
|
|
1195
|
+
margin-block-end:var(--spacing-100);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.card__title{
|
|
1199
|
+
font-size:var(--font-size-large-1);
|
|
1200
|
+
font-weight:700;
|
|
1201
|
+
margin:0;
|
|
1202
|
+
margin-block-end:var(--spacing-50);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.card__description{
|
|
1206
|
+
flex:1;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
.card__action{
|
|
1210
|
+
margin-block-start:var(--spacing-200);
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.card--horizontal{
|
|
1214
|
+
flex-direction:row;
|
|
1215
|
+
max-width:100%;
|
|
1216
|
+
width:100%;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.card--horizontal .card__media{
|
|
1220
|
+
aspect-ratio:1/1;
|
|
1221
|
+
margin-block-end:0;
|
|
1222
|
+
max-width:160px;
|
|
1223
|
+
min-width:90px;
|
|
1224
|
+
width:25%;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
.card--horizontal .card__hero-image{
|
|
1228
|
+
aspect-ratio:1/1;
|
|
1229
|
+
height:auto;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
.card--horizontal .card__main{
|
|
1233
|
+
margin-block-start:var(--spacing-150);
|
|
1234
|
+
margin-inline-start:0;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.card--full-hero .card__media{
|
|
1238
|
+
margin:0;
|
|
1239
|
+
margin-block-end:var(--spacing-200);
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.card--aspect-5-4 .card__media{
|
|
1243
|
+
aspect-ratio:5/4;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.card--aspect-16-9 .card__media{
|
|
1247
|
+
aspect-ratio:16/9;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
@keyframes card-focus-animation{
|
|
1251
|
+
0%{
|
|
1252
|
+
outline-color:var(--color-stroke-accent);
|
|
1253
|
+
outline-offset:4px;
|
|
1254
|
+
outline-width:6px;
|
|
1255
|
+
}
|
|
1256
|
+
to{
|
|
1257
|
+
outline-color:var(--color-stroke-accent);
|
|
1258
|
+
outline-offset:0;
|
|
1259
|
+
outline-width:2px;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1129
1262
|
.carousel{
|
|
1130
1263
|
position:relative;
|
|
1131
1264
|
}
|
|
@@ -1735,17 +1868,20 @@ input.checkbox__control[type=checkbox]:focus:not(:focus-visible)+span.checkbox__
|
|
|
1735
1868
|
}
|
|
1736
1869
|
.chip{
|
|
1737
1870
|
align-items:center;
|
|
1738
|
-
background-color:var(--color-background-
|
|
1739
|
-
border-radius:var(--
|
|
1740
|
-
|
|
1871
|
+
background-color:var(--color-background-strong);
|
|
1872
|
+
border-radius:var(--border-radius-50);
|
|
1873
|
+
box-sizing:border-box;
|
|
1874
|
+
color:var(--color-foreground-on-strong);
|
|
1741
1875
|
display:inline-flex;
|
|
1742
1876
|
font-size:var(--font-size-default);
|
|
1743
|
-
gap:
|
|
1877
|
+
gap:var(--spacing-75);
|
|
1878
|
+
height:var(--spacing-400);
|
|
1744
1879
|
justify-content:space-between;
|
|
1745
1880
|
max-width:296px;
|
|
1746
|
-
min-height:var(--spacing-250);
|
|
1747
1881
|
min-width:32px;
|
|
1748
1882
|
padding:0 var(--spacing-150);
|
|
1883
|
+
text-decoration:none;
|
|
1884
|
+
vertical-align:bottom;
|
|
1749
1885
|
}
|
|
1750
1886
|
|
|
1751
1887
|
.chip__text{
|
|
@@ -1755,34 +1891,34 @@ input.checkbox__control[type=checkbox]:focus:not(:focus-visible)+span.checkbox__
|
|
|
1755
1891
|
white-space:nowrap;
|
|
1756
1892
|
}
|
|
1757
1893
|
|
|
1758
|
-
button.chip__button{
|
|
1894
|
+
.chip button.chip__button{
|
|
1895
|
+
align-items:center;
|
|
1759
1896
|
background-color:initial;
|
|
1760
1897
|
border:none;
|
|
1761
1898
|
border-radius:50px;
|
|
1762
1899
|
box-sizing:border-box;
|
|
1900
|
+
color:var(--color-foreground-on-strong);
|
|
1901
|
+
display:flex;
|
|
1763
1902
|
flex-shrink:0;
|
|
1764
1903
|
height:var(--spacing-300);
|
|
1904
|
+
justify-content:center;
|
|
1765
1905
|
line-height:0;
|
|
1766
1906
|
margin-inline-end:-8px;
|
|
1767
1907
|
padding:0;
|
|
1768
1908
|
width:var(--spacing-300);
|
|
1769
1909
|
}
|
|
1770
1910
|
|
|
1771
|
-
button.chip__button:focus-visible{
|
|
1911
|
+
.chip button.chip__button:focus-visible{
|
|
1772
1912
|
background-color:var(--state-layer-focus);
|
|
1773
|
-
outline-color:var(--color-
|
|
1913
|
+
outline-color:var(--color-foreground-on-strong);
|
|
1774
1914
|
outline-offset:-2px;
|
|
1775
1915
|
outline-style:solid;
|
|
1776
1916
|
outline-width:2px;
|
|
1777
1917
|
}
|
|
1778
1918
|
|
|
1779
|
-
button.chip__button:hover{
|
|
1919
|
+
.chip button.chip__button:hover{
|
|
1780
1920
|
background-color:var(--state-layer-hover);
|
|
1781
1921
|
}
|
|
1782
|
-
|
|
1783
|
-
button.chip__button>svg{
|
|
1784
|
-
fill:var(--color-foreground-on-primary);
|
|
1785
|
-
}
|
|
1786
1922
|
.chips-combobox{
|
|
1787
1923
|
background-color:var(--color-background-secondary);
|
|
1788
1924
|
border:1px solid var(--color-stroke-default);
|
|
@@ -3485,6 +3621,128 @@ a.filter-link--selected:not([href]):hover,a.filter-link--selected[aria-disabled=
|
|
|
3485
3621
|
a.filter-link:focus:not(:focus-visible),button.filter-button:focus:not(:focus-visible){
|
|
3486
3622
|
outline:none;
|
|
3487
3623
|
}
|
|
3624
|
+
@keyframes chevron-bounce-open{
|
|
3625
|
+
0%{
|
|
3626
|
+
transform:translateY(0);
|
|
3627
|
+
}
|
|
3628
|
+
50%{
|
|
3629
|
+
transform:translateY(-7px);
|
|
3630
|
+
}
|
|
3631
|
+
to{
|
|
3632
|
+
transform:translateY(0);
|
|
3633
|
+
}
|
|
3634
|
+
}
|
|
3635
|
+
@keyframes chevron-bounce-close{
|
|
3636
|
+
0%{
|
|
3637
|
+
transform:translateY(0);
|
|
3638
|
+
}
|
|
3639
|
+
50%{
|
|
3640
|
+
transform:translateY(7px);
|
|
3641
|
+
}
|
|
3642
|
+
to{
|
|
3643
|
+
transform:translateY(0);
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
a.filter-chip,button.filter-chip{
|
|
3647
|
+
align-items:center;
|
|
3648
|
+
background-color:var(--color-background-primary);
|
|
3649
|
+
background-position:50%;
|
|
3650
|
+
background-repeat:no-repeat;
|
|
3651
|
+
background-size:0 100%;
|
|
3652
|
+
border:1px solid var(--color-stroke-default);
|
|
3653
|
+
border-radius:var(--border-radius-100);
|
|
3654
|
+
box-shadow:none;
|
|
3655
|
+
box-sizing:border-box;
|
|
3656
|
+
color:var(--color-foreground-primary);
|
|
3657
|
+
display:inline-flex;
|
|
3658
|
+
font-size:var(--font-size-default);
|
|
3659
|
+
gap:var(--spacing-75);
|
|
3660
|
+
height:var(--spacing-400);
|
|
3661
|
+
justify-content:space-between;
|
|
3662
|
+
max-width:296px;
|
|
3663
|
+
min-width:32px;
|
|
3664
|
+
padding:0 var(--spacing-150);
|
|
3665
|
+
text-decoration:none;
|
|
3666
|
+
transition:all var(--motion-duration-short-3) var(--motion-easing-quick-enter);
|
|
3667
|
+
vertical-align:bottom;
|
|
3668
|
+
}
|
|
3669
|
+
a.filter-chip:active,button.filter-chip:active{
|
|
3670
|
+
transform:scale(.97);
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
a.filter-chip--expressive,button.filter-chip--expressive{
|
|
3674
|
+
border-radius:var(--border-radius-150);
|
|
3675
|
+
height:40px;
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
.filter-chip__media{
|
|
3679
|
+
align-items:center;
|
|
3680
|
+
border-radius:8px;
|
|
3681
|
+
border-radius:var(--spacing-400);
|
|
3682
|
+
display:flex;
|
|
3683
|
+
justify-content:center;
|
|
3684
|
+
margin-inline-start:-8px;
|
|
3685
|
+
overflow:hidden;
|
|
3686
|
+
position:relative;
|
|
3687
|
+
}
|
|
3688
|
+
.filter-chip__media:after{
|
|
3689
|
+
background:rgba(0, 0, 0, .05);
|
|
3690
|
+
bottom:0;
|
|
3691
|
+
content:"";
|
|
3692
|
+
display:block;
|
|
3693
|
+
left:0;
|
|
3694
|
+
pointer-events:none;
|
|
3695
|
+
position:absolute;
|
|
3696
|
+
right:0;
|
|
3697
|
+
top:0;
|
|
3698
|
+
}
|
|
3699
|
+
.filter-chip__media>img{
|
|
3700
|
+
display:inline-block;
|
|
3701
|
+
height:var(--spacing-400);
|
|
3702
|
+
max-height:100%;
|
|
3703
|
+
max-width:100%;
|
|
3704
|
+
object-fit:contain;
|
|
3705
|
+
object-fit:cover;
|
|
3706
|
+
width:var(--spacing-400);
|
|
3707
|
+
}
|
|
3708
|
+
|
|
3709
|
+
a.filter-chip--selected,button.filter-chip[aria-pressed=true]{
|
|
3710
|
+
animation:fill-horizontal-background 0s var(--motion-easing-quick-enter) forwards;
|
|
3711
|
+
background-image:linear-gradient(to right, var(--color-background-strong) 0, var(--color-background-strong) 100%);
|
|
3712
|
+
color:var(--color-foreground-on-strong);
|
|
3713
|
+
}
|
|
3714
|
+
|
|
3715
|
+
button.filter-chip--animated[aria-pressed=true]{
|
|
3716
|
+
animation-duration:var(--motion-duration-medium-2);
|
|
3717
|
+
transition:color var(--motion-duration-instant) var(--motion-easing-standard);
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
button.filter-chip[aria-expanded=false]:active .filter-chip__trailing{
|
|
3721
|
+
animation:chevron-bounce-close var(--motion-duration-medium-1) var(--motion-easing-standard);
|
|
3722
|
+
rotate:180deg;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
button.filter-chip[aria-expanded=false] .filter-chip__trailing{
|
|
3726
|
+
rotate:0deg;
|
|
3727
|
+
transition:none;
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3730
|
+
button.filter-chip[aria-expanded=true]:active .filter-chip__trailing{
|
|
3731
|
+
animation:chevron-bounce-open var(--motion-duration-medium-1) var(--motion-easing-standard) var(--motion-duration-short-1);
|
|
3732
|
+
rotate:0deg;
|
|
3733
|
+
}
|
|
3734
|
+
|
|
3735
|
+
button.filter-chip[aria-expanded=true] .filter-chip__trailing{
|
|
3736
|
+
rotate:180deg;
|
|
3737
|
+
transition:none;
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
.filter-chip__text{
|
|
3741
|
+
overflow:hidden;
|
|
3742
|
+
padding:var(--spacing-75) 0;
|
|
3743
|
+
text-overflow:ellipsis;
|
|
3744
|
+
white-space:nowrap;
|
|
3745
|
+
}
|
|
3488
3746
|
|
|
3489
3747
|
.filter-input{
|
|
3490
3748
|
display:inline-block;
|
|
@@ -7019,7 +7277,7 @@ button.icon-btn.lightbox-dialog__prev{
|
|
|
7019
7277
|
.lightbox-dialog__window{
|
|
7020
7278
|
border-radius:var(--lightbox-border-radius, var(--border-radius-100));
|
|
7021
7279
|
margin:auto;
|
|
7022
|
-
max-width:
|
|
7280
|
+
max-width:88%;
|
|
7023
7281
|
}
|
|
7024
7282
|
.lightbox-dialog--narrow .lightbox-dialog__window{
|
|
7025
7283
|
max-width:var(--dialog-lightbox-narrow-max-width);
|
|
@@ -7049,7 +7307,7 @@ button.icon-btn.lightbox-dialog__prev{
|
|
|
7049
7307
|
max-width:var(--dialog-lightbox-max-width);
|
|
7050
7308
|
}
|
|
7051
7309
|
.lightbox-dialog--wide .lightbox-dialog__window{
|
|
7052
|
-
max-width:
|
|
7310
|
+
max-width:88%;
|
|
7053
7311
|
}
|
|
7054
7312
|
.lightbox-dialog--wide .lightbox-dialog__image{
|
|
7055
7313
|
height:256px;
|
|
@@ -7058,6 +7316,11 @@ button.icon-btn.lightbox-dialog__prev{
|
|
|
7058
7316
|
margin-top:256px;
|
|
7059
7317
|
}
|
|
7060
7318
|
}
|
|
7319
|
+
@media (min-width:1024px){
|
|
7320
|
+
.lightbox-dialog--wide .lightbox-dialog__window{
|
|
7321
|
+
max-width:var(--dialog-lightbox-wide-max-width);
|
|
7322
|
+
}
|
|
7323
|
+
}
|
|
7061
7324
|
a.nav-link,a.standalone-link{
|
|
7062
7325
|
color:var(--nav-link-foreground-color, var(--color-foreground-link-primary));
|
|
7063
7326
|
text-decoration:none;
|
|
@@ -9608,6 +9871,74 @@ span.select{
|
|
|
9608
9871
|
left:0;
|
|
9609
9872
|
right:auto;
|
|
9610
9873
|
}
|
|
9874
|
+
@keyframes fill-horizontal-background{
|
|
9875
|
+
0%{
|
|
9876
|
+
background-size:0 100%;
|
|
9877
|
+
}
|
|
9878
|
+
99%{
|
|
9879
|
+
background-color:var(--color-background-primary);
|
|
9880
|
+
}
|
|
9881
|
+
to{
|
|
9882
|
+
background-color:var(--color-background-strong);
|
|
9883
|
+
background-size:100% 100%;
|
|
9884
|
+
}
|
|
9885
|
+
}
|
|
9886
|
+
.selection-chip{
|
|
9887
|
+
align-items:center;
|
|
9888
|
+
background-color:var(--color-background-primary);
|
|
9889
|
+
background-position:50%;
|
|
9890
|
+
background-repeat:no-repeat;
|
|
9891
|
+
background-size:0 100%;
|
|
9892
|
+
border:1px solid var(--color-stroke-default);
|
|
9893
|
+
border-radius:var(--border-radius-50);
|
|
9894
|
+
box-shadow:none;
|
|
9895
|
+
box-sizing:border-box;
|
|
9896
|
+
color:var(--color-foreground-primary);
|
|
9897
|
+
display:inline-flex;
|
|
9898
|
+
font-size:var(--font-size-default);
|
|
9899
|
+
gap:var(--spacing-75);
|
|
9900
|
+
height:var(--spacing-400);
|
|
9901
|
+
justify-content:space-between;
|
|
9902
|
+
max-width:296px;
|
|
9903
|
+
min-width:32px;
|
|
9904
|
+
padding:0 var(--spacing-150);
|
|
9905
|
+
text-decoration:none;
|
|
9906
|
+
transition:all var(--motion-duration-short-3) var(--motion-easing-quick-enter);
|
|
9907
|
+
vertical-align:bottom;
|
|
9908
|
+
}
|
|
9909
|
+
.selection-chip:active{
|
|
9910
|
+
transform:scale(.97);
|
|
9911
|
+
}
|
|
9912
|
+
|
|
9913
|
+
.selection-chip--animated .selection-chip__trailing{
|
|
9914
|
+
transition:rotate var(--motion-duration-medium-3) var(--motion-easing-standard);
|
|
9915
|
+
}
|
|
9916
|
+
|
|
9917
|
+
.selection-chip__trailing{
|
|
9918
|
+
rotate:-225deg;
|
|
9919
|
+
}
|
|
9920
|
+
|
|
9921
|
+
.selection-chip[aria-pressed=true]{
|
|
9922
|
+
animation:fill-horizontal-background 0s var(--motion-easing-quick-enter) forwards;
|
|
9923
|
+
background-image:linear-gradient(to right, var(--color-background-strong) 0, var(--color-background-strong) 100%);
|
|
9924
|
+
color:var(--color-foreground-on-strong);
|
|
9925
|
+
}
|
|
9926
|
+
|
|
9927
|
+
.selection-chip--animated[aria-pressed=true]{
|
|
9928
|
+
animation-duration:var(--motion-duration-medium-2);
|
|
9929
|
+
transition:color var(--motion-duration-instant) var(--motion-easing-standard);
|
|
9930
|
+
}
|
|
9931
|
+
|
|
9932
|
+
.selection-chip[aria-pressed=true] .selection-chip__trailing{
|
|
9933
|
+
rotate:0deg;
|
|
9934
|
+
}
|
|
9935
|
+
|
|
9936
|
+
.selection-chip__text{
|
|
9937
|
+
overflow:hidden;
|
|
9938
|
+
padding:var(--spacing-75) 0;
|
|
9939
|
+
text-overflow:ellipsis;
|
|
9940
|
+
white-space:nowrap;
|
|
9941
|
+
}
|
|
9611
9942
|
@keyframes skeleton-fade-out{
|
|
9612
9943
|
0%{
|
|
9613
9944
|
opacity:1;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
background-color: var(--color-background-secondary);
|
|
3
|
+
border: none;
|
|
4
|
+
border-radius: var(--border-radius-150);
|
|
5
|
+
color: var(--color-foreground-primary);
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
max-width: 400px;
|
|
9
|
+
min-width: 200px;
|
|
10
|
+
outline: 6px solid transparent;
|
|
11
|
+
outline-offset: 4px;
|
|
12
|
+
padding-block-end: var(--spacing-150);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.card--outlined {
|
|
16
|
+
background-color: inherit;
|
|
17
|
+
border: 1px solid var(--color-stroke-subtle);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
a.card {
|
|
21
|
+
color: inherit;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
button.card {
|
|
26
|
+
font-size: inherit;
|
|
27
|
+
line-height: inherit;
|
|
28
|
+
padding: 0;
|
|
29
|
+
padding-block-end: var(--spacing-150);
|
|
30
|
+
text-align: start;
|
|
31
|
+
transition:
|
|
32
|
+
transform var(--motion-duration-medium-3)
|
|
33
|
+
var(--motion-easing-quick-enter),
|
|
34
|
+
box-shadow var(--motion-duration-medium-3)
|
|
35
|
+
var(--motion-easing-quick-enter);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.card[disabled],
|
|
39
|
+
.card[href=""] {
|
|
40
|
+
filter: grayscale(1);
|
|
41
|
+
opacity: 0.5;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
button.card:hover {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.card:hover .card__hero-image {
|
|
50
|
+
transform: scale3d(1.01, 1.01, 1);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.card:focus-visible {
|
|
54
|
+
animation: card-focus-animation var(--motion-duration-short-3)
|
|
55
|
+
var(--motion-easing-quick-enter) forwards;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.card__media {
|
|
59
|
+
aspect-ratio: 1/1;
|
|
60
|
+
margin: var(--spacing-150);
|
|
61
|
+
margin-block-end: var(--spacing-200);
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.card__hero-image,
|
|
66
|
+
.card__media {
|
|
67
|
+
border-radius: var(--border-radius-100);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.card__hero-image {
|
|
71
|
+
display: block;
|
|
72
|
+
height: 100%;
|
|
73
|
+
object-fit: cover;
|
|
74
|
+
transition: transform var(--motion-duration-long-3)
|
|
75
|
+
var(--motion-easing-quick-enter);
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.card--full-hero .card__hero-image,
|
|
80
|
+
.card--full-hero .card__media {
|
|
81
|
+
border-bottom-left-radius: 0;
|
|
82
|
+
border-bottom-right-radius: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.card__main {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex: 1;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
margin-inline: var(--spacing-150);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.card__overline {
|
|
93
|
+
align-items: center;
|
|
94
|
+
display: flex;
|
|
95
|
+
font-weight: 700;
|
|
96
|
+
gap: var(--spacing-100);
|
|
97
|
+
margin-block-end: var(--spacing-100);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.card__title {
|
|
101
|
+
font-size: var(--font-size-large-1);
|
|
102
|
+
font-weight: 700;
|
|
103
|
+
margin: 0;
|
|
104
|
+
margin-block-end: var(--spacing-50);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.card__description {
|
|
108
|
+
flex: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.card__action {
|
|
112
|
+
margin-block-start: var(--spacing-200);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.card--horizontal {
|
|
116
|
+
flex-direction: row;
|
|
117
|
+
max-width: 100%;
|
|
118
|
+
width: 100%;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.card--horizontal .card__media {
|
|
122
|
+
aspect-ratio: 1/1;
|
|
123
|
+
margin-block-end: 0;
|
|
124
|
+
max-width: 160px;
|
|
125
|
+
min-width: 90px;
|
|
126
|
+
width: 25%;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.card--horizontal .card__hero-image {
|
|
130
|
+
aspect-ratio: 1/1;
|
|
131
|
+
height: auto;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.card--horizontal .card__main {
|
|
135
|
+
margin-block-start: var(--spacing-150);
|
|
136
|
+
margin-inline-start: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.card--full-hero .card__media {
|
|
140
|
+
margin: 0;
|
|
141
|
+
margin-block-end: var(--spacing-200);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.card--aspect-5-4 .card__media {
|
|
145
|
+
aspect-ratio: 5/4;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.card--aspect-16-9 .card__media {
|
|
149
|
+
aspect-ratio: 16/9;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@keyframes card-focus-animation {
|
|
153
|
+
0% {
|
|
154
|
+
outline-color: var(--color-stroke-accent);
|
|
155
|
+
outline-offset: 4px;
|
|
156
|
+
outline-width: 6px;
|
|
157
|
+
}
|
|
158
|
+
to {
|
|
159
|
+
outline-color: var(--color-stroke-accent);
|
|
160
|
+
outline-offset: 0;
|
|
161
|
+
outline-width: 2px;
|
|
162
|
+
}
|
|
163
|
+
}
|
package/dist/chip/chip.css
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
.chip {
|
|
2
2
|
align-items: center;
|
|
3
|
-
background-color: var(--color-background-
|
|
4
|
-
border-radius: var(--
|
|
5
|
-
|
|
3
|
+
background-color: var(--color-background-strong);
|
|
4
|
+
border-radius: var(--border-radius-50);
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
color: var(--color-foreground-on-strong);
|
|
6
7
|
display: inline-flex;
|
|
7
8
|
font-size: var(--font-size-default);
|
|
8
|
-
gap:
|
|
9
|
+
gap: var(--spacing-75);
|
|
10
|
+
height: var(--spacing-400);
|
|
9
11
|
justify-content: space-between;
|
|
10
12
|
max-width: 296px;
|
|
11
|
-
min-height: var(--spacing-250);
|
|
12
13
|
min-width: 32px;
|
|
13
14
|
padding: 0 var(--spacing-150);
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
vertical-align: bottom;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
.chip__text {
|
|
@@ -20,31 +23,31 @@
|
|
|
20
23
|
white-space: nowrap;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
button.chip__button {
|
|
26
|
+
.chip button.chip__button {
|
|
27
|
+
align-items: center;
|
|
24
28
|
background-color: initial;
|
|
25
29
|
border: none;
|
|
26
30
|
border-radius: 50px;
|
|
27
31
|
box-sizing: border-box;
|
|
32
|
+
color: var(--color-foreground-on-strong);
|
|
33
|
+
display: flex;
|
|
28
34
|
flex-shrink: 0;
|
|
29
35
|
height: var(--spacing-300);
|
|
36
|
+
justify-content: center;
|
|
30
37
|
line-height: 0;
|
|
31
38
|
margin-inline-end: -8px;
|
|
32
39
|
padding: 0;
|
|
33
40
|
width: var(--spacing-300);
|
|
34
41
|
}
|
|
35
42
|
|
|
36
|
-
button.chip__button:focus-visible {
|
|
43
|
+
.chip button.chip__button:focus-visible {
|
|
37
44
|
background-color: var(--state-layer-focus);
|
|
38
|
-
outline-color: var(--color-
|
|
45
|
+
outline-color: var(--color-foreground-on-strong);
|
|
39
46
|
outline-offset: -2px;
|
|
40
47
|
outline-style: solid;
|
|
41
48
|
outline-width: 2px;
|
|
42
49
|
}
|
|
43
50
|
|
|
44
|
-
button.chip__button:hover {
|
|
51
|
+
.chip button.chip__button:hover {
|
|
45
52
|
background-color: var(--state-layer-hover);
|
|
46
53
|
}
|
|
47
|
-
|
|
48
|
-
button.chip__button > svg {
|
|
49
|
-
fill: var(--color-foreground-on-primary);
|
|
50
|
-
}
|