From c09799ba0834fe36035790633f966b15785b07ae Mon Sep 17 00:00:00 2001 From: lxsang Date: Sun, 7 Feb 2021 11:51:27 +0100 Subject: [PATCH] mobile page width change to 95% --- doc/assets/style.css | 6 +++--- doc/views/default/layout.ls | 12 ++++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/doc/assets/style.css b/doc/assets/style.css index 8879b65..e4ba6d1 100644 --- a/doc/assets/style.css +++ b/doc/assets/style.css @@ -38,14 +38,14 @@ body { } #navbar { margin: 0 auto; - max-width: 80%; + /* max-width: 80%; */ display: flex; justify-content: flex-end; flex-direction: row; } #book { margin: 0 auto; - max-width: 80%; + /* max-width: 80%; */ max-height: 100%; display: block; justify-content: flex-end; @@ -124,7 +124,7 @@ div.doc-toc { overflow: auto; position: fixed; top: 30px; - bottom: 30px; + bottom: 0px; border-right: 1px solid #c9c9c9; padding-top: 10px; box-shadow: 2px 0px 7px #878887; diff --git a/doc/views/default/layout.ls b/doc/views/default/layout.ls index c1fa260..8bafff7 100644 --- a/doc/views/default/layout.ls +++ b/doc/views/default/layout.ls @@ -3,6 +3,10 @@ local tocdata = __main__:get("toc") local elinks = __main__:get("elinks") local has_3d = __main__:get("has_3d") local url = __main__:get("url") +local book_width_css='style="max-width:80%;"' +if HEADER.mobile then + book_width_css='style="max-width:95%;"' +end ?> @@ -77,7 +81,7 @@ local url = __main__:get("url")
-