@patternfly/patternfly 4.207.0 → 4.209.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/_base.scss +2 -0
- package/base/_common.scss +3 -1
- package/base/_fonts.scss +1 -1
- package/base/patternfly-common.css +1 -1
- package/components/Page/page.css +4 -0
- package/components/Page/page.scss +6 -0
- package/components/Table/table-scrollable.css +2 -1
- package/components/Table/table-scrollable.scss +2 -1
- package/docs/components/Page/examples/Page.md +1 -0
- package/docs/demos/Page/examples/Page.md +925 -1
- package/package.json +3 -3
- package/patternfly-base-no-reset.css +1 -1
- package/patternfly-base.css +1 -1
- package/patternfly-no-reset.css +7 -2
- package/patternfly.css +7 -2
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
package/base/_base.scss
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// stylelint-disable no-invalid-position-at-import-rule
|
|
2
2
|
|
|
3
|
+
// remove in breaking change
|
|
3
4
|
@if $pf-global--load-pf-3 {
|
|
4
5
|
@import url("https://fonts.googleapis.com/css?family=Open+Sans");
|
|
5
6
|
@import url("https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.37.10/css/patternfly.min.css");
|
|
6
7
|
@import url("https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.37.10/css/patternfly-additions.min.css");
|
|
7
8
|
}
|
|
8
9
|
|
|
10
|
+
// remove pf3 shield styles in breaking change
|
|
9
11
|
@import "shield-inheritable";
|
|
10
12
|
@import "shield-noninheritable";
|
|
11
13
|
|
package/base/_common.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Set common reset styles for patternfly components
|
|
2
|
+
// remove in breaking change. this should come from globals, and can be opted out
|
|
2
3
|
[class*="pf-c-"] {
|
|
3
4
|
&,
|
|
4
5
|
&::before,
|
|
@@ -9,13 +10,14 @@
|
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
// remove in breaking change
|
|
12
14
|
@if $pf-global--unset-root-font-size {
|
|
13
15
|
// Since PF3 sets root font size to 10px, we need to unset it.
|
|
14
16
|
// This doesn't affect PF3.
|
|
15
17
|
// https://github.com/twbs/bootstrap/blob/v3.4.0/less/scaffolding.less#L23
|
|
16
18
|
// stylelint-disable
|
|
17
19
|
html {
|
|
18
|
-
font-size: unset !important; // the important is needed because we don't know if pf3 will be loaded after pfnext
|
|
20
|
+
font-size: var(--pf-global--root--FontSize, unset) !important; // the important is needed because we don't know if pf3 will be loaded after pfnext
|
|
19
21
|
}
|
|
20
22
|
// stylelint-enable
|
|
21
23
|
}
|
package/base/_fonts.scss
CHANGED
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
font-display: fallback;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
// remove in breaking change
|
|
157
157
|
@if $pf-global--enable-font-overpass-cdn {
|
|
158
158
|
// stylelint-disable no-invalid-position-at-import-rule
|
|
159
159
|
@import url("https://fonts.googleapis.com/css?family=Overpass|Overpass+Mono");
|
package/components/Page/page.css
CHANGED
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
|
|
37
37
|
.pf-c-scroll-outer-wrapper {
|
|
38
38
|
--pf-c-scroll-outer-wrapper--MinHeight: 25rem;
|
|
39
|
+
--pf-c-scroll-outer-wrapper--MaxHeight: 100%;
|
|
39
40
|
display: flex;
|
|
40
41
|
flex-direction: column;
|
|
41
42
|
max-width: 100%;
|
|
42
43
|
min-height: var(--pf-c-scroll-outer-wrapper--MinHeight);
|
|
43
|
-
max-height:
|
|
44
|
+
max-height: var(--pf-c-scroll-outer-wrapper--MaxHeight);
|
|
44
45
|
overflow: hidden;
|
|
45
46
|
}
|
|
46
47
|
|
|
@@ -43,12 +43,13 @@
|
|
|
43
43
|
|
|
44
44
|
.pf-c-scroll-outer-wrapper {
|
|
45
45
|
--pf-c-scroll-outer-wrapper--MinHeight: #{pf-size-prem(400px)};
|
|
46
|
+
--pf-c-scroll-outer-wrapper--MaxHeight: 100%;
|
|
46
47
|
|
|
47
48
|
display: flex;
|
|
48
49
|
flex-direction: column;
|
|
49
50
|
max-width: 100%;
|
|
50
51
|
min-height: var(--pf-c-scroll-outer-wrapper--MinHeight);
|
|
51
|
-
max-height:
|
|
52
|
+
max-height: var(--pf-c-scroll-outer-wrapper--MaxHeight);
|
|
52
53
|
overflow: hidden;
|
|
53
54
|
}
|
|
54
55
|
|
|
@@ -188,6 +188,7 @@ This component provides the basic chrome for a page, including sidebar, header,
|
|
|
188
188
|
| Class | Applied to | Outcome |
|
|
189
189
|
| -------------------------------------------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
190
190
|
| `.pf-c-page` | `<div>` | Declares the page component. |
|
|
191
|
+
| `.pf-m-full-height` | `.pf-c-page` | Sets the page to be full height. Eliminates the need to ensure that all ancestors of `.pf-c-page` have height of 100% set. |
|
|
191
192
|
| `.pf-c-page__header` | `<header>` | Declares the page header. |
|
|
192
193
|
| `.pf-c-page__header-brand` | `<div>` | Creates a header container to nest the brand component. |
|
|
193
194
|
| `.pf-c-page__header-brand-toggle` | `<div>` | Creates a container to nest the sidebar toggle. |
|