.is-drilldown-sub {
position: absolute;
top: 0;
- left: 100%;
+ #{$global-left}: 100%;
z-index: -1;
height: 100%;
width: 100%;
&.is-active {
z-index: 1;
display: block;
- transform: translateX(-100%);
+ transform: translateX(if($global-text-direction == ltr, -100%, 100%));
}
&.is-closing {
- transform: translateX(100%);
+ transform: translateX(if($global-text-direction == ltr, 100%, -100%));
}
}
position: relative;
&::after {
- @include css-triangle(6px, $primary-color, right);
+ @include css-triangle(6px, $primary-color, $global-right);
position: absolute;
top: 50%;
margin-top: -6px;
- right: 1rem;
+ #{$global-right}: 1rem;
}
}
.js-drilldown-back::before {
- @include css-triangle(6px, $primary-color, left);
- float: left;
- margin-right: 0.75rem; // Creates space between the arrow and the text
- margin-left: 0.6rem; // Lines the tip of the arrow with the items below
+ @include css-triangle(6px, $primary-color, $global-left);
+ float: $global-left;
+ margin-#{$global-right}: 0.75rem; // Creates space between the arrow and the text
+ margin-#{$global-left}: 0.6rem; // Lines the tip of the arrow with the items below
margin-top: 14px; // Aligns the arrow with the text
}
}