@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.
@@ -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
+ }