From 65484b0f4c5d14241a5618ba89f476c53b794cf6 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 18 May 2020 23:58:21 +0200 Subject: #215, Fix menu translateX for RTL (negative X) --- assets/_main.scss | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'assets/_main.scss') 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; } -- cgit v1.2.3