mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-04-19 18:16:44 +02:00
mobile page width change to 95%
This commit is contained in:
parent
3f1530cfe8
commit
c09799ba08
@ -38,14 +38,14 @@ body {
|
|||||||
}
|
}
|
||||||
#navbar {
|
#navbar {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 80%;
|
/* max-width: 80%; */
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
#book {
|
#book {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 80%;
|
/* max-width: 80%; */
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
@ -124,7 +124,7 @@ div.doc-toc {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 30px;
|
top: 30px;
|
||||||
bottom: 30px;
|
bottom: 0px;
|
||||||
border-right: 1px solid #c9c9c9;
|
border-right: 1px solid #c9c9c9;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
box-shadow: 2px 0px 7px #878887;
|
box-shadow: 2px 0px 7px #878887;
|
||||||
|
@ -3,6 +3,10 @@ local tocdata = __main__:get("toc")
|
|||||||
local elinks = __main__:get("elinks")
|
local elinks = __main__:get("elinks")
|
||||||
local has_3d = __main__:get("has_3d")
|
local has_3d = __main__:get("has_3d")
|
||||||
local url = __main__:get("url")
|
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>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
@ -77,7 +81,7 @@ local url = __main__:get("url")
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id = "top">
|
<div id = "top">
|
||||||
<div id = "navbar">
|
<div id = "navbar" <?=book_width_css?>>
|
||||||
<div class = "doc-name">
|
<div class = "doc-name">
|
||||||
<?lua if tocdata then ?>
|
<?lua if tocdata then ?>
|
||||||
<a href ="<?=HTTP_ROOT..'/'..tocdata.controller..'/'?>">
|
<a href ="<?=HTTP_ROOT..'/'..tocdata.controller..'/'?>">
|
||||||
@ -107,7 +111,7 @@ local url = __main__:get("url")
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id = "cover">
|
<div id = "cover">
|
||||||
<div id = "book">
|
<div id = "book" <?=book_width_css?>>
|
||||||
<?lua
|
<?lua
|
||||||
if tocdata then
|
if tocdata then
|
||||||
?>
|
?>
|
||||||
@ -141,9 +145,9 @@ local url = __main__:get("url")
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id = "bottom">
|
<!--div id = "bottom">
|
||||||
Powered by antd server, (c) 2019 - <?=os.date("*t").year?> Xuan Sang LE
|
Powered by antd server, (c) 2019 - <?=os.date("*t").year?> Xuan Sang LE
|
||||||
</div>
|
</div-->
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('load', (event) => {
|
window.addEventListener('load', (event) => {
|
||||||
$("#btn_toc").click(function(){
|
$("#btn_toc").click(function(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user