@patternfly/patternfly 4.154.1 → 4.155.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/LogViewer/log-viewer.css +31 -8
- package/components/LogViewer/log-viewer.scss +32 -20
- package/docs/components/LogViewer/examples/LogViewer.md +682 -533
- package/package.json +1 -1
- package/patternfly-no-reset.css +31 -8
- package/patternfly.css +31 -8
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -38,12 +38,14 @@
|
|
|
38
38
|
--pf-c-log-viewer__main--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
39
39
|
--pf-c-log-viewer__main--BorderColor: var(--pf-global--BorderColor--100);
|
|
40
40
|
--pf-c-log-viewer__scroll-container--Height: 37.5rem;
|
|
41
|
+
--pf-c-log-viewer__scroll-container--PaddingTop: var(--pf-global--spacer--sm);
|
|
42
|
+
--pf-c-log-viewer__scroll-container--PaddingBottom: var(--pf-global--spacer--sm);
|
|
41
43
|
--pf-c-log-viewer--m-line-numbers__main--before--Top: var(--pf-global--spacer--sm);
|
|
42
44
|
--pf-c-log-viewer--m-line-numbers__main--before--Bottom: var(--pf-global--spacer--sm);
|
|
43
45
|
--pf-c-log-viewer--m-line-numbers__main--before--Width: var(--pf-global--BorderWidth--sm);
|
|
44
46
|
--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor: var(--pf-global--BorderColor--100);
|
|
45
|
-
--pf-c-log-
|
|
46
|
-
--pf-c-log-
|
|
47
|
+
--pf-c-log-viewer__list--Height: auto;
|
|
48
|
+
--pf-c-log-viewer--m-line-numbers__list--Left: var(--pf-c-log-viewer__index--Width);
|
|
47
49
|
--pf-c-log-viewer__index--Display: none;
|
|
48
50
|
--pf-c-log-viewer__index--Width: 4.0625rem;
|
|
49
51
|
--pf-c-log-viewer__index--PaddingRight: var(--pf-global--spacer--xl);
|
|
@@ -51,11 +53,16 @@
|
|
|
51
53
|
--pf-c-log-viewer__index--FontFamily: var(--pf-global--FontFamily--monospace);
|
|
52
54
|
--pf-c-log-viewer__index--FontSize: var(--pf-global--FontSize--sm);
|
|
53
55
|
--pf-c-log-viewer__index--Color: var(--pf-global--Color--200);
|
|
56
|
+
--pf-c-log-viewer__index--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
54
57
|
--pf-c-log-viewer__text--PaddingRight: var(--pf-global--spacer--md);
|
|
55
58
|
--pf-c-log-viewer__text--PaddingLeft: var(--pf-global--spacer--md);
|
|
56
59
|
--pf-c-log-viewer__text--FontFamily: var(--pf-global--FontFamily--monospace);
|
|
57
60
|
--pf-c-log-viewer__text--FontSize: var(--pf-global--FontSize--sm);
|
|
58
61
|
--pf-c-log-viewer__text--Color: var(--pf-global--Color--100);
|
|
62
|
+
--pf-c-log-viewer__text--WordBreak: break-all;
|
|
63
|
+
--pf-c-log-viewer__text--WhiteSpace: break-spaces;
|
|
64
|
+
--pf-c-log-viewer__text--LineBreak: anywhere;
|
|
65
|
+
--pf-c-log-viewer--m-nowrap__text--WhiteSpace: nowrap;
|
|
59
66
|
--pf-c-log-viewer__string--m-match--Color: var(--pf-global--palette--gold-700);
|
|
60
67
|
--pf-c-log-viewer__string--m-match--BackgroundColor: var(--pf-global--palette--gold-100);
|
|
61
68
|
--pf-c-log-viewer__string--m-current--Color: var(--pf-global--palette--gold-700);
|
|
@@ -87,9 +94,18 @@
|
|
|
87
94
|
.pf-c-log-viewer.pf-m-wrap-text {
|
|
88
95
|
word-break: break-all;
|
|
89
96
|
}
|
|
97
|
+
.pf-c-log-viewer.pf-m-nowrap {
|
|
98
|
+
--pf-c-log-viewer__text--WhiteSpace: var(--pf-c-log-viewer--m-nowrap__text--WhiteSpace);
|
|
99
|
+
}
|
|
90
100
|
.pf-c-log-viewer.pf-m-line-numbers {
|
|
91
101
|
--pf-c-log-viewer__index--Display: var(--pf-c-log-viewer--m-line-numbers__index--Display);
|
|
92
102
|
}
|
|
103
|
+
.pf-c-log-viewer.pf-m-line-numbers .pf-c-log-viewer__list {
|
|
104
|
+
position: absolute;
|
|
105
|
+
right: 0;
|
|
106
|
+
left: var(--pf-c-log-viewer--m-line-numbers__list--Left);
|
|
107
|
+
overflow: auto;
|
|
108
|
+
}
|
|
93
109
|
.pf-c-log-viewer .pf-c-toolbar {
|
|
94
110
|
--pf-c-toolbar--PaddingTop: var(--pf-c-log-viewer--c-toolbar--PaddingTop);
|
|
95
111
|
--pf-c-toolbar--PaddingBottom: var(--pf-c-log-viewer--c-toolbar--PaddingBottom);
|
|
@@ -130,19 +146,23 @@
|
|
|
130
146
|
}
|
|
131
147
|
|
|
132
148
|
.pf-c-log-viewer__scroll-container {
|
|
149
|
+
position: relative;
|
|
133
150
|
height: var(--pf-c-log-viewer__scroll-container--Height);
|
|
134
151
|
padding-top: var(--pf-c-log-viewer__scroll-container--PaddingTop);
|
|
135
152
|
padding-bottom: var(--pf-c-log-viewer__scroll-container--PaddingBottom);
|
|
136
153
|
overflow: auto;
|
|
154
|
+
will-change: transform;
|
|
155
|
+
direction: ltr;
|
|
137
156
|
}
|
|
138
157
|
|
|
139
158
|
.pf-c-log-viewer__list {
|
|
140
159
|
position: relative;
|
|
160
|
+
height: var(--pf-c-log-viewer__list--Height);
|
|
141
161
|
}
|
|
142
162
|
|
|
143
|
-
.pf-
|
|
144
|
-
|
|
145
|
-
|
|
163
|
+
.pf-c-log-viewer__list-item {
|
|
164
|
+
left: 0;
|
|
165
|
+
width: 100%;
|
|
146
166
|
}
|
|
147
167
|
|
|
148
168
|
.pf-c-log-viewer__string.pf-m-match {
|
|
@@ -155,6 +175,8 @@
|
|
|
155
175
|
}
|
|
156
176
|
|
|
157
177
|
.pf-c-log-viewer__index {
|
|
178
|
+
position: fixed;
|
|
179
|
+
left: 0;
|
|
158
180
|
display: var(--pf-c-log-viewer__index--Display);
|
|
159
181
|
width: var(--pf-c-log-viewer__index--Width);
|
|
160
182
|
padding-right: var(--pf-c-log-viewer__index--PaddingRight);
|
|
@@ -162,6 +184,7 @@
|
|
|
162
184
|
font-family: var(--pf-c-log-viewer__index--FontFamily);
|
|
163
185
|
font-size: var(--pf-c-log-viewer__index--FontSize);
|
|
164
186
|
color: var(--pf-c-log-viewer__index--Color);
|
|
187
|
+
background-color: var(--pf-c-log-viewer__index--BackgroundColor);
|
|
165
188
|
}
|
|
166
189
|
|
|
167
190
|
.pf-c-log-viewer__text {
|
|
@@ -171,9 +194,9 @@
|
|
|
171
194
|
font-family: var(--pf-c-log-viewer__text--FontFamily);
|
|
172
195
|
font-size: var(--pf-c-log-viewer__text--FontSize);
|
|
173
196
|
color: var(--pf-c-log-viewer__text--Color);
|
|
174
|
-
word-break:
|
|
175
|
-
white-space:
|
|
176
|
-
line-break:
|
|
197
|
+
word-break: var(--pf-c-log-viewer__text--WordBreak);
|
|
198
|
+
white-space: var(--pf-c-log-viewer__text--WhiteSpace);
|
|
199
|
+
line-break: var(--pf-c-log-viewer__text--LineBreak);
|
|
177
200
|
}
|
|
178
201
|
|
|
179
202
|
.pf-c-log-viewer__timestamp {
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
// Scroll container
|
|
15
15
|
--pf-c-log-viewer__scroll-container--Height: #{pf-size-prem(600px)};
|
|
16
|
+
--pf-c-log-viewer__scroll-container--PaddingTop: var(--pf-global--spacer--sm);
|
|
17
|
+
--pf-c-log-viewer__scroll-container--PaddingBottom: var(--pf-global--spacer--sm);
|
|
16
18
|
|
|
17
19
|
// Main ::after
|
|
18
20
|
--pf-c-log-viewer--m-line-numbers__main--before--Top: var(--pf-global--spacer--sm);
|
|
@@ -21,11 +23,8 @@
|
|
|
21
23
|
--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor: var(--pf-global--BorderColor--100);
|
|
22
24
|
|
|
23
25
|
// List
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--pf-c-log-viewer__scroll-container--PaddingTop: var(--pf-global--spacer--md);
|
|
28
|
-
--pf-c-log-viewer__scroll-container--PaddingBottom: var(--pf-global--spacer--md);
|
|
26
|
+
--pf-c-log-viewer__list--Height: auto;
|
|
27
|
+
--pf-c-log-viewer--m-line-numbers__list--Left: var(--pf-c-log-viewer__index--Width);
|
|
29
28
|
|
|
30
29
|
// Index
|
|
31
30
|
--pf-c-log-viewer__index--Display: none;
|
|
@@ -35,6 +34,7 @@
|
|
|
35
34
|
--pf-c-log-viewer__index--FontFamily: var(--pf-global--FontFamily--monospace);
|
|
36
35
|
--pf-c-log-viewer__index--FontSize: var(--pf-global--FontSize--sm);
|
|
37
36
|
--pf-c-log-viewer__index--Color: var(--pf-global--Color--200);
|
|
37
|
+
--pf-c-log-viewer__index--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
38
38
|
|
|
39
39
|
// Text
|
|
40
40
|
--pf-c-log-viewer__text--PaddingRight: var(--pf-global--spacer--md);
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
--pf-c-log-viewer__text--FontFamily: var(--pf-global--FontFamily--monospace);
|
|
43
43
|
--pf-c-log-viewer__text--FontSize: var(--pf-global--FontSize--sm);
|
|
44
44
|
--pf-c-log-viewer__text--Color: var(--pf-global--Color--100);
|
|
45
|
+
--pf-c-log-viewer__text--WordBreak: break-all;
|
|
46
|
+
--pf-c-log-viewer__text--WhiteSpace: break-spaces;
|
|
47
|
+
--pf-c-log-viewer__text--LineBreak: anywhere;
|
|
48
|
+
--pf-c-log-viewer--m-nowrap__text--WhiteSpace: nowrap;
|
|
45
49
|
--pf-c-log-viewer__string--m-match--Color: var(--pf-global--palette--gold-700);
|
|
46
50
|
--pf-c-log-viewer__string--m-match--BackgroundColor: var(--pf-global--palette--gold-100);
|
|
47
51
|
--pf-c-log-viewer__string--m-current--Color: var(--pf-global--palette--gold-700);
|
|
@@ -85,8 +89,19 @@
|
|
|
85
89
|
word-break: break-all;
|
|
86
90
|
}
|
|
87
91
|
|
|
92
|
+
&.pf-m-nowrap {
|
|
93
|
+
--pf-c-log-viewer__text--WhiteSpace: var(--pf-c-log-viewer--m-nowrap__text--WhiteSpace);
|
|
94
|
+
}
|
|
95
|
+
|
|
88
96
|
&.pf-m-line-numbers {
|
|
89
97
|
--pf-c-log-viewer__index--Display: var(--pf-c-log-viewer--m-line-numbers__index--Display);
|
|
98
|
+
|
|
99
|
+
.pf-c-log-viewer__list {
|
|
100
|
+
position: absolute;
|
|
101
|
+
right: 0;
|
|
102
|
+
left: var(--pf-c-log-viewer--m-line-numbers__list--Left);
|
|
103
|
+
overflow: auto;
|
|
104
|
+
}
|
|
90
105
|
}
|
|
91
106
|
|
|
92
107
|
// Nested toolbar
|
|
@@ -140,30 +155,24 @@
|
|
|
140
155
|
}
|
|
141
156
|
|
|
142
157
|
.pf-c-log-viewer__scroll-container {
|
|
158
|
+
position: relative;
|
|
143
159
|
height: var(--pf-c-log-viewer__scroll-container--Height);
|
|
144
160
|
padding-top: var(--pf-c-log-viewer__scroll-container--PaddingTop);
|
|
145
161
|
padding-bottom: var(--pf-c-log-viewer__scroll-container--PaddingBottom);
|
|
146
162
|
overflow: auto;
|
|
163
|
+
will-change: transform;
|
|
164
|
+
direction: ltr;
|
|
147
165
|
}
|
|
148
166
|
|
|
149
167
|
// List
|
|
150
168
|
.pf-c-log-viewer__list {
|
|
151
|
-
// flex: 1 1;
|
|
152
|
-
// min-height: 0;
|
|
153
|
-
// overflow: auto;
|
|
154
|
-
// padding-top: var(--pf-c-log-viewer__list--PaddingTop);
|
|
155
|
-
// padding-bottom: var(--pf-c-log-viewer__list--PaddingBottom);
|
|
156
|
-
|
|
157
169
|
position: relative;
|
|
170
|
+
height: var(--pf-c-log-viewer__list--Height);
|
|
158
171
|
}
|
|
159
172
|
|
|
160
173
|
.pf-c-log-viewer__list-item {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
display: grid;
|
|
164
|
-
grid-template-columns: max-content 1fr;
|
|
165
|
-
}
|
|
166
|
-
// stylelint-enable
|
|
174
|
+
left: 0;
|
|
175
|
+
width: 100%;
|
|
167
176
|
}
|
|
168
177
|
|
|
169
178
|
.pf-c-log-viewer__string {
|
|
@@ -180,6 +189,8 @@
|
|
|
180
189
|
|
|
181
190
|
// Index
|
|
182
191
|
.pf-c-log-viewer__index {
|
|
192
|
+
position: fixed;
|
|
193
|
+
left: 0;
|
|
183
194
|
display: var(--pf-c-log-viewer__index--Display);
|
|
184
195
|
width: var(--pf-c-log-viewer__index--Width);
|
|
185
196
|
padding-right: var(--pf-c-log-viewer__index--PaddingRight);
|
|
@@ -187,6 +198,7 @@
|
|
|
187
198
|
font-family: var(--pf-c-log-viewer__index--FontFamily);
|
|
188
199
|
font-size: var(--pf-c-log-viewer__index--FontSize);
|
|
189
200
|
color: var(--pf-c-log-viewer__index--Color);
|
|
201
|
+
background-color: var(--pf-c-log-viewer__index--BackgroundColor);
|
|
190
202
|
}
|
|
191
203
|
|
|
192
204
|
// Text
|
|
@@ -197,9 +209,9 @@
|
|
|
197
209
|
font-family: var(--pf-c-log-viewer__text--FontFamily);
|
|
198
210
|
font-size: var(--pf-c-log-viewer__text--FontSize);
|
|
199
211
|
color: var(--pf-c-log-viewer__text--Color);
|
|
200
|
-
word-break:
|
|
201
|
-
white-space:
|
|
202
|
-
line-break:
|
|
212
|
+
word-break: var(--pf-c-log-viewer__text--WordBreak);
|
|
213
|
+
white-space: var(--pf-c-log-viewer__text--WhiteSpace);
|
|
214
|
+
line-break: var(--pf-c-log-viewer__text--LineBreak);
|
|
203
215
|
}
|
|
204
216
|
|
|
205
217
|
// Timestamp
|