@siemens/element-theme 49.0.0-rc.2 → 49.0.0-rc.3
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/package.json
CHANGED
|
@@ -589,14 +589,22 @@ $utilities: (
|
|
|
589
589
|
)
|
|
590
590
|
);
|
|
591
591
|
|
|
592
|
+
@function parent-selector($parent) {
|
|
593
|
+
@if ($parent) {
|
|
594
|
+
@return '&';
|
|
595
|
+
} @else {
|
|
596
|
+
@return '';
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
592
600
|
@mixin rtl {
|
|
593
601
|
// for WebKit/Blink based browsers, not (yet) supporting :dir
|
|
594
|
-
[dir='rtl'] #{
|
|
602
|
+
[dir='rtl'] #{parent-selector(&)} {
|
|
595
603
|
@content;
|
|
596
604
|
}
|
|
597
605
|
|
|
598
606
|
// Spec and Firefox
|
|
599
|
-
:dir(rtl) #{
|
|
607
|
+
:dir(rtl) #{parent-selector(&)} {
|
|
600
608
|
@content;
|
|
601
609
|
}
|
|
602
610
|
}
|