@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 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");
@@ -5,7 +5,7 @@
5
5
  }
6
6
 
7
7
  html {
8
- font-size: unset !important;
8
+ font-size: var(--pf-global--root--FontSize, unset) !important;
9
9
  }
10
10
 
11
11
  .pf-screen-reader {
@@ -270,6 +270,10 @@
270
270
  grid-template-areas: "header header" "nav main";
271
271
  }
272
272
  }
273
+ .pf-c-page.pf-m-full-height {
274
+ height: 100vh;
275
+ height: 100dvh;
276
+ }
273
277
 
274
278
  .pf-c-page__header,
275
279
  .pf-c-page > .pf-c-masthead {
@@ -207,6 +207,12 @@ $pf-c-page--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg"
207
207
  "header header"
208
208
  "nav main";
209
209
  }
210
+
211
+ // full height
212
+ &.pf-m-full-height {
213
+ height: 100vh;
214
+ height: 100dvh;
215
+ }
210
216
  }
211
217
 
212
218
  // Header
@@ -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: 100%;
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: 100%;
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. |