Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alex-shpak/hugo-book.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxhdix <xhdix@yahoo.com>2021-06-21 21:18:14 +0300
committerGitHub <noreply@github.com>2021-06-21 21:18:14 +0300
commit0d2ed5586ef67faf9fcdbe0164becaa49cde2603 (patch)
tree62f3df9655c205f36c5b72436e6b502ee9007f7e
parent379e311d7e38b7cb5b39acc53c87aa65ff92d471 (diff)
Change collapsed icon in menu for RTL pages (#354)
-rw-r--r--assets/_main.scss13
1 files changed, 12 insertions, 1 deletions
diff --git a/assets/_main.scss b/assets/_main.scss
index 09c4f91..4e96316 100644
--- a/assets/_main.scss
+++ b/assets/_main.scss
@@ -135,6 +135,17 @@ ul.pagination {
}
}
+// for RTL support
+body[dir="rtl"] .book-menu {
+ input.toggle + label::after {
+ content: "◂";
+ }
+
+ input.toggle:checked + label::after {
+ content: "▾";
+ }
+}
+
.book-section-flat {
margin-bottom: $padding-16 * 2;
@@ -381,7 +392,7 @@ ul.pagination {
}
}
- //for RTL support
+ // for RTL support
body[dir="rtl"] #menu-control:checked ~ main {
.book-menu .book-menu-content {
transform: translateX(-$menu-width);