vendor/assets/scss/util/_flex.scss in foundation-rails-6.4.3.0 vs vendor/assets/scss/util/_flex.scss in foundation-rails-6.5.1.0
- old
+ new
@@ -1,11 +1,16 @@
-$-zf-flex-justify: (
- 'left': flex-start,
- 'right': flex-end,
- 'center': center,
- 'justify': space-between,
- 'spaced': space-around,
-);
+@function -zf-flex-justify($text-direction){
+ $-zf-flex-justify: (
+ 'left': if($text-direction == rtl, flex-end, flex-start),
+ 'right': if($text-direction == rtl, flex-start, flex-end),
+ 'center': center,
+ 'justify': space-between,
+ 'spaced': space-around,
+ );
+
+ @return $-zf-flex-justify;
+}
+
$-zf-flex-align: (
'top': flex-start,
'bottom': flex-end,
'middle': center,