Commit 6436bf2f by Usman Khalid

Flip fontawesome's icon-caret-right 180deg in rtl.

TNL-813
parent 717ac283
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// -------------------- // --------------------
// collapse/expand // collapse/expand
// -------------------- // --------------------
.ui-toggle-visibility { .ui-toggle-visibility {
// control to toggle // control to toggle
...@@ -23,7 +24,7 @@ ...@@ -23,7 +24,7 @@
> .ico { > .ico {
@include transition(all $tmg-f2 ease-in-out 0s); @include transition(all $tmg-f2 ease-in-out 0s);
@include transform(rotate(90deg)); @include transform(rotate(bidi-rotate-angle(90deg)));
} }
.ui-toggle-visibility__control__copy { .ui-toggle-visibility__control__copy {
...@@ -53,7 +54,7 @@ ...@@ -53,7 +54,7 @@
&.is--collapsed { &.is--collapsed {
>.ui-toggle-visibility__control > .ico { >.ui-toggle-visibility__control > .ico {
@include transform(rotate(0deg)); @include transform(rotate(bidi-rotate-angle(0deg)));
@include transform-origin(50% 50%); @include transform-origin(50% 50%);
} }
......
...@@ -641,7 +641,7 @@ ...@@ -641,7 +641,7 @@
.action.expand-collapse { .action.expand-collapse {
@include float(left); @include float(left);
.ui-toggle-expansion { .ui-toggle-expansion {
@include transform(rotate(-90deg)); @include transform(rotate(bidi-rotate-angle(-90deg)));
@include transform-origin(50% 50%); @include transform-origin(50% 50%);
color: $edx-gray-d3; color: $edx-gray-d3;
} }
...@@ -1024,7 +1024,7 @@ ...@@ -1024,7 +1024,7 @@
.action.expand-collapse { .action.expand-collapse {
@include float(left); @include float(left);
.ui-toggle-expansion { .ui-toggle-expansion {
@include transform(rotate(-90deg)); @include transform(rotate(bidi-rotate-angle(-90deg)));
@include transform-origin(50% 50%); @include transform-origin(50% 50%);
.icon-caret-down:before { .icon-caret-down:before {
color: #009fe6; color: #009fe6;
......
...@@ -14,3 +14,11 @@ ...@@ -14,3 +14,11 @@
} }
box-shadow: $shadow; box-shadow: $shadow;
} }
@function bidi-rotate-angle($degrees) {
@if $bi-app-direction == ltr {
@return $degrees;
} @else {
@return 180deg - $degrees;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment