@patternfly/patternfly 5.1.0-prerelease.8 → 5.1.0-prerelease.9
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/README.md +10 -0
- package/base/_common.scss +20 -0
- package/base/_variables.scss +3 -0
- package/base/patternfly-common.css +21 -0
- package/base/patternfly-variables.css +1 -0
- package/components/DualListSelector/dual-list-selector.css +5 -1
- package/components/DualListSelector/dual-list-selector.scss +7 -3
- package/components/Pagination/pagination.css +4 -0
- package/components/Pagination/pagination.scss +2 -0
- package/components/Switch/switch.css +1 -1
- package/components/Switch/switch.scss +1 -1
- package/components/Wizard/wizard.css +7 -1
- package/components/Wizard/wizard.scss +7 -3
- package/docs/components/Chip/examples/Chip.md +1 -1
- package/docs/components/DragDrop/examples/DragDrop.css +2 -2
- package/docs/components/Label/examples/Label.md +1 -1
- package/package.json +2 -2
- package/patternfly-base-no-globals-theme-dark-unversioned.css +22 -0
- package/patternfly-base-no-globals.css +22 -0
- package/patternfly-base-theme-dark-unversioned.css +22 -0
- package/patternfly-base.css +22 -0
- package/patternfly-no-globals.css +39 -3
- package/patternfly-theme-dark-unversioned.css +39 -3
- package/patternfly.css +39 -3
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/mixins.scss +25 -0
|
@@ -309,3 +309,28 @@
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
+
|
|
313
|
+
// Applies custom styles to support RTL
|
|
314
|
+
@mixin pf-v5-rtl($transform: null) {
|
|
315
|
+
// resets property used to inverse transform values calc()s in RTL
|
|
316
|
+
@if $transform == "transform-flip-revert" {
|
|
317
|
+
--#{$pf-global}--rtl--transform--flip: 1;
|
|
318
|
+
} @else {
|
|
319
|
+
// establishes the selectors used to target RTL
|
|
320
|
+
// remove .ws-dir-rtl before releasing RTL
|
|
321
|
+
@at-root :where(.ws-dir-rtl, .#{$pf-prefix}m-dir-rtl, [dir="rtl"]) #{&} {
|
|
322
|
+
// sets property used in calcs to inverse transform values
|
|
323
|
+
@if $transform == "transform-flip" {
|
|
324
|
+
--#{$pf-global}--rtl--transform--flip: -1;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// flips something horizontally/inline. relies upon scale/scale() not already being used for the element
|
|
328
|
+
@if $transform == 'flip-inline' {
|
|
329
|
+
scale: -1 1;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// any custom CSS to apply within the selectors that target RTL
|
|
333
|
+
@content
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|