#215, Fix menu translateX for RTL (negative X)
This commit is contained in:
+8
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user