@patternfly/patternfly 4.164.2 → 4.165.1
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/_fa-icons.scss +2 -0
- package/base/_fonts.scss +2 -2
- package/components/ExpandableSection/expandable-section.css +6 -0
- package/components/ExpandableSection/expandable-section.scss +9 -0
- package/components/Label/label.css +37 -0
- package/components/Label/label.scss +43 -0
- package/components/LogViewer/log-viewer.css +17 -15
- package/components/LogViewer/log-viewer.scss +17 -20
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +22 -0
- package/docs/components/Label/examples/Label.md +102 -41
- package/docs/components/LabelGroup/examples/LabelGroup.md +98 -73
- package/docs/components/NotificationBadge/examples/NotificationBadge.css +3 -0
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +132 -108
- package/docs/demos/Card/examples/Card.md +22 -0
- package/docs/demos/Tabs/examples/Tabs.md +2 -0
- package/docs/pages/contribution.md +1 -1
- package/layouts/_all.scss +7 -7
- package/package.json +1 -1
- package/patternfly-no-reset.css +60 -15
- package/patternfly.css +60 -15
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/bs-variables.scss +2 -3
- package/sass-utilities/functions.scss +0 -1
- package/sass-utilities/mixins.scss +5 -5
- package/sass-utilities/scss-variables.scss +1 -1
package/base/_base.scss
CHANGED
package/base/_fa-icons.scss
CHANGED
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
@if not($pf-global--disable-fontawesome) {
|
|
7
7
|
@if $pf-global--enable-fontawesome-cdn {
|
|
8
|
+
// stylelint-disable no-invalid-position-at-import-rule
|
|
8
9
|
@import url("https://use.fontawesome.com/releases/v5.7.2/css/solid.css");
|
|
9
10
|
@import url("https://use.fontawesome.com/releases/v5.7.2/css/fontawesome.css");
|
|
11
|
+
// stylelint-enable no-invalid-position-at-import-rule
|
|
10
12
|
} @else {
|
|
11
13
|
@font-face {
|
|
12
14
|
font-family: "Font Awesome 5 Free";
|
package/base/_fonts.scss
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
//
|
|
2
1
|
// Fonts
|
|
3
2
|
// --------------------------------------------------
|
|
4
3
|
// PatternFly uses RedHatText - https://github.com/RedHatOfficial/RedHatFont
|
|
5
|
-
//
|
|
6
4
|
|
|
7
5
|
// stylelint-disable font-family-name-quotes
|
|
8
6
|
|
|
@@ -157,7 +155,9 @@
|
|
|
157
155
|
|
|
158
156
|
|
|
159
157
|
@if $pf-global--enable-font-overpass-cdn {
|
|
158
|
+
// stylelint-disable no-invalid-position-at-import-rule
|
|
160
159
|
@import url("https://fonts.googleapis.com/css?family=Overpass|Overpass+Mono");
|
|
160
|
+
// stylelint-enable no-invalid-position-at-import-rule
|
|
161
161
|
} @else {
|
|
162
162
|
@font-face {
|
|
163
163
|
font-family: "overpass";
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
|
|
9
9
|
--pf-c-expandable-section__toggle--focus--Color: var(--pf-global--link--Color--hover);
|
|
10
10
|
--pf-c-expandable-section__toggle--m-expanded--Color: var(--pf-global--link--Color--hover);
|
|
11
|
+
--pf-c-expandable-section__toggle-icon--MinWidth: 1em;
|
|
11
12
|
--pf-c-expandable-section__toggle-icon--Color: var(--pf-global--Color--100);
|
|
12
13
|
--pf-c-expandable-section__toggle-icon--Transition: .2s ease-in 0s;
|
|
13
14
|
--pf-c-expandable-section__toggle-icon--Rotate: 0;
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
--pf-c-expandable-section--m-display-lg--after--BackgroundColor: transparent;
|
|
31
32
|
--pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
|
|
32
33
|
--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
|
|
34
|
+
--pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
|
|
33
35
|
}
|
|
34
36
|
.pf-c-expandable-section.pf-m-expanded {
|
|
35
37
|
--pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
|
|
@@ -64,6 +66,9 @@
|
|
|
64
66
|
content: "";
|
|
65
67
|
background-color: var(--pf-c-expandable-section--m-display-lg--after--BackgroundColor);
|
|
66
68
|
}
|
|
69
|
+
.pf-c-expandable-section.pf-m-indented {
|
|
70
|
+
--pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
|
|
71
|
+
}
|
|
67
72
|
|
|
68
73
|
.pf-c-expandable-section__toggle {
|
|
69
74
|
display: flex;
|
|
@@ -82,6 +87,7 @@
|
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
.pf-c-expandable-section__toggle-icon {
|
|
90
|
+
min-width: var(--pf-c-expandable-section__toggle-icon--MinWidth);
|
|
85
91
|
color: var(--pf-c-expandable-section__toggle-icon--Color);
|
|
86
92
|
transition: var(--pf-c-expandable-section__toggle-icon--Transition);
|
|
87
93
|
transform: rotate(var(--pf-c-expandable-section__toggle-icon--Rotate));
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
--pf-c-expandable-section__toggle--m-expanded--Color: var(--pf-global--link--Color--hover);
|
|
12
12
|
|
|
13
13
|
// Toggle icon
|
|
14
|
+
--pf-c-expandable-section__toggle-icon--MinWidth: 1em;
|
|
14
15
|
--pf-c-expandable-section__toggle-icon--Color: var(--pf-global--Color--100);
|
|
15
16
|
--pf-c-expandable-section__toggle-icon--Transition: .2s ease-in 0s;
|
|
16
17
|
--pf-c-expandable-section__toggle-icon--Rotate: 0;
|
|
@@ -42,6 +43,9 @@
|
|
|
42
43
|
--pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
|
|
43
44
|
--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
|
|
44
45
|
|
|
46
|
+
// Indented
|
|
47
|
+
--pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
|
|
48
|
+
|
|
45
49
|
|
|
46
50
|
&.pf-m-expanded {
|
|
47
51
|
--pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
|
|
@@ -81,6 +85,10 @@
|
|
|
81
85
|
background-color: var(--pf-c-expandable-section--m-display-lg--after--BackgroundColor);
|
|
82
86
|
}
|
|
83
87
|
}
|
|
88
|
+
|
|
89
|
+
&.pf-m-indented {
|
|
90
|
+
--pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
|
|
91
|
+
}
|
|
84
92
|
}
|
|
85
93
|
|
|
86
94
|
.pf-c-expandable-section__toggle {
|
|
@@ -104,6 +112,7 @@
|
|
|
104
112
|
}
|
|
105
113
|
|
|
106
114
|
.pf-c-expandable-section__toggle-icon {
|
|
115
|
+
min-width: var(--pf-c-expandable-section__toggle-icon--MinWidth);
|
|
107
116
|
color: var(--pf-c-expandable-section__toggle-icon--Color);
|
|
108
117
|
transition: var(--pf-c-expandable-section__toggle-icon--Transition);
|
|
109
118
|
transform: rotate(var(--pf-c-expandable-section__toggle-icon--Rotate));
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
--pf-c-label--m-compact--PaddingBottom: 0;
|
|
94
94
|
--pf-c-label--m-compact--PaddingLeft: var(--pf-global--spacer--sm);
|
|
95
95
|
--pf-c-label--m-compact--FontSize: var(--pf-global--FontSize--xs);
|
|
96
|
+
--pf-c-label--m-compact--m-editable--TextDecorationOffset: 0.0625rem;
|
|
96
97
|
--pf-c-label__content--Color: var(--pf-global--Color--100);
|
|
97
98
|
--pf-c-label--m-outline__content--Color: var(--pf-global--Color--100);
|
|
98
99
|
--pf-c-label__text--MaxWidth: 16ch;
|
|
@@ -107,6 +108,18 @@
|
|
|
107
108
|
--pf-c-label__c-button--PaddingRight: var(--pf-global--spacer--sm);
|
|
108
109
|
--pf-c-label__c-button--PaddingBottom: var(--pf-global--spacer--xs);
|
|
109
110
|
--pf-c-label__c-button--PaddingLeft: var(--pf-global--spacer--sm);
|
|
111
|
+
--pf-c-label__editable-text--MaxWidth: 16ch;
|
|
112
|
+
--pf-c-label__editable-text--BorderWidth: 0;
|
|
113
|
+
--pf-c-label--m-editable--Cursor: pointer;
|
|
114
|
+
--pf-c-label--m-editable--TextDecoration: underline;
|
|
115
|
+
--pf-c-label--m-editable--TextDecorationStyle: dashed;
|
|
116
|
+
--pf-c-label--m-editable--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
|
|
117
|
+
--pf-c-label--m-editable--TextDecorationOffset: 0.25rem;
|
|
118
|
+
--pf-c-label--m-editable--TextDecorationColor: var(--pf-global--BorderColor--200);
|
|
119
|
+
--pf-c-label--m-editable--hover--TextDecorationColor: var(--pf-global--Color--100);
|
|
120
|
+
--pf-c-label--m-editable--focus--TextDecorationColor: var(--pf-global--Color--100);
|
|
121
|
+
--pf-c-label--m-editable--m-editable-active--Cursor: auto;
|
|
122
|
+
--pf-c-label--m-editable--m-editable-active--TextDecoration: none;
|
|
110
123
|
--pf-c-label--m-editable--m-editable-active--BackgroundColor: transparent;
|
|
111
124
|
--pf-c-label--m-editable--m-editable-active__content--before--BorderWidth: 0;
|
|
112
125
|
--pf-c-label--m-editable--m-editable-active__content--before--BorderColor: transparent;
|
|
@@ -125,6 +138,7 @@
|
|
|
125
138
|
--pf-c-label--PaddingBottom: var(--pf-c-label--m-compact--PaddingBottom);
|
|
126
139
|
--pf-c-label--PaddingLeft: var(--pf-c-label--m-compact--PaddingLeft);
|
|
127
140
|
--pf-c-label--FontSize: var(--pf-c-label--m-compact--FontSize);
|
|
141
|
+
--pf-c-label--m-editable--TextDecorationOffset: var(--pf-c-label--m-compact--m-editable--TextDecorationOffset);
|
|
128
142
|
}
|
|
129
143
|
.pf-c-label.pf-m-blue {
|
|
130
144
|
--pf-c-label--BackgroundColor: var(--pf-c-label--m-blue--BackgroundColor);
|
|
@@ -215,7 +229,23 @@
|
|
|
215
229
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--focus--before--BorderColor);
|
|
216
230
|
}
|
|
217
231
|
|
|
232
|
+
.pf-c-label.pf-m-editable {
|
|
233
|
+
text-decoration: var(--pf-c-label--m-editable--TextDecoration);
|
|
234
|
+
cursor: var(--pf-c-label--m-editable--Cursor);
|
|
235
|
+
text-decoration-style: var(--pf-c-label--m-editable--TextDecorationStyle);
|
|
236
|
+
text-decoration-thickness: var(--pf-c-label--m-editable--TextDecorationThickness);
|
|
237
|
+
text-underline-offset: var(--pf-c-label--m-editable--TextDecorationOffset);
|
|
238
|
+
text-decoration-color: var(--pf-c-label--m-editable--TextDecorationColor);
|
|
239
|
+
}
|
|
240
|
+
.pf-c-label.pf-m-editable:hover {
|
|
241
|
+
--pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--hover--TextDecorationColor);
|
|
242
|
+
}
|
|
243
|
+
.pf-c-label.pf-m-editable:focus {
|
|
244
|
+
--pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--focus--TextDecorationColor);
|
|
245
|
+
}
|
|
218
246
|
.pf-c-label.pf-m-editable-active {
|
|
247
|
+
--pf-c-label--m-editable--Cursor: var(--pf-c-label--m-editable--m-editable-active--Cursor);
|
|
248
|
+
--pf-c-label--m-editable--TextDecoration: var(--pf-c-label--m-editable--m-editable-active--TextDecoration);
|
|
219
249
|
--pf-c-label--BackgroundColor: var(--pf-c-label--m-editable--m-editable-active--BackgroundColor);
|
|
220
250
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderWidth);
|
|
221
251
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderColor);
|
|
@@ -223,6 +253,13 @@
|
|
|
223
253
|
.pf-c-label.pf-m-editable-active .pf-c-button {
|
|
224
254
|
visibility: hidden;
|
|
225
255
|
}
|
|
256
|
+
.pf-c-label .pf-c-label__editable-text {
|
|
257
|
+
overflow: hidden;
|
|
258
|
+
text-overflow: ellipsis;
|
|
259
|
+
white-space: nowrap;
|
|
260
|
+
max-width: var(--pf-c-label__editable-text--MaxWidth);
|
|
261
|
+
border-width: var(--pf-c-label__editable-text--BorderWidth);
|
|
262
|
+
}
|
|
226
263
|
.pf-c-label .pf-c-button {
|
|
227
264
|
--pf-c-button--FontSize: var(--pf-c-label__c-button--FontSize);
|
|
228
265
|
--pf-c-button--PaddingTop: var(--pf-c-label__c-button--PaddingTop);
|
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
--pf-c-label--m-compact--PaddingBottom: 0;
|
|
119
119
|
--pf-c-label--m-compact--PaddingLeft: var(--pf-global--spacer--sm);
|
|
120
120
|
--pf-c-label--m-compact--FontSize: var(--pf-global--FontSize--xs);
|
|
121
|
+
--pf-c-label--m-compact--m-editable--TextDecorationOffset: #{pf-size-prem(1px)};
|
|
121
122
|
|
|
122
123
|
// Content
|
|
123
124
|
--pf-c-label__content--Color: var(--pf-global--Color--100);
|
|
@@ -142,6 +143,21 @@
|
|
|
142
143
|
--pf-c-label__c-button--PaddingLeft: var(--pf-global--spacer--sm);
|
|
143
144
|
|
|
144
145
|
// Editable
|
|
146
|
+
--pf-c-label__editable-text--MaxWidth: 16ch;
|
|
147
|
+
--pf-c-label__editable-text--BorderWidth: 0;
|
|
148
|
+
--pf-c-label--m-editable--Cursor: pointer;
|
|
149
|
+
--pf-c-label--m-editable--TextDecoration: underline;
|
|
150
|
+
--pf-c-label--m-editable--TextDecorationStyle: dashed;
|
|
151
|
+
--pf-c-label--m-editable--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
|
|
152
|
+
--pf-c-label--m-editable--TextDecorationOffset: #{pf-size-prem(4px)};
|
|
153
|
+
--pf-c-label--m-editable--TextDecorationColor: var(--pf-global--BorderColor--200);
|
|
154
|
+
--pf-c-label--m-editable--hover--TextDecorationColor: var(--pf-global--Color--100);
|
|
155
|
+
--pf-c-label--m-editable--focus--TextDecorationColor: var(--pf-global--Color--100);
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
// Editable active
|
|
159
|
+
--pf-c-label--m-editable--m-editable-active--Cursor: auto;
|
|
160
|
+
--pf-c-label--m-editable--m-editable-active--TextDecoration: none;
|
|
145
161
|
--pf-c-label--m-editable--m-editable-active--BackgroundColor: transparent;
|
|
146
162
|
--pf-c-label--m-editable--m-editable-active__content--before--BorderWidth: 0;
|
|
147
163
|
--pf-c-label--m-editable--m-editable-active__content--before--BorderColor: transparent;
|
|
@@ -161,6 +177,7 @@
|
|
|
161
177
|
--pf-c-label--PaddingBottom: var(--pf-c-label--m-compact--PaddingBottom);
|
|
162
178
|
--pf-c-label--PaddingLeft: var(--pf-c-label--m-compact--PaddingLeft);
|
|
163
179
|
--pf-c-label--FontSize: var(--pf-c-label--m-compact--FontSize);
|
|
180
|
+
--pf-c-label--m-editable--TextDecorationOffset: var(--pf-c-label--m-compact--m-editable--TextDecorationOffset);
|
|
164
181
|
}
|
|
165
182
|
|
|
166
183
|
&.pf-m-blue {
|
|
@@ -267,7 +284,26 @@
|
|
|
267
284
|
}
|
|
268
285
|
}
|
|
269
286
|
|
|
287
|
+
&.pf-m-editable {
|
|
288
|
+
text-decoration: var(--pf-c-label--m-editable--TextDecoration);
|
|
289
|
+
cursor: var(--pf-c-label--m-editable--Cursor);
|
|
290
|
+
text-decoration-style: var(--pf-c-label--m-editable--TextDecorationStyle);
|
|
291
|
+
text-decoration-thickness: var(--pf-c-label--m-editable--TextDecorationThickness);
|
|
292
|
+
text-underline-offset: var(--pf-c-label--m-editable--TextDecorationOffset);
|
|
293
|
+
text-decoration-color: var(--pf-c-label--m-editable--TextDecorationColor);
|
|
294
|
+
|
|
295
|
+
&:hover {
|
|
296
|
+
--pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--hover--TextDecorationColor);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&:focus {
|
|
300
|
+
--pf-c-label--m-editable--TextDecorationColor: var(--pf-c-label--m-editable--focus--TextDecorationColor);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
270
304
|
&.pf-m-editable-active {
|
|
305
|
+
--pf-c-label--m-editable--Cursor: var(--pf-c-label--m-editable--m-editable-active--Cursor);
|
|
306
|
+
--pf-c-label--m-editable--TextDecoration: var(--pf-c-label--m-editable--m-editable-active--TextDecoration);
|
|
271
307
|
--pf-c-label--BackgroundColor: var(--pf-c-label--m-editable--m-editable-active--BackgroundColor);
|
|
272
308
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderWidth);
|
|
273
309
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-editable--m-editable-active__content--before--BorderColor);
|
|
@@ -277,6 +313,13 @@
|
|
|
277
313
|
}
|
|
278
314
|
}
|
|
279
315
|
|
|
316
|
+
.pf-c-label__editable-text {
|
|
317
|
+
@include pf-text-overflow;
|
|
318
|
+
|
|
319
|
+
max-width: var(--pf-c-label__editable-text--MaxWidth);
|
|
320
|
+
border-width: var(--pf-c-label__editable-text--BorderWidth);
|
|
321
|
+
}
|
|
322
|
+
|
|
280
323
|
.pf-c-button {
|
|
281
324
|
--pf-c-button--FontSize: var(--pf-c-label__c-button--FontSize);
|
|
282
325
|
--pf-c-button--PaddingTop: var(--pf-c-label__c-button--PaddingTop);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
.pf-c-log-viewer__header
|
|
1
|
+
.pf-c-log-viewer__header,
|
|
2
|
+
.pf-c-log-viewer__footer {
|
|
2
3
|
--pf-global--Color--100: var(--pf-global--Color--dark-100);
|
|
3
4
|
--pf-global--Color--200: var(--pf-global--Color--dark-200);
|
|
4
5
|
--pf-global--BorderColor--100: var(--pf-global--BorderColor--dark-100);
|
|
@@ -107,7 +108,15 @@
|
|
|
107
108
|
position: absolute;
|
|
108
109
|
right: 0;
|
|
109
110
|
left: var(--pf-c-log-viewer--m-line-numbers__list--Left);
|
|
110
|
-
|
|
111
|
+
}
|
|
112
|
+
.pf-c-log-viewer.pf-m-line-numbers .pf-c-log-viewer__list::before {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: var(--pf-c-log-viewer--m-line-numbers__main--before--Top);
|
|
115
|
+
bottom: var(--pf-c-log-viewer--m-line-numbers__main--before--Bottom);
|
|
116
|
+
left: 0;
|
|
117
|
+
width: var(--pf-c-log-viewer--m-line-numbers__main--before--Width);
|
|
118
|
+
content: "";
|
|
119
|
+
background: var(--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor);
|
|
111
120
|
}
|
|
112
121
|
.pf-c-log-viewer .pf-c-toolbar {
|
|
113
122
|
--pf-c-toolbar--PaddingTop: var(--pf-c-log-viewer--c-toolbar--PaddingTop);
|
|
@@ -125,10 +134,14 @@
|
|
|
125
134
|
}
|
|
126
135
|
|
|
127
136
|
.pf-c-log-viewer__header {
|
|
128
|
-
color: var(--pf-global--Color--100);
|
|
129
137
|
margin-bottom: var(--pf-c-log-viewer__header--MarginBottom);
|
|
130
138
|
}
|
|
131
139
|
|
|
140
|
+
.pf-c-log-viewer__header,
|
|
141
|
+
.pf-c-log-viewer__footer {
|
|
142
|
+
color: var(--pf-global--Color--100);
|
|
143
|
+
}
|
|
144
|
+
|
|
132
145
|
.pf-c-log-viewer__main {
|
|
133
146
|
display: flex;
|
|
134
147
|
flex-direction: column;
|
|
@@ -136,18 +149,6 @@
|
|
|
136
149
|
background-color: var(--pf-c-log-viewer__main--BackgroundColor);
|
|
137
150
|
border: var(--pf-c-log-viewer__main--BorderWidth) solid var(--pf-c-log-viewer__main--BorderColor);
|
|
138
151
|
}
|
|
139
|
-
.pf-m-line-numbers .pf-c-log-viewer__main {
|
|
140
|
-
position: relative;
|
|
141
|
-
}
|
|
142
|
-
.pf-m-line-numbers .pf-c-log-viewer__main::before {
|
|
143
|
-
position: absolute;
|
|
144
|
-
top: var(--pf-c-log-viewer--m-line-numbers__main--before--Top);
|
|
145
|
-
bottom: var(--pf-c-log-viewer--m-line-numbers__main--before--Bottom);
|
|
146
|
-
left: var(--pf-c-log-viewer__index--Width);
|
|
147
|
-
width: var(--pf-c-log-viewer--m-line-numbers__main--before--Width);
|
|
148
|
-
content: "";
|
|
149
|
-
background: var(--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor);
|
|
150
|
-
}
|
|
151
152
|
|
|
152
153
|
.pf-c-log-viewer__scroll-container {
|
|
153
154
|
position: relative;
|
|
@@ -188,6 +189,7 @@
|
|
|
188
189
|
font-family: var(--pf-c-log-viewer__index--FontFamily);
|
|
189
190
|
font-size: var(--pf-c-log-viewer__index--FontSize);
|
|
190
191
|
color: var(--pf-c-log-viewer__index--Color);
|
|
192
|
+
user-select: none;
|
|
191
193
|
background-color: var(--pf-c-log-viewer__index--BackgroundColor);
|
|
192
194
|
}
|
|
193
195
|
|
|
@@ -91,7 +91,17 @@
|
|
|
91
91
|
position: absolute;
|
|
92
92
|
right: 0;
|
|
93
93
|
left: var(--pf-c-log-viewer--m-line-numbers__list--Left);
|
|
94
|
-
|
|
94
|
+
|
|
95
|
+
// Divider
|
|
96
|
+
&::before {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: var(--pf-c-log-viewer--m-line-numbers__main--before--Top); // rename these vars at a breaking change
|
|
99
|
+
bottom: var(--pf-c-log-viewer--m-line-numbers__main--before--Bottom);
|
|
100
|
+
left: 0;
|
|
101
|
+
width: var(--pf-c-log-viewer--m-line-numbers__main--before--Width);
|
|
102
|
+
content: "";
|
|
103
|
+
background: var(--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor);
|
|
104
|
+
}
|
|
95
105
|
}
|
|
96
106
|
}
|
|
97
107
|
|
|
@@ -116,11 +126,14 @@
|
|
|
116
126
|
|
|
117
127
|
// Header
|
|
118
128
|
.pf-c-log-viewer__header {
|
|
119
|
-
@include pf-t-light;
|
|
120
|
-
|
|
121
129
|
margin-bottom: var(--pf-c-log-viewer__header--MarginBottom);
|
|
122
130
|
}
|
|
123
131
|
|
|
132
|
+
.pf-c-log-viewer__header,
|
|
133
|
+
.pf-c-log-viewer__footer {
|
|
134
|
+
@include pf-t-light;
|
|
135
|
+
}
|
|
136
|
+
|
|
124
137
|
// Main
|
|
125
138
|
.pf-c-log-viewer__main {
|
|
126
139
|
display: flex;
|
|
@@ -128,23 +141,6 @@
|
|
|
128
141
|
min-height: 0;
|
|
129
142
|
background-color: var(--pf-c-log-viewer__main--BackgroundColor);
|
|
130
143
|
border: var(--pf-c-log-viewer__main--BorderWidth) solid var(--pf-c-log-viewer__main--BorderColor);
|
|
131
|
-
|
|
132
|
-
// stylelint-disable scss/at-rule-no-unknown
|
|
133
|
-
@at-root.pf-m-line-numbers & {
|
|
134
|
-
position: relative;
|
|
135
|
-
|
|
136
|
-
// Divider
|
|
137
|
-
&::before {
|
|
138
|
-
position: absolute;
|
|
139
|
-
top: var(--pf-c-log-viewer--m-line-numbers__main--before--Top);
|
|
140
|
-
bottom: var(--pf-c-log-viewer--m-line-numbers__main--before--Bottom);
|
|
141
|
-
left: var(--pf-c-log-viewer__index--Width); // share this value so JS can update one value rather than two
|
|
142
|
-
width: var(--pf-c-log-viewer--m-line-numbers__main--before--Width);
|
|
143
|
-
content: "";
|
|
144
|
-
background: var(--pf-c-log-viewer--m-line-numbers__main--before--BackgroundColor);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
// stylelint-enable
|
|
148
144
|
}
|
|
149
145
|
|
|
150
146
|
.pf-c-log-viewer__scroll-container {
|
|
@@ -191,6 +187,7 @@
|
|
|
191
187
|
font-family: var(--pf-c-log-viewer__index--FontFamily);
|
|
192
188
|
font-size: var(--pf-c-log-viewer__index--FontSize);
|
|
193
189
|
color: var(--pf-c-log-viewer__index--Color);
|
|
190
|
+
user-select: none;
|
|
194
191
|
background-color: var(--pf-c-log-viewer__index--BackgroundColor);
|
|
195
192
|
}
|
|
196
193
|
|
|
@@ -124,6 +124,27 @@ cssPrefix: pf-c-expandable-section
|
|
|
124
124
|
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
+
### Indented
|
|
128
|
+
|
|
129
|
+
```html
|
|
130
|
+
<div class="pf-c-expandable-section pf-m-expanded pf-m-indented">
|
|
131
|
+
<button
|
|
132
|
+
type="button"
|
|
133
|
+
class="pf-c-expandable-section__toggle"
|
|
134
|
+
aria-expanded="true"
|
|
135
|
+
>
|
|
136
|
+
<span class="pf-c-expandable-section__toggle-icon">
|
|
137
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
138
|
+
</span>
|
|
139
|
+
<span class="pf-c-expandable-section__toggle-text">Show less</span>
|
|
140
|
+
</button>
|
|
141
|
+
<div
|
|
142
|
+
class="pf-c-expandable-section__content"
|
|
143
|
+
>This content is visible only when the component is expanded.</div>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
|
|
127
148
|
## Documentation
|
|
128
149
|
|
|
129
150
|
### Accessibility
|
|
@@ -149,5 +170,6 @@ cssPrefix: pf-c-expandable-section
|
|
|
149
170
|
| `.pf-m-expanded` | `.pf-c-expandable-section` | Modifies the component for the expanded state. |
|
|
150
171
|
| `.pf-m-display-lg` | `.pf-c-expandable-section` | Modifies the styling of the component to have large display styling. |
|
|
151
172
|
| `.pf-m-detached` | `.pf-c-expandable-section` | Indicates that the expandable section toggle and content are detached from one another, so you can move them around independently in the markup. |
|
|
173
|
+
| `.pf-m-indented` | `.pf-c-expandable-section` | Indicates that the expandable section content is indented and is aligned with the start of the title text to provide visual hierarchy. |
|
|
152
174
|
| `.pf-m-active` | `.pf-c-expandable-section__toggle` | Forces display of the active state of the toggle. |
|
|
153
175
|
| `.pf-m-expand-top` | `.pf-c-expandable-section__toggle-icon` | Modifies the toggle icon to point up when expanded. |
|