i18n: Use correct direction for collapse Table of Contents

Collapse Table of Contents has incorrect direction for RTL, this fixes it.

Bug: T309478
Change-Id: I43f2d225aed7c3a74e35f8e72c1e261b39af9737
This commit is contained in:
Ebrahim Byagowi 2022-05-30 00:13:20 +04:30
parent 8be6a96b7c
commit aebd782d75

View file

@ -117,7 +117,6 @@
width: @toggle-icon-size; // ~22px @ 12 width: @toggle-icon-size; // ~22px @ 12
height: @toggle-icon-size; height: @toggle-icon-size;
font-size: 0.75em; // reduces size of toggle icon to 12px @ 16 font-size: 0.75em; // reduces size of toggle icon to 12px @ 16
transform: rotate( -90deg );
transition: @transition-duration-base; transition: @transition-duration-base;
} }
@ -126,6 +125,14 @@
} }
} }
.client-js body.ltr .sidebar-toc .sidebar-toc-toggle {
transform: rotate( -90deg );
}
.client-js body.rtl .sidebar-toc .sidebar-toc-toggle {
transform: rotate( 90deg );
}
@media ( min-width: @width-breakpoint-desktop ) { @media ( min-width: @width-breakpoint-desktop ) {
.sidebar-toc { .sidebar-toc {
display: block; display: block;