mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-12-26 01:18:21 +01:00
mobile page width change to 95%
This commit is contained in:
parent
3f1530cfe8
commit
c09799ba08
@ -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;
|
||||
|
@ -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
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@ -77,7 +81,7 @@ local url = __main__:get("url")
|
||||
</head>
|
||||
<body>
|
||||
<div id = "top">
|
||||
<div id = "navbar">
|
||||
<div id = "navbar" <?=book_width_css?>>
|
||||
<div class = "doc-name">
|
||||
<?lua if tocdata then ?>
|
||||
<a href ="<?=HTTP_ROOT..'/'..tocdata.controller..'/'?>">
|
||||
@ -107,7 +111,7 @@ local url = __main__:get("url")
|
||||
</div>
|
||||
</div>
|
||||
<div id = "cover">
|
||||
<div id = "book">
|
||||
<div id = "book" <?=book_width_css?>>
|
||||
<?lua
|
||||
if tocdata then
|
||||
?>
|
||||
@ -141,9 +145,9 @@ local url = __main__:get("url")
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id = "bottom">
|
||||
<!--div id = "bottom">
|
||||
Powered by antd server, (c) 2019 - <?=os.date("*t").year?> Xuan Sang LE
|
||||
</div>
|
||||
</div-->
|
||||
<script>
|
||||
window.addEventListener('load', (event) => {
|
||||
$("#btn_toc").click(function(){
|
||||
|
Loading…
Reference in New Issue
Block a user