@patternfly/patternfly 4.198.0 → 4.199.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/base/_variables.scss +7 -0
- package/base/patternfly-variables.css +5 -0
- package/components/Page/page.css +154 -24
- package/components/Page/page.scss +23 -14
- package/components/ProgressStepper/progress-stepper.css +1 -0
- package/components/ProgressStepper/progress-stepper.scss +1 -0
- package/components/Table/table.css +25 -9
- package/components/Table/table.scss +46 -11
- package/components/Tabs/tabs.css +30 -0
- package/components/Tabs/tabs.scss +37 -0
- package/docs/components/Page/examples/Page.md +2 -2
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +7 -13
- package/docs/components/Table/examples/Table.md +1176 -5
- package/docs/components/Tabs/examples/Tabs.md +214 -0
- package/docs/demos/Page/examples/Page.md +1044 -0
- package/package.json +1 -1
- package/patternfly-base-no-reset.css +5 -0
- package/patternfly-base.css +5 -0
- package/patternfly-no-reset.css +215 -33
- package/patternfly.css +215 -33
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +37 -1
- package/sass-utilities/mixins.scss +75 -7
- package/sass-utilities/scss-variables.scss +16 -0
package/base/_variables.scss
CHANGED
|
@@ -198,6 +198,13 @@
|
|
|
198
198
|
--pf-global--breakpoint--xl: #{$pf-global--breakpoint--xl};
|
|
199
199
|
--pf-global--breakpoint--2xl: #{$pf-global--breakpoint--2xl};
|
|
200
200
|
|
|
201
|
+
// Vertical breakpoints
|
|
202
|
+
--pf-global--height-breakpoint--sm: #{$pf-global--height-breakpoint--sm};
|
|
203
|
+
--pf-global--height-breakpoint--md: #{$pf-global--height-breakpoint--md};
|
|
204
|
+
--pf-global--height-breakpoint--lg: #{$pf-global--height-breakpoint--lg};
|
|
205
|
+
--pf-global--height-breakpoint--xl: #{$pf-global--height-breakpoint--xl};
|
|
206
|
+
--pf-global--height-breakpoint--2xl: #{$pf-global--height-breakpoint--2xl};
|
|
207
|
+
|
|
201
208
|
// Links
|
|
202
209
|
--pf-global--link--Color: #{$pf-global--link--Color};
|
|
203
210
|
--pf-global--link--Color--hover: #{$pf-global--link--Color--hover};
|
|
@@ -171,6 +171,11 @@
|
|
|
171
171
|
--pf-global--breakpoint--lg: 992px;
|
|
172
172
|
--pf-global--breakpoint--xl: 1200px;
|
|
173
173
|
--pf-global--breakpoint--2xl: 1450px;
|
|
174
|
+
--pf-global--height-breakpoint--sm: 0;
|
|
175
|
+
--pf-global--height-breakpoint--md: 40rem;
|
|
176
|
+
--pf-global--height-breakpoint--lg: 48rem;
|
|
177
|
+
--pf-global--height-breakpoint--xl: 60rem;
|
|
178
|
+
--pf-global--height-breakpoint--2xl: 80rem;
|
|
174
179
|
--pf-global--link--Color: #06c;
|
|
175
180
|
--pf-global--link--Color--hover: #004080;
|
|
176
181
|
--pf-global--link--Color--light: #2b9af3;
|
package/components/Page/page.css
CHANGED
|
@@ -497,30 +497,6 @@
|
|
|
497
497
|
.pf-c-page__main-subnav {
|
|
498
498
|
flex-shrink: 0;
|
|
499
499
|
}
|
|
500
|
-
.pf-c-page__main-nav.pf-m-sticky-top,
|
|
501
|
-
.pf-c-page__main-breadcrumb.pf-m-sticky-top,
|
|
502
|
-
.pf-c-page__main-tabs.pf-m-sticky-top,
|
|
503
|
-
.pf-c-page__main-section.pf-m-sticky-top,
|
|
504
|
-
.pf-c-page__main-wizard.pf-m-sticky-top,
|
|
505
|
-
.pf-c-page__main-group.pf-m-sticky-top,
|
|
506
|
-
.pf-c-page__main-subnav.pf-m-sticky-top {
|
|
507
|
-
position: sticky;
|
|
508
|
-
top: 0;
|
|
509
|
-
z-index: var(--pf-c-page--section--m-sticky-top--ZIndex);
|
|
510
|
-
box-shadow: var(--pf-c-page--section--m-sticky-top--BoxShadow);
|
|
511
|
-
}
|
|
512
|
-
.pf-c-page__main-nav.pf-m-sticky-bottom,
|
|
513
|
-
.pf-c-page__main-breadcrumb.pf-m-sticky-bottom,
|
|
514
|
-
.pf-c-page__main-tabs.pf-m-sticky-bottom,
|
|
515
|
-
.pf-c-page__main-section.pf-m-sticky-bottom,
|
|
516
|
-
.pf-c-page__main-wizard.pf-m-sticky-bottom,
|
|
517
|
-
.pf-c-page__main-group.pf-m-sticky-bottom,
|
|
518
|
-
.pf-c-page__main-subnav.pf-m-sticky-bottom {
|
|
519
|
-
position: sticky;
|
|
520
|
-
bottom: 0;
|
|
521
|
-
z-index: var(--pf-c-page--section--m-sticky-bottom--ZIndex);
|
|
522
|
-
box-shadow: var(--pf-c-page--section--m-sticky-bottom--BoxShadow);
|
|
523
|
-
}
|
|
524
500
|
.pf-c-page__main-nav.pf-m-overflow-scroll,
|
|
525
501
|
.pf-c-page__main-breadcrumb.pf-m-overflow-scroll,
|
|
526
502
|
.pf-c-page__main-tabs.pf-m-overflow-scroll,
|
|
@@ -552,6 +528,160 @@
|
|
|
552
528
|
z-index: var(--pf-c-page--section--m-shadow-top--ZIndex);
|
|
553
529
|
box-shadow: var(--pf-c-page--section--m-shadow-top--BoxShadow);
|
|
554
530
|
}
|
|
531
|
+
.pf-c-page__main-nav.pf-m-sticky-top,
|
|
532
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-top,
|
|
533
|
+
.pf-c-page__main-tabs.pf-m-sticky-top,
|
|
534
|
+
.pf-c-page__main-section.pf-m-sticky-top,
|
|
535
|
+
.pf-c-page__main-wizard.pf-m-sticky-top,
|
|
536
|
+
.pf-c-page__main-group.pf-m-sticky-top,
|
|
537
|
+
.pf-c-page__main-subnav.pf-m-sticky-top {
|
|
538
|
+
position: sticky;
|
|
539
|
+
top: 0;
|
|
540
|
+
z-index: var(--pf-c-page--section--m-sticky-top--ZIndex);
|
|
541
|
+
box-shadow: var(--pf-c-page--section--m-sticky-top--BoxShadow);
|
|
542
|
+
}
|
|
543
|
+
.pf-c-page__main-nav.pf-m-sticky-bottom,
|
|
544
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-bottom,
|
|
545
|
+
.pf-c-page__main-tabs.pf-m-sticky-bottom,
|
|
546
|
+
.pf-c-page__main-section.pf-m-sticky-bottom,
|
|
547
|
+
.pf-c-page__main-wizard.pf-m-sticky-bottom,
|
|
548
|
+
.pf-c-page__main-group.pf-m-sticky-bottom,
|
|
549
|
+
.pf-c-page__main-subnav.pf-m-sticky-bottom {
|
|
550
|
+
position: sticky;
|
|
551
|
+
bottom: 0;
|
|
552
|
+
z-index: var(--pf-c-page--section--m-sticky-bottom--ZIndex);
|
|
553
|
+
box-shadow: var(--pf-c-page--section--m-sticky-bottom--BoxShadow);
|
|
554
|
+
}
|
|
555
|
+
@media (min-height: 0) {
|
|
556
|
+
.pf-c-page__main-nav.pf-m-sticky-top-on-sm-height,
|
|
557
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-top-on-sm-height,
|
|
558
|
+
.pf-c-page__main-tabs.pf-m-sticky-top-on-sm-height,
|
|
559
|
+
.pf-c-page__main-section.pf-m-sticky-top-on-sm-height,
|
|
560
|
+
.pf-c-page__main-wizard.pf-m-sticky-top-on-sm-height,
|
|
561
|
+
.pf-c-page__main-group.pf-m-sticky-top-on-sm-height,
|
|
562
|
+
.pf-c-page__main-subnav.pf-m-sticky-top-on-sm-height {
|
|
563
|
+
position: sticky;
|
|
564
|
+
top: 0;
|
|
565
|
+
z-index: var(--pf-c-page--section--m-sticky-top--ZIndex);
|
|
566
|
+
box-shadow: var(--pf-c-page--section--m-sticky-top--BoxShadow);
|
|
567
|
+
}
|
|
568
|
+
.pf-c-page__main-nav.pf-m-sticky-bottom-on-sm-height,
|
|
569
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-bottom-on-sm-height,
|
|
570
|
+
.pf-c-page__main-tabs.pf-m-sticky-bottom-on-sm-height,
|
|
571
|
+
.pf-c-page__main-section.pf-m-sticky-bottom-on-sm-height,
|
|
572
|
+
.pf-c-page__main-wizard.pf-m-sticky-bottom-on-sm-height,
|
|
573
|
+
.pf-c-page__main-group.pf-m-sticky-bottom-on-sm-height,
|
|
574
|
+
.pf-c-page__main-subnav.pf-m-sticky-bottom-on-sm-height {
|
|
575
|
+
position: sticky;
|
|
576
|
+
bottom: 0;
|
|
577
|
+
z-index: var(--pf-c-page--section--m-sticky-bottom--ZIndex);
|
|
578
|
+
box-shadow: var(--pf-c-page--section--m-sticky-bottom--BoxShadow);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
@media (min-height: 40rem) {
|
|
582
|
+
.pf-c-page__main-nav.pf-m-sticky-top-on-md-height,
|
|
583
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-top-on-md-height,
|
|
584
|
+
.pf-c-page__main-tabs.pf-m-sticky-top-on-md-height,
|
|
585
|
+
.pf-c-page__main-section.pf-m-sticky-top-on-md-height,
|
|
586
|
+
.pf-c-page__main-wizard.pf-m-sticky-top-on-md-height,
|
|
587
|
+
.pf-c-page__main-group.pf-m-sticky-top-on-md-height,
|
|
588
|
+
.pf-c-page__main-subnav.pf-m-sticky-top-on-md-height {
|
|
589
|
+
position: sticky;
|
|
590
|
+
top: 0;
|
|
591
|
+
z-index: var(--pf-c-page--section--m-sticky-top--ZIndex);
|
|
592
|
+
box-shadow: var(--pf-c-page--section--m-sticky-top--BoxShadow);
|
|
593
|
+
}
|
|
594
|
+
.pf-c-page__main-nav.pf-m-sticky-bottom-on-md-height,
|
|
595
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-bottom-on-md-height,
|
|
596
|
+
.pf-c-page__main-tabs.pf-m-sticky-bottom-on-md-height,
|
|
597
|
+
.pf-c-page__main-section.pf-m-sticky-bottom-on-md-height,
|
|
598
|
+
.pf-c-page__main-wizard.pf-m-sticky-bottom-on-md-height,
|
|
599
|
+
.pf-c-page__main-group.pf-m-sticky-bottom-on-md-height,
|
|
600
|
+
.pf-c-page__main-subnav.pf-m-sticky-bottom-on-md-height {
|
|
601
|
+
position: sticky;
|
|
602
|
+
bottom: 0;
|
|
603
|
+
z-index: var(--pf-c-page--section--m-sticky-bottom--ZIndex);
|
|
604
|
+
box-shadow: var(--pf-c-page--section--m-sticky-bottom--BoxShadow);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
@media (min-height: 48rem) {
|
|
608
|
+
.pf-c-page__main-nav.pf-m-sticky-top-on-lg-height,
|
|
609
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-top-on-lg-height,
|
|
610
|
+
.pf-c-page__main-tabs.pf-m-sticky-top-on-lg-height,
|
|
611
|
+
.pf-c-page__main-section.pf-m-sticky-top-on-lg-height,
|
|
612
|
+
.pf-c-page__main-wizard.pf-m-sticky-top-on-lg-height,
|
|
613
|
+
.pf-c-page__main-group.pf-m-sticky-top-on-lg-height,
|
|
614
|
+
.pf-c-page__main-subnav.pf-m-sticky-top-on-lg-height {
|
|
615
|
+
position: sticky;
|
|
616
|
+
top: 0;
|
|
617
|
+
z-index: var(--pf-c-page--section--m-sticky-top--ZIndex);
|
|
618
|
+
box-shadow: var(--pf-c-page--section--m-sticky-top--BoxShadow);
|
|
619
|
+
}
|
|
620
|
+
.pf-c-page__main-nav.pf-m-sticky-bottom-on-lg-height,
|
|
621
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-bottom-on-lg-height,
|
|
622
|
+
.pf-c-page__main-tabs.pf-m-sticky-bottom-on-lg-height,
|
|
623
|
+
.pf-c-page__main-section.pf-m-sticky-bottom-on-lg-height,
|
|
624
|
+
.pf-c-page__main-wizard.pf-m-sticky-bottom-on-lg-height,
|
|
625
|
+
.pf-c-page__main-group.pf-m-sticky-bottom-on-lg-height,
|
|
626
|
+
.pf-c-page__main-subnav.pf-m-sticky-bottom-on-lg-height {
|
|
627
|
+
position: sticky;
|
|
628
|
+
bottom: 0;
|
|
629
|
+
z-index: var(--pf-c-page--section--m-sticky-bottom--ZIndex);
|
|
630
|
+
box-shadow: var(--pf-c-page--section--m-sticky-bottom--BoxShadow);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
@media (min-height: 60rem) {
|
|
634
|
+
.pf-c-page__main-nav.pf-m-sticky-top-on-xl-height,
|
|
635
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-top-on-xl-height,
|
|
636
|
+
.pf-c-page__main-tabs.pf-m-sticky-top-on-xl-height,
|
|
637
|
+
.pf-c-page__main-section.pf-m-sticky-top-on-xl-height,
|
|
638
|
+
.pf-c-page__main-wizard.pf-m-sticky-top-on-xl-height,
|
|
639
|
+
.pf-c-page__main-group.pf-m-sticky-top-on-xl-height,
|
|
640
|
+
.pf-c-page__main-subnav.pf-m-sticky-top-on-xl-height {
|
|
641
|
+
position: sticky;
|
|
642
|
+
top: 0;
|
|
643
|
+
z-index: var(--pf-c-page--section--m-sticky-top--ZIndex);
|
|
644
|
+
box-shadow: var(--pf-c-page--section--m-sticky-top--BoxShadow);
|
|
645
|
+
}
|
|
646
|
+
.pf-c-page__main-nav.pf-m-sticky-bottom-on-xl-height,
|
|
647
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-bottom-on-xl-height,
|
|
648
|
+
.pf-c-page__main-tabs.pf-m-sticky-bottom-on-xl-height,
|
|
649
|
+
.pf-c-page__main-section.pf-m-sticky-bottom-on-xl-height,
|
|
650
|
+
.pf-c-page__main-wizard.pf-m-sticky-bottom-on-xl-height,
|
|
651
|
+
.pf-c-page__main-group.pf-m-sticky-bottom-on-xl-height,
|
|
652
|
+
.pf-c-page__main-subnav.pf-m-sticky-bottom-on-xl-height {
|
|
653
|
+
position: sticky;
|
|
654
|
+
bottom: 0;
|
|
655
|
+
z-index: var(--pf-c-page--section--m-sticky-bottom--ZIndex);
|
|
656
|
+
box-shadow: var(--pf-c-page--section--m-sticky-bottom--BoxShadow);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
@media (min-height: 80rem) {
|
|
660
|
+
.pf-c-page__main-nav.pf-m-sticky-top-on-2xl-height,
|
|
661
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-top-on-2xl-height,
|
|
662
|
+
.pf-c-page__main-tabs.pf-m-sticky-top-on-2xl-height,
|
|
663
|
+
.pf-c-page__main-section.pf-m-sticky-top-on-2xl-height,
|
|
664
|
+
.pf-c-page__main-wizard.pf-m-sticky-top-on-2xl-height,
|
|
665
|
+
.pf-c-page__main-group.pf-m-sticky-top-on-2xl-height,
|
|
666
|
+
.pf-c-page__main-subnav.pf-m-sticky-top-on-2xl-height {
|
|
667
|
+
position: sticky;
|
|
668
|
+
top: 0;
|
|
669
|
+
z-index: var(--pf-c-page--section--m-sticky-top--ZIndex);
|
|
670
|
+
box-shadow: var(--pf-c-page--section--m-sticky-top--BoxShadow);
|
|
671
|
+
}
|
|
672
|
+
.pf-c-page__main-nav.pf-m-sticky-bottom-on-2xl-height,
|
|
673
|
+
.pf-c-page__main-breadcrumb.pf-m-sticky-bottom-on-2xl-height,
|
|
674
|
+
.pf-c-page__main-tabs.pf-m-sticky-bottom-on-2xl-height,
|
|
675
|
+
.pf-c-page__main-section.pf-m-sticky-bottom-on-2xl-height,
|
|
676
|
+
.pf-c-page__main-wizard.pf-m-sticky-bottom-on-2xl-height,
|
|
677
|
+
.pf-c-page__main-group.pf-m-sticky-bottom-on-2xl-height,
|
|
678
|
+
.pf-c-page__main-subnav.pf-m-sticky-bottom-on-2xl-height {
|
|
679
|
+
position: sticky;
|
|
680
|
+
bottom: 0;
|
|
681
|
+
z-index: var(--pf-c-page--section--m-sticky-bottom--ZIndex);
|
|
682
|
+
box-shadow: var(--pf-c-page--section--m-sticky-bottom--BoxShadow);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
555
685
|
|
|
556
686
|
.pf-c-page__main,
|
|
557
687
|
.pf-c-page__drawer {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
$pf-c-page--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
|
|
2
|
+
$pf-c-page--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
|
|
2
3
|
|
|
3
4
|
// URL.com/guidelines#layout
|
|
4
5
|
.pf-c-page {
|
|
@@ -477,20 +478,6 @@ $pf-c-page--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl",
|
|
|
477
478
|
.pf-c-page__main-subnav {
|
|
478
479
|
flex-shrink: 0;
|
|
479
480
|
|
|
480
|
-
&.pf-m-sticky-top {
|
|
481
|
-
position: sticky;
|
|
482
|
-
top: 0;
|
|
483
|
-
z-index: var(--pf-c-page--section--m-sticky-top--ZIndex);
|
|
484
|
-
box-shadow: var(--pf-c-page--section--m-sticky-top--BoxShadow);
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
&.pf-m-sticky-bottom {
|
|
488
|
-
position: sticky;
|
|
489
|
-
bottom: 0;
|
|
490
|
-
z-index: var(--pf-c-page--section--m-sticky-bottom--ZIndex);
|
|
491
|
-
box-shadow: var(--pf-c-page--section--m-sticky-bottom--BoxShadow);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
481
|
&.pf-m-overflow-scroll {
|
|
495
482
|
position: relative;
|
|
496
483
|
flex-shrink: 1;
|
|
@@ -506,6 +493,28 @@ $pf-c-page--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl",
|
|
|
506
493
|
z-index: var(--pf-c-page--section--m-shadow-top--ZIndex);
|
|
507
494
|
box-shadow: var(--pf-c-page--section--m-shadow-top--BoxShadow);
|
|
508
495
|
}
|
|
496
|
+
|
|
497
|
+
// Responsive height modifiers for sticky top/bottom
|
|
498
|
+
@each $breakpoint, $breakpoint-value in $pf-c-page--height-breakpoint-map {
|
|
499
|
+
$breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}-height, "");
|
|
500
|
+
|
|
501
|
+
@include pf-apply-height-breakpoint($breakpoint) {
|
|
502
|
+
|
|
503
|
+
&.pf-m-sticky-top#{$breakpoint-name} {
|
|
504
|
+
position: sticky;
|
|
505
|
+
top: 0;
|
|
506
|
+
z-index: var(--pf-c-page--section--m-sticky-top--ZIndex);
|
|
507
|
+
box-shadow: var(--pf-c-page--section--m-sticky-top--BoxShadow);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
&.pf-m-sticky-bottom#{$breakpoint-name} {
|
|
511
|
+
position: sticky;
|
|
512
|
+
bottom: 0;
|
|
513
|
+
z-index: var(--pf-c-page--section--m-sticky-bottom--ZIndex);
|
|
514
|
+
box-shadow: var(--pf-c-page--section--m-sticky-bottom--BoxShadow);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
509
518
|
}
|
|
510
519
|
|
|
511
520
|
// Main & Drawer
|
|
@@ -223,6 +223,7 @@
|
|
|
223
223
|
font-weight: var(--pf-c-progress-stepper__step-title--FontWeight);
|
|
224
224
|
color: var(--pf-c-progress-stepper__step-title--Color);
|
|
225
225
|
text-align: var(--pf-c-progress-stepper__step-title--TextAlign);
|
|
226
|
+
border: 0;
|
|
226
227
|
}
|
|
227
228
|
.pf-c-progress-stepper__step-title.pf-m-help-text {
|
|
228
229
|
text-decoration: underline;
|
|
@@ -272,6 +272,7 @@
|
|
|
272
272
|
font-weight: var(--pf-c-progress-stepper__step-title--FontWeight);
|
|
273
273
|
color: var(--pf-c-progress-stepper__step-title--Color);
|
|
274
274
|
text-align: var(--pf-c-progress-stepper__step-title--TextAlign);
|
|
275
|
+
border: 0;
|
|
275
276
|
|
|
276
277
|
&.pf-m-help-text {
|
|
277
278
|
text-decoration: underline;
|
|
@@ -304,12 +304,14 @@
|
|
|
304
304
|
border-bottom: 0;
|
|
305
305
|
}
|
|
306
306
|
.pf-c-table.pf-m-sticky-header > thead > tr > * {
|
|
307
|
+
z-index: var(--pf-global--ZIndex--xs);
|
|
308
|
+
}
|
|
309
|
+
.pf-c-table.pf-m-sticky-header > thead:not(.pf-m-nested-column-header) > tr > * {
|
|
307
310
|
position: sticky;
|
|
308
311
|
top: 0;
|
|
309
|
-
z-index: var(--pf-global--ZIndex--xs);
|
|
310
312
|
background: var(--pf-c-table--BackgroundColor);
|
|
311
313
|
}
|
|
312
|
-
.pf-c-table.pf-m-sticky-header > thead > tr > *::after {
|
|
314
|
+
.pf-c-table.pf-m-sticky-header > thead:not(.pf-m-nested-column-header) > tr > *::after {
|
|
313
315
|
position: absolute;
|
|
314
316
|
right: 0;
|
|
315
317
|
bottom: 0;
|
|
@@ -317,6 +319,27 @@
|
|
|
317
319
|
content: "";
|
|
318
320
|
border-bottom: var(--pf-c-table--border-width--base) solid var(--pf-c-table--BorderColor);
|
|
319
321
|
}
|
|
322
|
+
.pf-c-table.pf-m-sticky-header > .pf-m-nested-column-header {
|
|
323
|
+
position: sticky;
|
|
324
|
+
top: 0;
|
|
325
|
+
z-index: var(--pf-global--ZIndex--xs);
|
|
326
|
+
background: var(--pf-c-table--BackgroundColor);
|
|
327
|
+
}
|
|
328
|
+
.pf-c-table.pf-m-sticky-header > .pf-m-nested-column-header > .pf-m-border-row {
|
|
329
|
+
height: var(--pf-c-table--border-width--base);
|
|
330
|
+
background-color: var(--pf-c-table--BorderColor);
|
|
331
|
+
}
|
|
332
|
+
.pf-c-table.pf-m-sticky-header > .pf-m-nested-column-header tr:not(:nth-last-child(2)) th:not([rowspan]),
|
|
333
|
+
.pf-c-table.pf-m-sticky-header > .pf-m-nested-column-header tr:not(:nth-last-child(2)) td:not([rowspan]) {
|
|
334
|
+
--pf-c-table--cell--PaddingBottom: var(--pf-c-table--thead--m-nested-column-header--tr--PaddingBottom);
|
|
335
|
+
}
|
|
336
|
+
.pf-c-table:not(.pf-m-sticky-header) > .pf-m-nested-column-header tr:not(:last-child) {
|
|
337
|
+
border-bottom: 0;
|
|
338
|
+
}
|
|
339
|
+
.pf-c-table:not(.pf-m-sticky-header) > .pf-m-nested-column-header tr:not(:last-child) th:not([rowspan]),
|
|
340
|
+
.pf-c-table:not(.pf-m-sticky-header) > .pf-m-nested-column-header tr:not(:last-child) td:not([rowspan]) {
|
|
341
|
+
--pf-c-table--cell--PaddingBottom: var(--pf-c-table--thead--m-nested-column-header--tr--PaddingBottom);
|
|
342
|
+
}
|
|
320
343
|
.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
344
|
.pf-c-table > .pf-m-striped > tr:nth-child(odd),
|
|
322
345
|
.pf-c-table > .pf-m-striped-even > tr:nth-child(even),
|
|
@@ -414,13 +437,6 @@
|
|
|
414
437
|
.pf-c-table thead.pf-m-nested-column-header tr:not(:first-child) td:not([rowspan]) {
|
|
415
438
|
--pf-c-table--cell--PaddingTop: var(--pf-c-table--thead--m-nested-column-header--tr--PaddingTop);
|
|
416
439
|
}
|
|
417
|
-
.pf-c-table thead.pf-m-nested-column-header tr:not(:last-child) {
|
|
418
|
-
--pf-c-table--border-width--base: 0;
|
|
419
|
-
}
|
|
420
|
-
.pf-c-table thead.pf-m-nested-column-header tr:not(:last-child) th:not([rowspan]),
|
|
421
|
-
.pf-c-table thead.pf-m-nested-column-header tr:not(:last-child) td:not([rowspan]) {
|
|
422
|
-
--pf-c-table--cell--PaddingBottom: var(--pf-c-table--thead--m-nested-column-header--tr--PaddingBottom);
|
|
423
|
-
}
|
|
424
440
|
.pf-c-table thead .pf-c-table__subhead {
|
|
425
441
|
--pf-c-table__sort__button__text--Color: var(--pf-c-table__subhead--Color);
|
|
426
442
|
color: var(--pf-c-table__subhead--Color);
|
|
@@ -330,9 +330,15 @@
|
|
|
330
330
|
border-bottom: 0;
|
|
331
331
|
|
|
332
332
|
> * {
|
|
333
|
+
z-index: var(--pf-global--ZIndex--xs); // set z-index here to allow sticky column to override
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// standard sticky headers
|
|
338
|
+
> thead:not(.pf-m-nested-column-header) {
|
|
339
|
+
> tr > * {
|
|
333
340
|
position: sticky;
|
|
334
341
|
top: 0;
|
|
335
|
-
z-index: var(--pf-global--ZIndex--xs);
|
|
336
342
|
background: var(--pf-c-table--BackgroundColor);
|
|
337
343
|
|
|
338
344
|
// stylelint-disable-next-line
|
|
@@ -346,6 +352,45 @@
|
|
|
346
352
|
}
|
|
347
353
|
}
|
|
348
354
|
}
|
|
355
|
+
|
|
356
|
+
// nested column header
|
|
357
|
+
> .pf-m-nested-column-header {
|
|
358
|
+
position: sticky;
|
|
359
|
+
top: 0;
|
|
360
|
+
z-index: var(--pf-global--ZIndex--xs);
|
|
361
|
+
background: var(--pf-c-table--BackgroundColor);
|
|
362
|
+
|
|
363
|
+
> .pf-m-border-row {
|
|
364
|
+
height: var(--pf-c-table--border-width--base);
|
|
365
|
+
background-color: var(--pf-c-table--BorderColor);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
tr:not(:nth-last-child(2)) {
|
|
369
|
+
// stylelint-disable max-nesting-depth
|
|
370
|
+
th,
|
|
371
|
+
td {
|
|
372
|
+
&:not([rowspan]) {
|
|
373
|
+
--pf-c-table--cell--PaddingBottom: var(--pf-c-table--thead--m-nested-column-header--tr--PaddingBottom);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
// stylelint-enable
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&:not(.pf-m-sticky-header) > .pf-m-nested-column-header {
|
|
382
|
+
tr:not(:last-child) {
|
|
383
|
+
border-bottom: 0; // hard reset tr borders in nested headers
|
|
384
|
+
|
|
385
|
+
// stylelint-disable max-nesting-depth
|
|
386
|
+
th,
|
|
387
|
+
td {
|
|
388
|
+
&:not([rowspan]) {
|
|
389
|
+
--pf-c-table--cell--PaddingBottom: var(--pf-c-table--thead--m-nested-column-header--tr--PaddingBottom);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
// stylelint-enable
|
|
393
|
+
}
|
|
349
394
|
}
|
|
350
395
|
|
|
351
396
|
// For regular and expandable tables
|
|
@@ -488,16 +533,6 @@
|
|
|
488
533
|
}
|
|
489
534
|
}
|
|
490
535
|
|
|
491
|
-
tr:not(:last-child) {
|
|
492
|
-
--pf-c-table--border-width--base: 0; // hard reset tr borders in nested headers
|
|
493
|
-
|
|
494
|
-
th,
|
|
495
|
-
td {
|
|
496
|
-
&:not([rowspan]) {
|
|
497
|
-
--pf-c-table--cell--PaddingBottom: var(--pf-c-table--thead--m-nested-column-header--tr--PaddingBottom);
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
536
|
}
|
|
502
537
|
// stylelint-enable
|
|
503
538
|
|
package/components/Tabs/tabs.css
CHANGED
|
@@ -122,6 +122,15 @@
|
|
|
122
122
|
--pf-c-tabs__add--c-button--PaddingTop: var(--pf-c-tabs__link--PaddingTop);
|
|
123
123
|
--pf-c-tabs__add--c-button--PaddingBottom: var(--pf-c-tabs__link--PaddingBottom);
|
|
124
124
|
--pf-c-tabs__add--c-button--OutlineOffset: calc(-1 * var(--pf-global--spacer--xs));
|
|
125
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-global--Color--200);
|
|
126
|
+
--pf-c-tabs__link-toggle-icon--Transition: .2s ease-in 0s;
|
|
127
|
+
--pf-c-tabs__link-toggle-icon--Rotate: 0;
|
|
128
|
+
--pf-c-tabs__link-toggle-icon--FontSize: var(--pf-global--FontSize--sm);
|
|
129
|
+
--pf-c-tabs__link--m-expanded__toggle-icon--Color: var(--pf-global--Color--100);
|
|
130
|
+
--pf-c-tabs__link--m-expanded__toggle-icon--Rotate: 90deg;
|
|
131
|
+
--pf-c-tabs__link--hover__toggle-icon--Color: var(--pf-global--Color--100);
|
|
132
|
+
--pf-c-tabs__link--active__toggle-icon--Color: var(--pf-global--Color--100);
|
|
133
|
+
--pf-c-tabs__link--focus__toggle-icon--Color: var(--pf-global--Color--100);
|
|
125
134
|
position: relative;
|
|
126
135
|
display: flex;
|
|
127
136
|
width: var(--pf-c-tabs--Width);
|
|
@@ -550,6 +559,15 @@
|
|
|
550
559
|
--pf-c-tabs__link--after--BorderWidth: var(--pf-c-tabs__link--active--after--BorderWidth);
|
|
551
560
|
}
|
|
552
561
|
|
|
562
|
+
.pf-c-tabs__link:hover {
|
|
563
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-c-tabs__link--hover__toggle-icon--Color);
|
|
564
|
+
}
|
|
565
|
+
.pf-c-tabs__link:focus {
|
|
566
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-c-tabs__link--focus__toggle-icon--Color);
|
|
567
|
+
}
|
|
568
|
+
.pf-c-tabs__link:active, .pf-c-tabs__link.pf-m-active {
|
|
569
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-c-tabs__link--active__toggle-icon--Color);
|
|
570
|
+
}
|
|
553
571
|
.pf-c-tabs__link:disabled, .pf-c-tabs__link.pf-m-disabled {
|
|
554
572
|
pointer-events: none;
|
|
555
573
|
}
|
|
@@ -573,6 +591,18 @@
|
|
|
573
591
|
.pf-c-tabs__link .pf-c-tabs__item-text:last-child {
|
|
574
592
|
--pf-c-tabs__link--child--MarginRight: 0;
|
|
575
593
|
}
|
|
594
|
+
.pf-c-tabs__link.pf-m-expanded {
|
|
595
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-c-tabs__link--m-expanded__toggle-icon--Color);
|
|
596
|
+
--pf-c-tabs__link-toggle-icon--Rotate: var(--pf-c-tabs__link--m-expanded__toggle-icon--Rotate);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.pf-c-tabs__link-toggle-icon {
|
|
600
|
+
align-self: end;
|
|
601
|
+
font-size: var(--pf-c-tabs__link-toggle-icon--FontSize);
|
|
602
|
+
color: var(--pf-c-tabs__link-toggle-icon--Color);
|
|
603
|
+
transition: var(--pf-c-tabs__link-toggle-icon--Transition);
|
|
604
|
+
transform: rotate(var(--pf-c-tabs__link-toggle-icon--Rotate));
|
|
605
|
+
}
|
|
576
606
|
|
|
577
607
|
.pf-c-tabs__item-close {
|
|
578
608
|
display: flex;
|
|
@@ -156,6 +156,17 @@ $pf-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
|
156
156
|
--pf-c-tabs__add--c-button--PaddingBottom: var(--pf-c-tabs__link--PaddingBottom);
|
|
157
157
|
--pf-c-tabs__add--c-button--OutlineOffset: calc(-1 * var(--pf-global--spacer--xs));
|
|
158
158
|
|
|
159
|
+
// Overflow menu toggle icon
|
|
160
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-global--Color--200);
|
|
161
|
+
--pf-c-tabs__link-toggle-icon--Transition: .2s ease-in 0s;
|
|
162
|
+
--pf-c-tabs__link-toggle-icon--Rotate: 0;
|
|
163
|
+
--pf-c-tabs__link-toggle-icon--FontSize: var(--pf-global--FontSize--sm);
|
|
164
|
+
--pf-c-tabs__link--m-expanded__toggle-icon--Color: var(--pf-global--Color--100);
|
|
165
|
+
--pf-c-tabs__link--m-expanded__toggle-icon--Rotate: 90deg;
|
|
166
|
+
--pf-c-tabs__link--hover__toggle-icon--Color: var(--pf-global--Color--100);
|
|
167
|
+
--pf-c-tabs__link--active__toggle-icon--Color: var(--pf-global--Color--100);
|
|
168
|
+
--pf-c-tabs__link--focus__toggle-icon--Color: var(--pf-global--Color--100);
|
|
169
|
+
|
|
159
170
|
@media screen and (min-width: $pf-global--breakpoint--xl) {
|
|
160
171
|
--pf-c-tabs__scroll-button--Width: var(--pf-c-tabs__scroll-button--xl--Width);
|
|
161
172
|
--pf-c-tabs--m-page-insets--inset: var(--pf-c-tabs--m-page-insets--xl--inset);
|
|
@@ -628,6 +639,19 @@ $pf-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
|
628
639
|
}
|
|
629
640
|
}
|
|
630
641
|
|
|
642
|
+
&:hover {
|
|
643
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-c-tabs__link--hover__toggle-icon--Color);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
&:focus {
|
|
647
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-c-tabs__link--focus__toggle-icon--Color);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
&:active,
|
|
651
|
+
&.pf-m-active {
|
|
652
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-c-tabs__link--active__toggle-icon--Color);
|
|
653
|
+
}
|
|
654
|
+
|
|
631
655
|
&:disabled,
|
|
632
656
|
&.pf-m-disabled {
|
|
633
657
|
pointer-events: none;
|
|
@@ -658,6 +682,19 @@ $pf-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
|
658
682
|
--pf-c-tabs__link--child--MarginRight: 0;
|
|
659
683
|
}
|
|
660
684
|
}
|
|
685
|
+
|
|
686
|
+
&.pf-m-expanded {
|
|
687
|
+
--pf-c-tabs__link-toggle-icon--Color: var(--pf-c-tabs__link--m-expanded__toggle-icon--Color);
|
|
688
|
+
--pf-c-tabs__link-toggle-icon--Rotate: var(--pf-c-tabs__link--m-expanded__toggle-icon--Rotate);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.pf-c-tabs__link-toggle-icon {
|
|
693
|
+
align-self: end;
|
|
694
|
+
font-size: var(--pf-c-tabs__link-toggle-icon--FontSize);
|
|
695
|
+
color: var(--pf-c-tabs__link-toggle-icon--Color);
|
|
696
|
+
transition: var(--pf-c-tabs__link-toggle-icon--Transition);
|
|
697
|
+
transform: rotate(var(--pf-c-tabs__link-toggle-icon--Rotate));
|
|
661
698
|
}
|
|
662
699
|
|
|
663
700
|
.pf-c-tabs__item-close {
|
|
@@ -224,8 +224,8 @@ This component provides the basic chrome for a page, including sidebar, header,
|
|
|
224
224
|
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-c-page__header-tools-group`, `.pf-c-page__header-tools-item` | Shows a header tools group or item at an optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
225
225
|
| `.pf-m-limit-width` | `.pf-c-page__main-section` | Modifies a page section to limit the `max-width` of the content inside. |
|
|
226
226
|
| `.pf-m-align-center` | `.pf-c-page__main-section.pf-m-limit-width` | Modifies a page section body to align center. |
|
|
227
|
-
| `.pf-m-sticky-top`
|
|
228
|
-
| `.pf-m-sticky-bottom`
|
|
227
|
+
| `.pf-m-sticky-top{-on-[breakpoint]-height}` | `.pf-c-page__main-*` | Modifies a section/group to be sticky to the top of its container at an optional height breakpoint. |
|
|
228
|
+
| `.pf-m-sticky-bottom{-on-[breakpoint]-height}` | `.pf-c-page__main-*` | Modifies a section/group to be sticky to the bottom of its container at an optional height breakpoint. |
|
|
229
229
|
| `.pf-m-shadow-bottom` | `.pf-c-page__main-*` | Modifies a section/group to have a bottom shadow. |
|
|
230
230
|
| `.pf-m-shadow-top` | `.pf-c-page__main-*` | Modifies a section/group to have a top shadow. |
|
|
231
231
|
| `.pf-m-overflow-scroll` | `.pf-c-page__main-*` | Modifies a section/group to show a scrollbar if it has overflow content. |
|
|
@@ -470,12 +470,10 @@ cssPrefix: pf-c-progress-stepper
|
|
|
470
470
|
</span>
|
|
471
471
|
</div>
|
|
472
472
|
<div class="pf-c-progress-stepper__step-main">
|
|
473
|
-
<
|
|
473
|
+
<button
|
|
474
474
|
class="pf-c-progress-stepper__step-title pf-m-help-text"
|
|
475
|
-
role="button"
|
|
476
475
|
type="button"
|
|
477
|
-
|
|
478
|
-
>First step</span>
|
|
476
|
+
>First step</button>
|
|
479
477
|
</div>
|
|
480
478
|
</li>
|
|
481
479
|
<li
|
|
@@ -488,12 +486,10 @@ cssPrefix: pf-c-progress-stepper
|
|
|
488
486
|
</span>
|
|
489
487
|
</div>
|
|
490
488
|
<div class="pf-c-progress-stepper__step-main">
|
|
491
|
-
<
|
|
489
|
+
<button
|
|
492
490
|
class="pf-c-progress-stepper__step-title pf-m-help-text"
|
|
493
|
-
role="button"
|
|
494
491
|
type="button"
|
|
495
|
-
|
|
496
|
-
>Second step</span>
|
|
492
|
+
>Second step</button>
|
|
497
493
|
</div>
|
|
498
494
|
</li>
|
|
499
495
|
<li
|
|
@@ -506,12 +502,10 @@ cssPrefix: pf-c-progress-stepper
|
|
|
506
502
|
</span>
|
|
507
503
|
</div>
|
|
508
504
|
<div class="pf-c-progress-stepper__step-main">
|
|
509
|
-
<
|
|
505
|
+
<button
|
|
510
506
|
class="pf-c-progress-stepper__step-title pf-m-help-text"
|
|
511
|
-
role="button"
|
|
512
507
|
type="button"
|
|
513
|
-
|
|
514
|
-
>Third step</span>
|
|
508
|
+
>Third step</button>
|
|
515
509
|
</div>
|
|
516
510
|
</li>
|
|
517
511
|
<li
|
|
@@ -555,7 +549,7 @@ Steps can be modified with `.pf-m-success`, `.pf-m-warning`, `.pf-m-danger`, and
|
|
|
555
549
|
| `.progress-stepper__step-connector` | `<div>` | Creates the connecting line between steps **Required** |
|
|
556
550
|
| `.progress-stepper__step-icon` | `<span>` | Creates the step node and contains the icon designating the type of step. This element is required, but may be empty if no icon is used for the step. **Required** |
|
|
557
551
|
| `.progress-stepper__step-main` | `<div>` | Contains the main text content of the step. This element is required, but may be empty if title and description are not used. **Required** |
|
|
558
|
-
| `.progress-stepper__step-title` | `<div>`
|
|
552
|
+
| `.progress-stepper__step-title` | `<div>`, `<button>` | Contains the title of the step. **Note:** the step title is a `<button>` when it has `.pf-m-help-text` and is used to trigger a popover with help text. |
|
|
559
553
|
| `.progress-stepper__step-description` | `<div>` | Contains the description of the step. |
|
|
560
554
|
| `.pf-m-center` | `.pf-c-progress-stepper` | Modifies to center each step. |
|
|
561
555
|
| `.pf-m-vertical` | `.pf-c-progress-stepper` | Modifies for vertical orientation. |
|