summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets
diff options
context:
space:
mode:
Diffstat (limited to 'theme/stylesheets')
-rwxr-xr-xtheme/stylesheets/website/body.less15
-rwxr-xr-xtheme/stylesheets/website/summary.less2
2 files changed, 9 insertions, 8 deletions
diff --git a/theme/stylesheets/website/body.less b/theme/stylesheets/website/body.less
index 6ff3f61..184351b 100755
--- a/theme/stylesheets/website/body.less
+++ b/theme/stylesheets/website/body.less
@@ -53,13 +53,7 @@
}
@media (max-width: @mobileMaxWidth) {
- overflow-y: auto;
-
- .body-inner {
- position: static;
- padding-bottom: 20px;
- min-height: calc(~"100% - 57px")
- }
+ .transition-transform(0.5s ease);
}
}
@@ -69,6 +63,13 @@
left: @sidebar-width;
}
}
+ @media (max-width: @sidebar-breakpoint) {
+ overflow: hidden;
+
+ .book-body {
+ .translate(~"calc(100% - 60px)", 0px);
+ }
+ }
}
&.without-animation {
diff --git a/theme/stylesheets/website/summary.less b/theme/stylesheets/website/summary.less
index e65366b..9b614a7 100755
--- a/theme/stylesheets/website/summary.less
+++ b/theme/stylesheets/website/summary.less
@@ -109,7 +109,7 @@
}
@media (max-width: @sidebar-breakpoint) {
- width: 100%;
+ width: calc(~"100% - 60px");
bottom: 0px;
left: -100%;
}