@patternfly/patternfly 5.0.0-alpha.22 → 5.0.0-alpha.24
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/_icons.scss +1 -28
- package/base/_svg-icons.scss +6 -0
- package/base/patternfly-icons.css +1 -19
- package/components/Popover/popover.css +21 -24
- package/components/Popover/popover.scss +25 -32
- package/docs/components/LogViewer/examples/LogViewer.md +10 -4
- package/docs/components/Popover/examples/Popover.md +175 -104
- package/docs/demos/Card/examples/Card.md +17 -11
- package/package.json +1 -1
- package/patternfly-base-no-reset.css +1 -19
- package/patternfly-base.css +1 -19
- package/patternfly-no-reset.css +22 -43
- package/patternfly.css +22 -43
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
package/base/_icons.scss
CHANGED
|
@@ -1,30 +1,3 @@
|
|
|
1
1
|
@import "fa-icons";
|
|
2
2
|
@import "pf-icons";
|
|
3
|
-
|
|
4
|
-
.pf-svg-size-sm {
|
|
5
|
-
// Small icon size
|
|
6
|
-
width: 1em;
|
|
7
|
-
height: 1em;
|
|
8
|
-
vertical-align: -.125em;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.pf-svg-size-md {
|
|
12
|
-
// Medium icon size
|
|
13
|
-
width: 1.5em;
|
|
14
|
-
height: 1.5em;
|
|
15
|
-
vertical-align: -.1875em;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.pf-svg-size-lg {
|
|
19
|
-
// Large icon size
|
|
20
|
-
width: 2em;
|
|
21
|
-
height: 2em;
|
|
22
|
-
vertical-align: -.25em;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.pf-svg-size-xl {
|
|
26
|
-
// Extra large icon size
|
|
27
|
-
width: 3em;
|
|
28
|
-
height: 3em;
|
|
29
|
-
vertical-align: -.375em;
|
|
30
|
-
}
|
|
3
|
+
@import "svg-icons";
|
|
@@ -4713,26 +4713,8 @@
|
|
|
4713
4713
|
content: "\e911";
|
|
4714
4714
|
}
|
|
4715
4715
|
|
|
4716
|
-
.pf-svg
|
|
4716
|
+
.pf-svg {
|
|
4717
4717
|
width: 1em;
|
|
4718
4718
|
height: 1em;
|
|
4719
4719
|
vertical-align: -0.125em;
|
|
4720
|
-
}
|
|
4721
|
-
|
|
4722
|
-
.pf-svg-size-md {
|
|
4723
|
-
width: 1.5em;
|
|
4724
|
-
height: 1.5em;
|
|
4725
|
-
vertical-align: -0.1875em;
|
|
4726
|
-
}
|
|
4727
|
-
|
|
4728
|
-
.pf-svg-size-lg {
|
|
4729
|
-
width: 2em;
|
|
4730
|
-
height: 2em;
|
|
4731
|
-
vertical-align: -0.25em;
|
|
4732
|
-
}
|
|
4733
|
-
|
|
4734
|
-
.pf-svg-size-xl {
|
|
4735
|
-
width: 3em;
|
|
4736
|
-
height: 3em;
|
|
4737
|
-
vertical-align: -0.375em;
|
|
4738
4720
|
}
|
|
@@ -34,15 +34,13 @@
|
|
|
34
34
|
--pf-c-popover__arrow--m-left--TranslateX: 50%;
|
|
35
35
|
--pf-c-popover__arrow--m-left--TranslateY: -50%;
|
|
36
36
|
--pf-c-popover__arrow--m-left--Rotate: 45deg;
|
|
37
|
-
--pf-c-
|
|
38
|
-
--pf-c-
|
|
39
|
-
--pf-c-
|
|
40
|
-
--pf-c-
|
|
41
|
-
--pf-c-
|
|
42
|
-
--pf-c-popover__title--
|
|
43
|
-
--pf-c-popover__title--
|
|
44
|
-
--pf-c-popover__title--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
|
|
45
|
-
--pf-c-popover__title--FontSize: var(--pf-global--FontSize--md);
|
|
37
|
+
--pf-c-popover__close--Top: calc(var(--pf-c-popover__content--PaddingTop) - var(--pf-global--spacer--form-element));
|
|
38
|
+
--pf-c-popover__close--Right: calc(var(--pf-c-popover__content--PaddingRight) - var(--pf-global--spacer--md));
|
|
39
|
+
--pf-c-popover__close--sibling--PaddingRight: var(--pf-global--spacer--2xl);
|
|
40
|
+
--pf-c-popover__header--MarginBottom: var(--pf-global--spacer--sm);
|
|
41
|
+
--pf-c-popover__title-text--LineHeight: var(--pf-global--LineHeight--md);
|
|
42
|
+
--pf-c-popover__title-text--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
|
|
43
|
+
--pf-c-popover__title-text--FontSize: var(--pf-global--FontSize--md);
|
|
46
44
|
--pf-c-popover__title-icon--MarginRight: var(--pf-global--spacer--sm);
|
|
47
45
|
--pf-c-popover__title-icon--Color: var(--pf-global--Color--100);
|
|
48
46
|
--pf-c-popover__footer--MarginTop: var(--pf-global--spacer--md);
|
|
@@ -122,16 +120,14 @@
|
|
|
122
120
|
padding: var(--pf-c-popover__content--PaddingTop) var(--pf-c-popover__content--PaddingRight) var(--pf-c-popover__content--PaddingBottom) var(--pf-c-popover__content--PaddingLeft);
|
|
123
121
|
background-color: var(--pf-c-popover__content--BackgroundColor);
|
|
124
122
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
.pf-c-popover__content > .pf-c-button {
|
|
123
|
+
|
|
124
|
+
.pf-c-popover__close {
|
|
129
125
|
position: absolute;
|
|
130
|
-
top: var(--pf-c-
|
|
131
|
-
right: var(--pf-c-
|
|
126
|
+
top: var(--pf-c-popover__close--Top);
|
|
127
|
+
right: var(--pf-c-popover__close--Right);
|
|
132
128
|
}
|
|
133
|
-
.pf-c-
|
|
134
|
-
padding-right: var(--pf-c-
|
|
129
|
+
.pf-c-popover__close + * {
|
|
130
|
+
padding-right: var(--pf-c-popover__close--sibling--PaddingRight);
|
|
135
131
|
}
|
|
136
132
|
|
|
137
133
|
.pf-c-popover__arrow {
|
|
@@ -143,15 +139,13 @@
|
|
|
143
139
|
box-shadow: var(--pf-c-popover__arrow--BoxShadow);
|
|
144
140
|
}
|
|
145
141
|
|
|
146
|
-
.pf-c-
|
|
147
|
-
|
|
148
|
-
margin-bottom: var(--pf-c-popover__title--MarginBottom);
|
|
149
|
-
font-family: var(--pf-c-popover__title--FontFamily);
|
|
150
|
-
font-size: var(--pf-c-popover__title--FontSize);
|
|
151
|
-
line-height: var(--pf-c-popover__title--LineHeight);
|
|
142
|
+
.pf-c-popover__header {
|
|
143
|
+
margin-bottom: var(--pf-c-popover__header--MarginBottom);
|
|
152
144
|
}
|
|
153
|
-
|
|
145
|
+
|
|
146
|
+
.pf-c-popover__title {
|
|
154
147
|
display: flex;
|
|
148
|
+
flex: 0 0 auto;
|
|
155
149
|
}
|
|
156
150
|
|
|
157
151
|
.pf-c-popover__title-icon {
|
|
@@ -160,6 +154,9 @@
|
|
|
160
154
|
}
|
|
161
155
|
|
|
162
156
|
.pf-c-popover__title-text {
|
|
157
|
+
font-family: var(--pf-c-popover__title-text--FontFamily);
|
|
158
|
+
font-size: var(--pf-c-popover__title-text--FontSize);
|
|
159
|
+
line-height: var(--pf-c-popover__title-text--LineHeight);
|
|
163
160
|
color: var(--pf-c-popover__title-text--Color, inherit);
|
|
164
161
|
}
|
|
165
162
|
|
|
@@ -45,19 +45,17 @@
|
|
|
45
45
|
--pf-c-popover__arrow--m-left--Rotate: 45deg;
|
|
46
46
|
|
|
47
47
|
// Close
|
|
48
|
-
--pf-c-
|
|
49
|
-
--pf-c-
|
|
50
|
-
--pf-c-
|
|
51
|
-
--pf-c-popover--c-button--sibling--PaddingRight: var(--pf-global--spacer--2xl);
|
|
48
|
+
--pf-c-popover__close--Top: calc(var(--pf-c-popover__content--PaddingTop) - var(--pf-global--spacer--form-element)); // align top of button with top of text
|
|
49
|
+
--pf-c-popover__close--Right: calc(var(--pf-c-popover__content--PaddingRight) - var(--pf-global--spacer--md)); // align right of content
|
|
50
|
+
--pf-c-popover__close--sibling--PaddingRight: var(--pf-global--spacer--2xl);
|
|
52
51
|
|
|
53
52
|
// Header
|
|
54
|
-
--pf-c-
|
|
53
|
+
--pf-c-popover__header--MarginBottom: var(--pf-global--spacer--sm);
|
|
55
54
|
|
|
56
|
-
// Title
|
|
57
|
-
--pf-c-popover__title--
|
|
58
|
-
--pf-c-popover__title--
|
|
59
|
-
--pf-c-popover__title--
|
|
60
|
-
--pf-c-popover__title--FontSize: var(--pf-global--FontSize--md);
|
|
55
|
+
// Title text
|
|
56
|
+
--pf-c-popover__title-text--LineHeight: var(--pf-global--LineHeight--md);
|
|
57
|
+
--pf-c-popover__title-text--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
|
|
58
|
+
--pf-c-popover__title-text--FontSize: var(--pf-global--FontSize--md);
|
|
61
59
|
|
|
62
60
|
// Title icon
|
|
63
61
|
--pf-c-popover__title-icon--MarginRight: var(--pf-global--spacer--sm);
|
|
@@ -187,22 +185,17 @@
|
|
|
187
185
|
position: relative;
|
|
188
186
|
padding: var(--pf-c-popover__content--PaddingTop) var(--pf-c-popover__content--PaddingRight) var(--pf-c-popover__content--PaddingBottom) var(--pf-c-popover__content--PaddingLeft);
|
|
189
187
|
background-color: var(--pf-c-popover__content--BackgroundColor);
|
|
188
|
+
}
|
|
190
189
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
// Close button
|
|
197
|
-
> .pf-c-button {
|
|
198
|
-
position: absolute;
|
|
199
|
-
top: var(--pf-c-popover--c-button--Top);
|
|
200
|
-
right: var(--pf-c-popover--c-button--Right);
|
|
190
|
+
// Close button
|
|
191
|
+
.pf-c-popover__close {
|
|
192
|
+
position: absolute;
|
|
193
|
+
top: var(--pf-c-popover__close--Top);
|
|
194
|
+
right: var(--pf-c-popover__close--Right);
|
|
201
195
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
196
|
+
// Create room for the close button
|
|
197
|
+
+ * {
|
|
198
|
+
padding-right: var(--pf-c-popover__close--sibling--PaddingRight);
|
|
206
199
|
}
|
|
207
200
|
}
|
|
208
201
|
|
|
@@ -215,16 +208,13 @@
|
|
|
215
208
|
box-shadow: var(--pf-c-popover__arrow--BoxShadow);
|
|
216
209
|
}
|
|
217
210
|
|
|
211
|
+
.pf-c-popover__header {
|
|
212
|
+
margin-bottom: var(--pf-c-popover__header--MarginBottom);
|
|
213
|
+
}
|
|
214
|
+
|
|
218
215
|
.pf-c-popover__title {
|
|
216
|
+
display: flex;
|
|
219
217
|
flex: 0 0 auto;
|
|
220
|
-
margin-bottom: var(--pf-c-popover__title--MarginBottom);
|
|
221
|
-
font-family: var(--pf-c-popover__title--FontFamily);
|
|
222
|
-
font-size: var(--pf-c-popover__title--FontSize);
|
|
223
|
-
line-height: var(--pf-c-popover__title--LineHeight);
|
|
224
|
-
|
|
225
|
-
&.pf-m-icon {
|
|
226
|
-
display: flex;
|
|
227
|
-
}
|
|
228
218
|
}
|
|
229
219
|
|
|
230
220
|
.pf-c-popover__title-icon {
|
|
@@ -233,6 +223,9 @@
|
|
|
233
223
|
}
|
|
234
224
|
|
|
235
225
|
.pf-c-popover__title-text {
|
|
226
|
+
font-family: var(--pf-c-popover__title-text--FontFamily);
|
|
227
|
+
font-size: var(--pf-c-popover__title-text--FontSize);
|
|
228
|
+
line-height: var(--pf-c-popover__title-text--LineHeight);
|
|
236
229
|
color: var(--pf-c-popover__title-text--Color, inherit);
|
|
237
230
|
}
|
|
238
231
|
|
|
@@ -5049,10 +5049,16 @@ cssPrefix: pf-c-log-viewer
|
|
|
5049
5049
|
>
|
|
5050
5050
|
<div class="pf-c-popover__arrow"></div>
|
|
5051
5051
|
<div class="pf-c-popover__content">
|
|
5052
|
-
<
|
|
5053
|
-
<
|
|
5054
|
-
|
|
5055
|
-
|
|
5052
|
+
<div class="pf-c-popover__close">
|
|
5053
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
5054
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
5055
|
+
</button>
|
|
5056
|
+
</div>
|
|
5057
|
+
<header class="pf-c-popover__header">
|
|
5058
|
+
<div class="pf-c-popover__title" id="popover-bottom-header">
|
|
5059
|
+
<h1 class="pf-c-popover__title-text">Clear this log?</h1>
|
|
5060
|
+
</div>
|
|
5061
|
+
</header>
|
|
5056
5062
|
<div
|
|
5057
5063
|
class="pf-c-popover__body"
|
|
5058
5064
|
id="popover-bottom-body"
|