@primer/brand-css 0.56.4-rc.59a048f0 → 0.56.4-rc.99f23b6a
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.
|
@@ -17,16 +17,8 @@
|
|
|
17
17
|
'footnote'
|
|
18
18
|
;
|
|
19
19
|
|
|
20
|
-
/* prettier-ignore */
|
|
21
|
-
--brand-pricing-options-template-areas-single-item:
|
|
22
|
-
'leadingComponent actions'
|
|
23
|
-
'header actions'
|
|
24
|
-
'description actions'
|
|
25
|
-
'price actions'
|
|
26
|
-
'feature-list actions';
|
|
27
|
-
|
|
28
20
|
display: grid;
|
|
29
|
-
row-gap: var(--brand-pricing-options-item-gap);
|
|
21
|
+
row-gap: var(--brand-pricing-options-item-gap, 0);
|
|
30
22
|
padding-inline: var(--brand-pricing-options-container-padding-inline);
|
|
31
23
|
}
|
|
32
24
|
|
|
@@ -40,6 +32,10 @@
|
|
|
40
32
|
@media (min-width: 63.25rem) {
|
|
41
33
|
.PricingOptions {
|
|
42
34
|
grid-template-areas: var(--brand-pricing-options-template-areas);
|
|
35
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
36
|
+
-moz-column-gap: var(--brand-pricing-options-item-gap, 0);
|
|
37
|
+
column-gap: var(--brand-pricing-options-item-gap, 0);
|
|
38
|
+
row-gap: 0;
|
|
43
39
|
}
|
|
44
40
|
}
|
|
45
41
|
|
|
@@ -140,51 +136,23 @@
|
|
|
140
136
|
}
|
|
141
137
|
|
|
142
138
|
/* ---------------------------------------------------------- */
|
|
143
|
-
/*
|
|
144
|
-
/* ---------------------------------------------------------- */
|
|
145
|
-
|
|
146
|
-
@media (min-width: 63.25rem) {
|
|
147
|
-
.PricingOptions--items1 {
|
|
148
|
-
--brand-pricing-options-container-padding-inline: var(--base-size-48);
|
|
149
|
-
|
|
150
|
-
display: block;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.PricingOptions--items1 .PricingOptions__item {
|
|
154
|
-
display: grid;
|
|
155
|
-
grid-template-columns: 1fr 1fr;
|
|
156
|
-
-moz-column-gap: calc(var(--base-size-96) * 2);
|
|
157
|
-
column-gap: calc(var(--base-size-96) * 2);
|
|
158
|
-
grid-template-rows: repeat(auto-fit, minmax(0, 1fr));
|
|
159
|
-
grid-template-areas: var(--brand-pricing-options-template-areas-single-item);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.PricingOptions--items1 .PricingOptions__actions {
|
|
163
|
-
align-self: center;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* ---------------------------------------------------------- */
|
|
168
|
-
/* Multiple items */
|
|
139
|
+
/* Items */
|
|
169
140
|
/* ---------------------------------------------------------- */
|
|
170
141
|
|
|
171
142
|
@media (min-width: 48rem) {
|
|
172
|
-
:where(.PricingOptions--layout-cards
|
|
173
|
-
display: grid;
|
|
174
|
-
-moz-column-gap: var(--brand-pricing-options-item-gap);
|
|
175
|
-
column-gap: var(--brand-pricing-options-item-gap);
|
|
143
|
+
:where(.PricingOptions--layout-cards.PricingOptions--items4) {
|
|
176
144
|
row-gap: var(--brand-pricing-options-item-gap);
|
|
177
145
|
}
|
|
178
146
|
}
|
|
179
147
|
|
|
180
148
|
@media (min-width: 63.25rem) {
|
|
181
|
-
.PricingOptions--
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
149
|
+
.PricingOptions--items1 {
|
|
150
|
+
width: 50%;
|
|
151
|
+
margin-inline: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.PricingOptions--layout-default.PricingOptions--items1 {
|
|
155
|
+
--brand-pricing-options-container-padding-inline: var(--brand-PricingOptions-items1-container-paddingInline);
|
|
188
156
|
}
|
|
189
157
|
|
|
190
158
|
.PricingOptions--layout-default.PricingOptions--items2 {
|
|
@@ -352,3 +352,166 @@
|
|
|
352
352
|
transition: none !important;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
+
|
|
356
|
+
/* Tables */
|
|
357
|
+
|
|
358
|
+
.Prose table {
|
|
359
|
+
--spacing: var(--base-size-32);
|
|
360
|
+
width: 100%;
|
|
361
|
+
border-collapse: collapse;
|
|
362
|
+
border-spacing: 0;
|
|
363
|
+
font-size: var(--brand-text-size-200);
|
|
364
|
+
line-height: var(--brand-text-lineHeight-200);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.Prose table caption {
|
|
368
|
+
text-align: left;
|
|
369
|
+
padding-block-end: var(--base-size-24);
|
|
370
|
+
font-size: var(--brand-text-size-100);
|
|
371
|
+
font-weight: var(--brand-text-weight-100);
|
|
372
|
+
line-height: var(--brand-text-lineHeight-100);
|
|
373
|
+
color: var(--brand-color-text-muted);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.Prose table th,
|
|
377
|
+
.Prose table td {
|
|
378
|
+
padding-block: var(--base-size-16);
|
|
379
|
+
padding-inline: var(--base-size-12);
|
|
380
|
+
text-align: left;
|
|
381
|
+
vertical-align: top;
|
|
382
|
+
border-bottom: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.Prose table th:first-child,
|
|
386
|
+
.Prose table td:first-child,
|
|
387
|
+
.Prose table th:last-child,
|
|
388
|
+
.Prose table td:last-child {
|
|
389
|
+
padding-inline: 0;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.Prose table th {
|
|
393
|
+
font-size: var(--brand-text-size-100);
|
|
394
|
+
font-weight: var(--brand-text-weight-400);
|
|
395
|
+
line-height: var(--brand-text-lineHeight-100);
|
|
396
|
+
color: var(--brand-color-text-muted);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.Prose table thead th {
|
|
400
|
+
border-bottom: var(--brand-borderWidth-thick) solid var(--brand-color-border-default);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.Prose table tbody tr:last-child td {
|
|
404
|
+
border-bottom: none;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.Prose--editorial table {
|
|
408
|
+
--spacing: var(--base-size-48);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.Prose td > ul:first-child,
|
|
412
|
+
.Prose td > ol:first-child {
|
|
413
|
+
margin-block-start: 0;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
@media screen and (min-width: 48rem) {
|
|
417
|
+
.Prose table th,
|
|
418
|
+
.Prose table td {
|
|
419
|
+
padding: var(--base-size-16) var(--base-size-8);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.Prose table th:not(:first-child):not(:last-child),
|
|
423
|
+
.Prose table td:not(:first-child):not(:last-child) {
|
|
424
|
+
padding-inline: var(--base-size-16);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.Prose table th:first-child,
|
|
428
|
+
.Prose table td:first-child {
|
|
429
|
+
padding-inline-start: 0;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.Prose table th:last-child,
|
|
433
|
+
.Prose table td:last-child {
|
|
434
|
+
padding-inline-end: 0;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.Prose table tbody tr:hover {
|
|
438
|
+
background-color: var(--brand-color-canvas-subtle);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
@media screen and (max-width: 47.99rem) {
|
|
443
|
+
.Prose table:has(td[data-label]) {
|
|
444
|
+
border-collapse: separate;
|
|
445
|
+
border-spacing: 0;
|
|
446
|
+
width: 100%;
|
|
447
|
+
background: none;
|
|
448
|
+
box-shadow: none;
|
|
449
|
+
font-size: var(--brand-text-size-200); /* inherit from Prose */
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* Visually hidden only */
|
|
453
|
+
.Prose table:has(td[data-label]) thead {
|
|
454
|
+
position: absolute;
|
|
455
|
+
left: -9999px;
|
|
456
|
+
width: 1px;
|
|
457
|
+
height: 1px;
|
|
458
|
+
overflow: hidden;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.Prose table:has(td[data-label]) tbody,
|
|
462
|
+
.Prose table:has(td[data-label]) tr {
|
|
463
|
+
display: block;
|
|
464
|
+
width: 100%;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.Prose table:has(td[data-label]) th:not(:first-child):not(:last-child),
|
|
468
|
+
.Prose table:has(td[data-label]) td:not(:first-child):not(:last-child) {
|
|
469
|
+
padding-inline: 0;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.Prose table:has(td[data-label]) tr {
|
|
473
|
+
border-block-start: var(--brand-borderWidth-thicker) solid var(--brand-color-border-muted);
|
|
474
|
+
padding-block-start: var(--base-size-20);
|
|
475
|
+
margin-block-end: var(--spacing);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.Prose td[data-label] {
|
|
479
|
+
display: flex;
|
|
480
|
+
flex-direction: column;
|
|
481
|
+
width: 100%;
|
|
482
|
+
padding: 0;
|
|
483
|
+
margin: 0 0 var(--base-size-16, 16px) 0;
|
|
484
|
+
border: none;
|
|
485
|
+
align-items: flex-start;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.Prose td[data-label]:not(:last-child) {
|
|
489
|
+
border-block-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
490
|
+
padding-block-end: var(--base-size-20);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.Prose td[data-label]::before {
|
|
494
|
+
content: attr(data-label);
|
|
495
|
+
color: var(--brand-color-text-muted);
|
|
496
|
+
margin-block-end: var(--base-size-4);
|
|
497
|
+
text-align: left;
|
|
498
|
+
font-weight: var(--brand-text-weight-400);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.Prose table:has(td[data-label]) td:not([data-label]) {
|
|
502
|
+
display: block;
|
|
503
|
+
width: 100%;
|
|
504
|
+
padding: 0;
|
|
505
|
+
margin-block-end: var(--base-size-16);
|
|
506
|
+
border: none;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.Prose table:has(td[data-label]) td:not([data-label]):not(:last-child) {
|
|
510
|
+
border-block-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
511
|
+
padding-block-end: var(--base-size-20);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.Prose td[data-label]:last-child {
|
|
515
|
+
margin-block-end: 0;
|
|
516
|
+
}
|
|
517
|
+
}
|