@primer/brand-css 0.67.0-rc.197d7044 → 0.67.0-rc.1ce6fbe1
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/components/Card/Card.css
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
grid-template-rows: var(--Card-grid-template-rows);
|
|
23
23
|
position: relative;
|
|
24
24
|
height: 100%;
|
|
25
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.Card--align-center .Card {
|
|
@@ -49,6 +50,18 @@
|
|
|
49
50
|
justify-items: center;
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
.Card--backgroundColor-default {
|
|
54
|
+
background-color: var(--brand-Card-background-default);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.Card--backgroundColor-subtle {
|
|
58
|
+
background-color: var(--brand-color-canvas-subtle);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.Card--backgroundColor-none {
|
|
62
|
+
background-color: transparent;
|
|
63
|
+
}
|
|
64
|
+
|
|
52
65
|
.Card--tokensPosition-block-end {
|
|
53
66
|
/* Moves the dynamic height row from tokens back to description because the block-end layout places tokens below the body copy. */
|
|
54
67
|
--Card-grid-template-rows: auto auto auto auto auto 1fr auto auto;
|
|
@@ -156,14 +169,6 @@
|
|
|
156
169
|
padding: 0;
|
|
157
170
|
}
|
|
158
171
|
|
|
159
|
-
.Card--variant-default {
|
|
160
|
-
background-color: var(--brand-Card-background-default);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.Card--variant-default.Card--ctaVariant-arrow {
|
|
164
|
-
background-color: transparent;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
172
|
.Card--ctaVariant-arrow {
|
|
168
173
|
--Card-arrowAction-endInset: var(--base-size-40);
|
|
169
174
|
}
|
|
@@ -230,6 +235,7 @@
|
|
|
230
235
|
|
|
231
236
|
.Card__outer:focus-within {
|
|
232
237
|
outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
|
|
238
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
233
239
|
}
|
|
234
240
|
|
|
235
241
|
.Card__outer:has(.Card--variant-minimal):focus-within {
|
|
@@ -298,6 +304,9 @@
|
|
|
298
304
|
.Card__label {
|
|
299
305
|
margin-block-end: var(--base-size-20);
|
|
300
306
|
grid-area: label;
|
|
307
|
+
inline-size: -moz-fit-content;
|
|
308
|
+
inline-size: fit-content;
|
|
309
|
+
max-inline-size: 100%;
|
|
301
310
|
}
|
|
302
311
|
|
|
303
312
|
.Card__heading {
|
|
@@ -334,6 +343,26 @@
|
|
|
334
343
|
white-space: nowrap;
|
|
335
344
|
}
|
|
336
345
|
|
|
346
|
+
.Card:not(.Card--ctaVariant-arrow) .Card__action {
|
|
347
|
+
inline-size: 100%;
|
|
348
|
+
min-inline-size: 0;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.Card:not(.Card--ctaVariant-arrow) .Card__action > span:first-child {
|
|
352
|
+
min-inline-size: 0;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.Card:not(.Card--ctaVariant-arrow) .Card__actionLabel {
|
|
356
|
+
overflow: visible;
|
|
357
|
+
text-overflow: clip;
|
|
358
|
+
white-space: normal;
|
|
359
|
+
overflow-wrap: anywhere;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.Card--align-center:not(.Card--ctaVariant-arrow) .Card__actionLabel {
|
|
363
|
+
text-align: center;
|
|
364
|
+
}
|
|
365
|
+
|
|
337
366
|
.Card__actionLabelClip {
|
|
338
367
|
--actionLabelClip-duration: 400ms;
|
|
339
368
|
display: inline-flex;
|
|
@@ -413,7 +442,7 @@
|
|
|
413
442
|
}
|
|
414
443
|
|
|
415
444
|
.Card__skew-bounding {
|
|
416
|
-
border-radius: var(--brand-borderRadius-
|
|
445
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
417
446
|
position: relative;
|
|
418
447
|
overflow: hidden;
|
|
419
448
|
z-index: 1;
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
inset-inline-end: calc(var(--brand-pricing-options-item-gap, 0px) / 2 * -1);
|
|
92
92
|
height: var(--brand-borderWidth-thin);
|
|
93
93
|
background-color: var(--brand-color-text-emphasized);
|
|
94
|
+
z-index: 1;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
/* First cell: don't overflow past container start (cards override below) */
|
|
@@ -103,13 +104,9 @@
|
|
|
103
104
|
inset-inline-end: 0;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
inset-inline-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.PricingOptions--layout-default .PricingOptions__label-cell--has-label:last-child::after {
|
|
112
|
-
inset-inline-end: calc(var(--brand-pricing-options-container-padding-inline, 0px) * -1);
|
|
107
|
+
.PricingOptions--layout-default .PricingOptions__label-cell--has-label::after {
|
|
108
|
+
inset-inline-start: 0;
|
|
109
|
+
inset-inline-end: 0;
|
|
113
110
|
}
|
|
114
111
|
|
|
115
112
|
/* ---- Default layout labels ---- */
|
|
@@ -130,7 +127,18 @@
|
|
|
130
127
|
}
|
|
131
128
|
|
|
132
129
|
.PricingOptions--layout-default .PricingOptions__label-cell {
|
|
133
|
-
|
|
130
|
+
margin-inline: calc(var(--brand-pricing-options-item-gap) / 2 * -1);
|
|
131
|
+
padding-inline: calc(var(--brand-pricing-options-item-gap) / 2);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.PricingOptions--layout-default .PricingOptions__label-cell:first-child {
|
|
135
|
+
margin-inline-start: calc(var(--brand-pricing-options-container-padding-inline) * -1);
|
|
136
|
+
padding-inline-start: var(--brand-pricing-options-container-padding-inline);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.PricingOptions--layout-default .PricingOptions__label-cell:last-child {
|
|
140
|
+
margin-inline-end: calc(var(--brand-pricing-options-container-padding-inline) * -1);
|
|
141
|
+
padding-inline-end: var(--brand-pricing-options-container-padding-inline);
|
|
134
142
|
}
|
|
135
143
|
|
|
136
144
|
/* Empty cells: transparent bg/borders but structurally visible so dividers show */
|
|
@@ -145,7 +153,7 @@
|
|
|
145
153
|
position: absolute;
|
|
146
154
|
inset-block: 0;
|
|
147
155
|
width: var(--brand-borderWidth-thin);
|
|
148
|
-
inset-inline-start:
|
|
156
|
+
inset-inline-start: 0;
|
|
149
157
|
background-color: var(--brand-color-border-subtle);
|
|
150
158
|
}
|
|
151
159
|
|
|
@@ -475,6 +483,41 @@
|
|
|
475
483
|
padding-block-start: var(--base-size-20);
|
|
476
484
|
}
|
|
477
485
|
|
|
486
|
+
.PricingOptions__actions-message {
|
|
487
|
+
display: flex;
|
|
488
|
+
gap: var(--base-size-12);
|
|
489
|
+
align-items: flex-start;
|
|
490
|
+
inline-size: 100%;
|
|
491
|
+
max-inline-size: 100%;
|
|
492
|
+
padding: var(--base-size-12);
|
|
493
|
+
border-block: var(--brand-borderWidth-thin) solid var(--brand-PricingOptions-actionsMessage-borderColor);
|
|
494
|
+
border-inline: 0;
|
|
495
|
+
border-radius: 0;
|
|
496
|
+
background-color: var(--brand-PricingOptions-actionsMessage-bgColor);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.PricingOptions__actions-message-leading-component {
|
|
500
|
+
flex: 0 0 auto;
|
|
501
|
+
display: flex;
|
|
502
|
+
margin-block-start: var(--base-size-4);
|
|
503
|
+
color: var(--brand-PricingOptions-actionsMessage-accentColor);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.PricingOptions__actions-message-leading-component :where(svg) {
|
|
507
|
+
display: block;
|
|
508
|
+
inline-size: var(--base-size-16);
|
|
509
|
+
block-size: var(--base-size-16);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.PricingOptions__actions-message-content {
|
|
513
|
+
flex: 1 1 auto;
|
|
514
|
+
min-inline-size: 0;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.PricingOptions__actions-message-content :where(p) {
|
|
518
|
+
margin: 0;
|
|
519
|
+
}
|
|
520
|
+
|
|
478
521
|
/* MenuAction: full-width ActionMenu wrapper */
|
|
479
522
|
.PricingOptions__menu-action {
|
|
480
523
|
width: 100%;
|
|
@@ -151,10 +151,7 @@
|
|
|
151
151
|
|
|
152
152
|
.Testimonial-from {
|
|
153
153
|
font-weight: var(--base-text-weight-normal);
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
.Testimonial-position {
|
|
157
|
-
font-family: var(--brand-fontStack-monospace);
|
|
154
|
+
text-transform: uppercase;
|
|
158
155
|
}
|
|
159
156
|
|
|
160
157
|
/* Expressive variant */
|
|
@@ -168,7 +165,7 @@
|
|
|
168
165
|
.Testimonial--variant-expressive {
|
|
169
166
|
flex-direction: row;
|
|
170
167
|
align-items: flex-end;
|
|
171
|
-
gap: var(--base-size-
|
|
168
|
+
gap: var(--base-size-96);
|
|
172
169
|
}
|
|
173
170
|
}
|
|
174
171
|
|
|
@@ -193,6 +190,7 @@
|
|
|
193
190
|
border-block-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
|
|
194
191
|
padding-block-start: var(--base-size-24);
|
|
195
192
|
width: 100%;
|
|
193
|
+
gap: var(--base-size-8);
|
|
196
194
|
}
|
|
197
195
|
|
|
198
196
|
@media screen and (min-width: 48rem) {
|
|
@@ -236,6 +234,8 @@
|
|
|
236
234
|
|
|
237
235
|
.Testimonial--variant-expressive .Testimonial-quote {
|
|
238
236
|
font-family: var(--brand-fontStack-monospace);
|
|
237
|
+
line-height: var(--brand-text-lineHeight-400);
|
|
238
|
+
font-weight: var(--base-text-weight-normal);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
.Testimonial-link {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
max-width: 100%;
|
|
9
9
|
padding-inline: var(--base-size-8);
|
|
10
10
|
padding-block: var(--base-size-6);
|
|
11
|
-
padding-block-end:
|
|
11
|
+
padding-block-end: var(--base-size-6);
|
|
12
12
|
vertical-align: middle;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
text-decoration: none;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.Token--interactive:focus-visible {
|
|
26
|
+
outline: var(--base-size-4) solid var(--brand-color-focus);
|
|
27
|
+
outline-offset: var(--base-size-2);
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
[data-color-mode='dark'] .Token {
|
|
26
31
|
-webkit-font-smoothing: antialiased;
|
|
27
32
|
-moz-osx-font-smoothing: auto;
|
|
@@ -36,15 +41,6 @@
|
|
|
36
41
|
background-color: var(--brand-Token-bgColor-hover-default);
|
|
37
42
|
}
|
|
38
43
|
|
|
39
|
-
.Token--variant-dark-gray {
|
|
40
|
-
background-color: var(--brand-Token-bgColor-dark-gray);
|
|
41
|
-
color: var(--brand-Token-fgColor-dark-gray);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.Token--interactive.Token--variant-dark-gray:hover {
|
|
45
|
-
background-color: var(--brand-Token-bgColor-hover-dark-gray);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
44
|
.Token--variant-accent {
|
|
49
45
|
background-color: var(--brand-Token-bgColor-accent);
|
|
50
46
|
color: var(--brand-Token-fgColor-accent);
|
|
@@ -83,6 +79,7 @@
|
|
|
83
79
|
font-weight: var(--base-text-weight-normal);
|
|
84
80
|
line-height: 0.85;
|
|
85
81
|
white-space: nowrap;
|
|
82
|
+
letter-spacing: var(--brand-text-letterSpacing-100);
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
.Token > .Token__label {
|
|
@@ -121,4 +118,8 @@
|
|
|
121
118
|
.Token {
|
|
122
119
|
outline: var(--brand-borderWidth-thin) solid transparent;
|
|
123
120
|
}
|
|
121
|
+
|
|
122
|
+
.Token--interactive:focus-visible {
|
|
123
|
+
outline-color: Highlight;
|
|
124
|
+
}
|
|
124
125
|
}
|