@patternfly/patternfly 4.167.0 → 4.171.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/components/Dropdown/dropdown.css +5 -0
- package/components/Dropdown/dropdown.scss +5 -0
- package/components/Masthead/masthead.css +12 -6
- package/components/Masthead/masthead.scss +16 -5
- package/components/Table/table.css +8 -0
- package/components/Table/table.scss +16 -0
- package/components/Toolbar/toolbar.css +6 -0
- package/components/Toolbar/toolbar.scss +9 -0
- package/docs/components/BackToTop/examples/BackToTop.md +0 -1
- package/docs/components/JumpLinks/examples/JumpLinks.md +0 -1
- package/docs/components/Table/examples/Table.md +899 -241
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +26 -1
- package/docs/components/Toolbar/examples/Toolbar.md +1 -0
- package/docs/demos/BackToTop/examples/BackToTop.md +0 -1
- package/docs/demos/JumpLinks/examples/JumpLinks.md +0 -1
- package/docs/demos/Masthead/examples/Masthead.md +865 -1
- package/package.json +1 -1
- package/patternfly-no-reset.css +31 -6
- package/patternfly.css +31 -6
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/docs/pages/modifiers.md +0 -86
|
@@ -370,6 +370,10 @@
|
|
|
370
370
|
white-space: nowrap;
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
+
.pf-c-dropdown__toggle-text {
|
|
374
|
+
flex: 0 1 auto;
|
|
375
|
+
}
|
|
376
|
+
|
|
373
377
|
.pf-c-dropdown__toggle-icon {
|
|
374
378
|
margin-right: var(--pf-c-dropdown__toggle-icon--MarginRight);
|
|
375
379
|
margin-left: var(--pf-c-dropdown__toggle-icon--MarginLeft);
|
|
@@ -381,6 +385,7 @@
|
|
|
381
385
|
|
|
382
386
|
.pf-c-dropdown__toggle-image {
|
|
383
387
|
display: inline-flex;
|
|
388
|
+
flex-shrink: 0;
|
|
384
389
|
margin-top: var(--pf-c-dropdown__toggle-image--MarginTop);
|
|
385
390
|
margin-right: var(--pf-c-dropdown__toggle-image--MarginRight);
|
|
386
391
|
margin-bottom: var(--pf-c-dropdown__toggle-image--MarginBottom);
|
|
@@ -511,6 +511,10 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
|
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
+
.pf-c-dropdown__toggle-text {
|
|
515
|
+
flex: 0 1 auto;
|
|
516
|
+
}
|
|
517
|
+
|
|
514
518
|
.pf-c-dropdown__toggle-icon {
|
|
515
519
|
margin-right: var(--pf-c-dropdown__toggle-icon--MarginRight);
|
|
516
520
|
margin-left: var(--pf-c-dropdown__toggle-icon--MarginLeft);
|
|
@@ -525,6 +529,7 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
|
|
|
525
529
|
// Toggle image
|
|
526
530
|
.pf-c-dropdown__toggle-image {
|
|
527
531
|
display: inline-flex;
|
|
532
|
+
flex-shrink: 0;
|
|
528
533
|
margin-top: var(--pf-c-dropdown__toggle-image--MarginTop);
|
|
529
534
|
margin-right: var(--pf-c-dropdown__toggle-image--MarginRight);
|
|
530
535
|
margin-bottom: var(--pf-c-dropdown__toggle-image--MarginBottom);
|
|
@@ -148,13 +148,8 @@
|
|
|
148
148
|
padding-left: var(--pf-c-masthead--PaddingLeft);
|
|
149
149
|
background-color: var(--pf-c-masthead--BackgroundColor);
|
|
150
150
|
}
|
|
151
|
-
@media screen and (min-width: 1200px) {
|
|
152
|
-
.pf-c-masthead {
|
|
153
|
-
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
151
|
@media screen and (min-width: 768px) {
|
|
157
|
-
.pf-c-masthead {
|
|
152
|
+
.pf-c-page:where(:not(.pf-m-resize-observer)) .pf-c-masthead {
|
|
158
153
|
--pf-c-masthead--GridTemplateColumns: var(--pf-c-masthead--m-display-inline--GridTemplateColumns);
|
|
159
154
|
--pf-c-masthead__main--GridColumn: var(--pf-c-masthead--m-display-inline__main--GridColumn);
|
|
160
155
|
--pf-c-masthead__main--MinHeight: var(--pf-c-masthead--m-display-inline__main--MinHeight);
|
|
@@ -174,6 +169,14 @@
|
|
|
174
169
|
--pf-c-masthead__content--c-nav--m-horizontal--MarginLeft: var(--pf-c-masthead--m-display-inline__content--c-nav--m-horizontal--MarginLeft);
|
|
175
170
|
}
|
|
176
171
|
}
|
|
172
|
+
@media screen and (min-width: 1200px) {
|
|
173
|
+
.pf-c-page:where(:not(.pf-m-resize-observer)) .pf-c-masthead {
|
|
174
|
+
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.pf-c-page:where(.pf-m-breakpoint-xl) .pf-c-masthead {
|
|
178
|
+
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
179
|
+
}
|
|
177
180
|
.pf-c-masthead.pf-m-light {
|
|
178
181
|
color: var(--pf-global--Color--100);
|
|
179
182
|
--pf-c-masthead--BackgroundColor: var(--pf-c-masthead--m-light--BackgroundColor);
|
|
@@ -230,6 +233,9 @@
|
|
|
230
233
|
--pf-c-dropdown__toggle--before--BorderRightColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderRightColor);
|
|
231
234
|
--pf-c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderLeftColor);
|
|
232
235
|
}
|
|
236
|
+
.pf-c-masthead .pf-c-nav {
|
|
237
|
+
align-self: stretch;
|
|
238
|
+
}
|
|
233
239
|
|
|
234
240
|
.pf-c-masthead__main {
|
|
235
241
|
position: relative;
|
|
@@ -150,16 +150,23 @@ $pf-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
150
150
|
--pf-c-masthead--c-toolbar__expandable-content--BorderTopWidth: var(--pf-global--BorderWidth--sm);
|
|
151
151
|
--pf-c-masthead--c-toolbar__expandable-content--BorderTopColor: var(--pf-c-masthead--item-border-color--base);
|
|
152
152
|
|
|
153
|
-
@media screen and (min-width: $pf-global--breakpoint--xl) {
|
|
154
|
-
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
155
|
-
}
|
|
156
153
|
|
|
157
154
|
// Set layout to stack by default
|
|
158
155
|
@include pf-c-masthead--m-display-stack;
|
|
159
156
|
|
|
160
157
|
// Set layout to inline at medium breakpoint
|
|
161
|
-
|
|
162
|
-
@
|
|
158
|
+
.pf-c-page:where(:not(.pf-m-resize-observer)) & {
|
|
159
|
+
@media screen and (min-width: $pf-global--breakpoint--md) {
|
|
160
|
+
@include pf-c-masthead--m-display-inline;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@media screen and (min-width: $pf-global--breakpoint--xl) {
|
|
164
|
+
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.pf-c-page:where(.pf-m-breakpoint-xl) & {
|
|
169
|
+
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
163
170
|
}
|
|
164
171
|
|
|
165
172
|
@include pf-t-dark; // force the container to follow the dark theme
|
|
@@ -242,6 +249,10 @@ $pf-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
242
249
|
--pf-c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderLeftColor);
|
|
243
250
|
}
|
|
244
251
|
}
|
|
252
|
+
|
|
253
|
+
.pf-c-nav {
|
|
254
|
+
align-self: stretch;
|
|
255
|
+
}
|
|
245
256
|
}
|
|
246
257
|
|
|
247
258
|
// Main
|
|
@@ -275,6 +275,7 @@
|
|
|
275
275
|
--pf-c-table--thead--m-nested-column-header--tr--PaddingTop: var(--pf-global--spacer--xs);
|
|
276
276
|
--pf-c-table--thead--m-nested-column-header--tr--PaddingBottom: var(--pf-global--spacer--xs);
|
|
277
277
|
--pf-c-table__subhead--Color: var(--pf-global--Color--200);
|
|
278
|
+
--pf-c-table--m-striped__tr--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
|
|
278
279
|
color: var(--pf-global--Color--100);
|
|
279
280
|
width: 100%;
|
|
280
281
|
background-color: var(--pf-c-table--BackgroundColor);
|
|
@@ -316,6 +317,13 @@
|
|
|
316
317
|
content: "";
|
|
317
318
|
border-bottom: var(--pf-c-table--border-width--base) solid var(--pf-c-table--BorderColor);
|
|
318
319
|
}
|
|
320
|
+
.pf-c-table.pf-m-striped:not(.pf-m-expandable) > tbody > tr:nth-child(odd), .pf-c-table.pf-m-striped.pf-m-expandable > tbody:nth-of-type(odd) > tr:not(.pf-c-table__expandable-row),
|
|
321
|
+
.pf-c-table > .pf-m-striped > tr:nth-child(odd),
|
|
322
|
+
.pf-c-table > .pf-m-striped-even > tr:nth-child(even),
|
|
323
|
+
.pf-c-table tr.pf-m-striped {
|
|
324
|
+
--pf-c-table__sticky-column--BackgroundColor: var(--pf-c-table--m-striped__tr--BackgroundColor);
|
|
325
|
+
background: var(--pf-c-table--m-striped__tr--BackgroundColor);
|
|
326
|
+
}
|
|
319
327
|
.pf-c-table tr:not(.pf-c-table__expandable-row) {
|
|
320
328
|
border-bottom: var(--pf-c-table--border-width--base) solid var(--pf-c-table--BorderColor);
|
|
321
329
|
}
|
|
@@ -303,6 +303,9 @@
|
|
|
303
303
|
// Subhead
|
|
304
304
|
--pf-c-table__subhead--Color: var(--pf-global--Color--200);
|
|
305
305
|
|
|
306
|
+
// Striped
|
|
307
|
+
--pf-c-table--m-striped__tr--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
|
|
308
|
+
|
|
306
309
|
@media screen and (min-width: $pf-global--breakpoint--xl) {
|
|
307
310
|
--pf-c-table--cell--first-last-child--PaddingRight: var(--pf-c-table--cell--first-last-child--xl--PaddingRight);
|
|
308
311
|
--pf-c-table--cell--first-last-child--PaddingLeft: var(--pf-c-table--cell--first-last-child--xl--PaddingLeft);
|
|
@@ -345,6 +348,19 @@
|
|
|
345
348
|
}
|
|
346
349
|
}
|
|
347
350
|
|
|
351
|
+
// For regular and expandable tables
|
|
352
|
+
// stylelint-disable
|
|
353
|
+
&.pf-m-striped:not(.pf-m-expandable) > tbody > tr:nth-child(odd), // regular table
|
|
354
|
+
&.pf-m-striped.pf-m-expandable > tbody:nth-of-type(odd) > tr:not(.pf-c-table__expandable-row), // expandable table
|
|
355
|
+
> .pf-m-striped > tr:nth-child(odd), // tbody odd
|
|
356
|
+
> .pf-m-striped-even > tr:nth-child(even), // tbody even
|
|
357
|
+
tr.pf-m-striped { // tr
|
|
358
|
+
--pf-c-table__sticky-column--BackgroundColor: var(--pf-c-table--m-striped__tr--BackgroundColor);
|
|
359
|
+
|
|
360
|
+
background: var(--pf-c-table--m-striped__tr--BackgroundColor);
|
|
361
|
+
}
|
|
362
|
+
// stylelint-enable
|
|
363
|
+
|
|
348
364
|
// Standard table row (non-expandable)
|
|
349
365
|
// exclude expandable rows
|
|
350
366
|
tr:not(.pf-c-table__expandable-row) {
|
|
@@ -324,6 +324,12 @@
|
|
|
324
324
|
--pf-c-toolbar--spacer: 0;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
+
.pf-c-toolbar__group.pf-m-overflow-container,
|
|
328
|
+
.pf-c-toolbar__item.pf-m-overflow-container {
|
|
329
|
+
flex: 1;
|
|
330
|
+
overflow: hidden;
|
|
331
|
+
}
|
|
332
|
+
|
|
327
333
|
.pf-c-toolbar__expand-all-icon {
|
|
328
334
|
display: inline-block;
|
|
329
335
|
transition: var(--pf-c-toolbar__expand-all-icon--Transition);
|
|
@@ -322,6 +322,15 @@ $pf-c-toolbar--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl"
|
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
+
.pf-c-toolbar__group,
|
|
326
|
+
.pf-c-toolbar__item {
|
|
327
|
+
&.pf-m-overflow-container {
|
|
328
|
+
flex: 1;
|
|
329
|
+
overflow: hidden;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
|
|
325
334
|
.pf-c-toolbar__expand-all-icon {
|
|
326
335
|
display: inline-block;
|
|
327
336
|
transition: var(--pf-c-toolbar__expand-all-icon--Transition);
|