aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2021-01-26 22:20:17 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2021-01-26 22:20:30 +0100
commitd9fe59a6e9104797e8e588e919ec7008d6204b8e (patch)
treec407f742bddd3b486f4e596ec6b4f46c4d8a6d2f /assets
parent012ccee53d9154e4143f86ba40e492075db861ce (diff)
Refactor aside menus, add extra wrapper
Diffstat (limited to 'assets')
-rw-r--r--assets/_main.scss15
1 files changed, 8 insertions, 7 deletions
diff --git a/assets/_main.scss b/assets/_main.scss
index 1440f6f..6c044cb 100644
--- a/assets/_main.scss
+++ b/assets/_main.scss
@@ -99,7 +99,7 @@ ul.pagination {
flex: 0 0 $menu-width;
font-size: $font-size-14;
- nav {
+ .book-menu-content {
width: $menu-width;
padding: $padding-16;
background: var(--body-background);
@@ -209,7 +209,7 @@ ul.pagination {
flex: 0 0 $toc-width;
font-size: $font-size-12;
- > nav {
+ .book-toc-content {
width: $toc-width;
padding: $padding-16;
@@ -297,7 +297,8 @@ ul.pagination {
}
// Responsive styles
-aside nav,
+.book-menu-content,
+.book-toc-content,
.book-page,
.book-header aside,
.markdown {
@@ -336,7 +337,7 @@ aside nav,
visibility: initial;
}
- .book-menu nav {
+ .book-menu .book-menu-content {
transform: translateX($menu-width);
box-shadow: 0 0 $padding-8 rgba(0, 0, 0, 0.1);
}
@@ -367,7 +368,7 @@ aside nav,
//for RTL support
body[dir="rtl"] #menu-control:checked + main {
- .book-menu nav {
+ .book-menu .book-menu-content {
transform: translateX(-$menu-width);
}
}
@@ -376,8 +377,8 @@ aside nav,
// Extra space for big screens
@media screen and (min-width: $container-max-width) {
.book-page,
- .book-menu nav,
- .book-toc > nav {
+ .book-menu .book-menu-content,
+ .book-toc .book-toc-content {
padding: $padding-16 * 2 $padding-16;
}
}