@patternfly/patternfly 6.5.0-prerelease.39 → 6.5.0-prerelease.40

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.
@@ -107,6 +107,10 @@
107
107
  --pf-v6-global--thinking-active--Animation--Duration: 2s;
108
108
  }
109
109
  }
110
+ :root {
111
+ container-type: inline-size;
112
+ container-name: pf-v6-contain-viewport pf-v6-contain-table;
113
+ }
110
114
 
111
115
  @property --pf-v6-global--danger-jiggle--TranslateX {
112
116
  syntax: "<length>";
@@ -127,6 +127,9 @@
127
127
  @media screen and (prefers-reduced-motion: no-preference) {
128
128
  --#{$pf-global}--thinking-active--Animation--Duration: 2s;
129
129
  }
130
+
131
+ container-type: inline-size;
132
+ container-name: #{$pf-prefix}contain-viewport #{$pf-prefix}contain-table;
130
133
  }
131
134
 
132
135
  // Register the property type for the custom property to be animatable
@@ -367,7 +367,7 @@
367
367
  --pf-v6-c-table--cell--Width: auto;
368
368
  }
369
369
 
370
- @media screen and (max-width: calc(48rem - 1px)) {
370
+ @container pf-v6-contain-table (max-width: 48rem) {
371
371
  .pf-m-grid-md.pf-v6-c-table {
372
372
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
373
373
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -645,15 +645,13 @@
645
645
  .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__action {
646
646
  text-align: end;
647
647
  }
648
- }
649
- @media screen and (max-width: calc(48rem - 1px)) and (max-width: 36rem) {
650
- .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__action {
651
- grid-row-start: 1;
652
- grid-column-start: 2;
653
- margin-inline-start: 0;
648
+ @media screen and (max-width: 36rem) {
649
+ .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__action {
650
+ grid-row-start: 1;
651
+ grid-column-start: 2;
652
+ margin-inline-start: 0;
653
+ }
654
654
  }
655
- }
656
- @media screen and (max-width: calc(48rem - 1px)) {
657
655
  .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
658
656
  grid-column: 2;
659
657
  grid-row: 2;
@@ -679,7 +677,7 @@
679
677
  }
680
678
  }
681
679
 
682
- @media screen and (max-width: calc(62rem - 1px)) {
680
+ @container pf-v6-contain-table (max-width: 62rem) {
683
681
  .pf-m-grid-lg.pf-v6-c-table {
684
682
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
685
683
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -957,15 +955,13 @@
957
955
  .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__action {
958
956
  text-align: end;
959
957
  }
960
- }
961
- @media screen and (max-width: calc(62rem - 1px)) and (max-width: 36rem) {
962
- .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__action {
963
- grid-row-start: 1;
964
- grid-column-start: 2;
965
- margin-inline-start: 0;
958
+ @media screen and (max-width: 36rem) {
959
+ .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__action {
960
+ grid-row-start: 1;
961
+ grid-column-start: 2;
962
+ margin-inline-start: 0;
963
+ }
966
964
  }
967
- }
968
- @media screen and (max-width: calc(62rem - 1px)) {
969
965
  .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
970
966
  grid-column: 2;
971
967
  grid-row: 2;
@@ -991,7 +987,7 @@
991
987
  }
992
988
  }
993
989
 
994
- @media screen and (max-width: calc(75rem - 1px)) {
990
+ @container pf-v6-contain-table (max-width: 75rem) {
995
991
  .pf-m-grid-xl.pf-v6-c-table {
996
992
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
997
993
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -1269,15 +1265,13 @@
1269
1265
  .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__action {
1270
1266
  text-align: end;
1271
1267
  }
1272
- }
1273
- @media screen and (max-width: calc(75rem - 1px)) and (max-width: 36rem) {
1274
- .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__action {
1275
- grid-row-start: 1;
1276
- grid-column-start: 2;
1277
- margin-inline-start: 0;
1268
+ @media screen and (max-width: 36rem) {
1269
+ .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__action {
1270
+ grid-row-start: 1;
1271
+ grid-column-start: 2;
1272
+ margin-inline-start: 0;
1273
+ }
1278
1274
  }
1279
- }
1280
- @media screen and (max-width: calc(75rem - 1px)) {
1281
1275
  .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
1282
1276
  grid-column: 2;
1283
1277
  grid-row: 2;
@@ -1303,7 +1297,7 @@
1303
1297
  }
1304
1298
  }
1305
1299
 
1306
- @media screen and (max-width: calc(90.625rem - 1px)) {
1300
+ @container pf-v6-contain-table (max-width: 90.625rem) {
1307
1301
  .pf-m-grid-2xl.pf-v6-c-table {
1308
1302
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
1309
1303
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -1581,15 +1575,13 @@
1581
1575
  .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__action {
1582
1576
  text-align: end;
1583
1577
  }
1584
- }
1585
- @media screen and (max-width: calc(90.625rem - 1px)) and (max-width: 36rem) {
1586
- .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__action {
1587
- grid-row-start: 1;
1588
- grid-column-start: 2;
1589
- margin-inline-start: 0;
1578
+ @media screen and (max-width: 36rem) {
1579
+ .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__action {
1580
+ grid-row-start: 1;
1581
+ grid-column-start: 2;
1582
+ margin-inline-start: 0;
1583
+ }
1590
1584
  }
1591
- }
1592
- @media screen and (max-width: calc(90.625rem - 1px)) {
1593
1585
  .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
1594
1586
  grid-column: 2;
1595
1587
  grid-row: 2;
@@ -7,25 +7,25 @@
7
7
  }
8
8
 
9
9
  .pf-m-grid-md.#{$table} {
10
- @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--md)) {
10
+ @container #{$pf-prefix}contain-table (max-width: #{$pf-v6-global--breakpoint--md}) {
11
11
  @content;
12
12
  }
13
13
  }
14
14
 
15
15
  .pf-m-grid-lg.#{$table} {
16
- @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--lg)) {
16
+ @container #{$pf-prefix}contain-table (max-width: #{$pf-v6-global--breakpoint--lg}) {
17
17
  @content;
18
18
  }
19
19
  }
20
20
 
21
21
  .pf-m-grid-xl.#{$table} {
22
- @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--xl)) {
22
+ @container #{$pf-prefix}contain-table (max-width: #{$pf-v6-global--breakpoint--xl}) {
23
23
  @content;
24
24
  }
25
25
  }
26
26
 
27
27
  .pf-m-grid-2xl.#{$table} {
28
- @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--2xl)) {
28
+ @container #{$pf-prefix}contain-table (max-width: #{$pf-v6-global--breakpoint--2xl}) {
29
29
  @content;
30
30
  }
31
31
  }
@@ -17114,7 +17114,7 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
17114
17114
  --pf-v6-c-table--cell--Width: auto;
17115
17115
  }
17116
17116
 
17117
- @media screen and (max-width: calc(48rem - 1px)) {
17117
+ @container pf-v6-contain-table (max-width: 48rem) {
17118
17118
  .pf-m-grid-md.pf-v6-c-table {
17119
17119
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
17120
17120
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -17392,15 +17392,13 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
17392
17392
  .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__action {
17393
17393
  text-align: end;
17394
17394
  }
17395
- }
17396
- @media screen and (max-width: calc(48rem - 1px)) and (max-width: 36rem) {
17397
- .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__action {
17398
- grid-row-start: 1;
17399
- grid-column-start: 2;
17400
- margin-inline-start: 0;
17395
+ @media screen and (max-width: 36rem) {
17396
+ .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__action {
17397
+ grid-row-start: 1;
17398
+ grid-column-start: 2;
17399
+ margin-inline-start: 0;
17400
+ }
17401
17401
  }
17402
- }
17403
- @media screen and (max-width: calc(48rem - 1px)) {
17404
17402
  .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
17405
17403
  grid-column: 2;
17406
17404
  grid-row: 2;
@@ -17426,7 +17424,7 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
17426
17424
  }
17427
17425
  }
17428
17426
 
17429
- @media screen and (max-width: calc(62rem - 1px)) {
17427
+ @container pf-v6-contain-table (max-width: 62rem) {
17430
17428
  .pf-m-grid-lg.pf-v6-c-table {
17431
17429
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
17432
17430
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -17704,15 +17702,13 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
17704
17702
  .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__action {
17705
17703
  text-align: end;
17706
17704
  }
17707
- }
17708
- @media screen and (max-width: calc(62rem - 1px)) and (max-width: 36rem) {
17709
- .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__action {
17710
- grid-row-start: 1;
17711
- grid-column-start: 2;
17712
- margin-inline-start: 0;
17705
+ @media screen and (max-width: 36rem) {
17706
+ .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__action {
17707
+ grid-row-start: 1;
17708
+ grid-column-start: 2;
17709
+ margin-inline-start: 0;
17710
+ }
17713
17711
  }
17714
- }
17715
- @media screen and (max-width: calc(62rem - 1px)) {
17716
17712
  .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
17717
17713
  grid-column: 2;
17718
17714
  grid-row: 2;
@@ -17738,7 +17734,7 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
17738
17734
  }
17739
17735
  }
17740
17736
 
17741
- @media screen and (max-width: calc(75rem - 1px)) {
17737
+ @container pf-v6-contain-table (max-width: 75rem) {
17742
17738
  .pf-m-grid-xl.pf-v6-c-table {
17743
17739
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
17744
17740
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -18016,15 +18012,13 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
18016
18012
  .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__action {
18017
18013
  text-align: end;
18018
18014
  }
18019
- }
18020
- @media screen and (max-width: calc(75rem - 1px)) and (max-width: 36rem) {
18021
- .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__action {
18022
- grid-row-start: 1;
18023
- grid-column-start: 2;
18024
- margin-inline-start: 0;
18015
+ @media screen and (max-width: 36rem) {
18016
+ .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__action {
18017
+ grid-row-start: 1;
18018
+ grid-column-start: 2;
18019
+ margin-inline-start: 0;
18020
+ }
18025
18021
  }
18026
- }
18027
- @media screen and (max-width: calc(75rem - 1px)) {
18028
18022
  .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
18029
18023
  grid-column: 2;
18030
18024
  grid-row: 2;
@@ -18050,7 +18044,7 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
18050
18044
  }
18051
18045
  }
18052
18046
 
18053
- @media screen and (max-width: calc(90.625rem - 1px)) {
18047
+ @container pf-v6-contain-table (max-width: 90.625rem) {
18054
18048
  .pf-m-grid-2xl.pf-v6-c-table {
18055
18049
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
18056
18050
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -18328,15 +18322,13 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
18328
18322
  .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__action {
18329
18323
  text-align: end;
18330
18324
  }
18331
- }
18332
- @media screen and (max-width: calc(90.625rem - 1px)) and (max-width: 36rem) {
18333
- .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__action {
18334
- grid-row-start: 1;
18335
- grid-column-start: 2;
18336
- margin-inline-start: 0;
18325
+ @media screen and (max-width: 36rem) {
18326
+ .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__action {
18327
+ grid-row-start: 1;
18328
+ grid-column-start: 2;
18329
+ margin-inline-start: 0;
18330
+ }
18337
18331
  }
18338
- }
18339
- @media screen and (max-width: calc(90.625rem - 1px)) {
18340
18332
  .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
18341
18333
  grid-column: 2;
18342
18334
  grid-row: 2;
@@ -133,6 +133,7 @@ cssPrefix: pf-v6-c-table
133
133
  ### Responsive layout modifier usage
134
134
 
135
135
  These classes can be used to ensure that the table changes between the tabular and grid-based layout at an appropriate screen width.
136
+ **Note:** If a wrapping element creates an `inline-size` or `size` container with the container name `pf-v6-contain-table`, the breakpoints will apply to the container's width.
136
137
 
137
138
  | Class | Applied to | Outcome |
138
139
  | -- | -- | -- |