#215, Fix menu translateX for RTL (negative X)

This commit is contained in:
Alex Shpak
2020-05-18 23:58:21 +02:00
parent 71e55e59d1
commit 65484b0f4c
5 changed files with 12 additions and 10 deletions
+8 -6
View File
@@ -168,12 +168,6 @@ ul.pagination {
margin: $padding-16 0;
border-bottom: 1px solid transparent;
&::after {
display: block;
content: "";
clear: both;
}
input {
width: 100%;
padding: $padding-8;
@@ -342,6 +336,14 @@ aside nav,
}
}
//for RTL support
body[dir="rtl"] #menu-control:checked + main {
.book-menu nav,
.book-page {
transform: translateX(-$menu-width);
}
}
#toc-control:checked + aside {
display: block;
}