aboutsummaryrefslogtreecommitdiff
path: root/assets/_main.scss
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-05-18 23:58:21 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-05-18 23:58:21 +0200
commit65484b0f4c5d14241a5618ba89f476c53b794cf6 (patch)
tree09f5d50071234cf471df4a4b8e0846666ef41cc6 /assets/_main.scss
parent71e55e59d119523e933911835059c5a846437570 (diff)
#215, Fix menu translateX for RTL (negative X)
Diffstat (limited to 'assets/_main.scss')
-rw-r--r--assets/_main.scss14
1 files changed, 8 insertions, 6 deletions
diff --git a/assets/_main.scss b/assets/_main.scss
index 4b637d0..47150c2 100644
--- a/assets/_main.scss
+++ b/assets/_main.scss
@@ -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;
}