mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-25 12:46:44 +00:00
#215, Fix menu translateX for RTL (negative X)
This commit is contained in:
parent
71e55e59d1
commit
65484b0f4c
@ -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;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"Target":"book.min.c3e2d100ba2319549e09b81b242634766bd799847cf02e1d6fa2426a64db14dc.css","MediaType":"text/css","Data":{"Integrity":"sha256-w+LRALojGVSeCbgbJCY0dmvXmYR88C4db6JCamTbFNw="}}
|
||||
{"Target":"book.min.a56ee6d9b77f646d0d4bb1b367d0f8dbc01d8ee356ea2a65bd9516e8647eea5c.css","MediaType":"text/css","Data":{"Integrity":"sha256-pW7m2bd/ZG0NS7GzZ9D428AdjuNW6iplvZUW6GR+6lw="}}
|
@ -6,7 +6,7 @@
|
||||
{{ partial "docs/inject/head" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body dir={{ .Site.Language.LanguageDirection }}>
|
||||
<input type="checkbox" class="hidden" id="menu-control" />
|
||||
<main class="container flex">
|
||||
<aside class="book-menu">
|
||||
|
@ -1,7 +1,7 @@
|
||||
{{ if default true .Site.Params.BookSearch }}
|
||||
<div class="book-search">
|
||||
<input type="text" id="book-search-input" placeholder="{{ i18n "Search" }}" aria-label="{{ i18n "Search" }}" maxlength="64" data-hotkeys="s/" />
|
||||
<div class="book-search-spinner spinner hidden"></div>
|
||||
<div class="book-search-spinner hidden"></div>
|
||||
<ul id="book-search-results"></ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user