1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shylinux 2021-05-15 07:51:14 +08:00
parent 6335a8a3fe
commit d23369ccaf
4 changed files with 13 additions and 3 deletions

View File

@ -16,10 +16,19 @@ body.mobile.landscape fieldset.Action.main {
body.mobile fieldset.Header.head {
position:fixed; top:0;
width:-webkit-fill-available;
height:48px; font-size:24px;
height:2em; font-size:24px;
background-color:#000000b8;
z-index:10;
}
body.mobile fieldset.Header.head div.output {
height:2em;
}
body.mobile fieldset.Header>div.output>div {
height:1.5em;
}
body.mobile fieldset.Header>div.output div.menu {
height:1.5em;
}
body.mobile fieldset.Header.head div.state.time {
display:none;
}

View File

@ -34,7 +34,7 @@ fieldset.Header>div.output>div.state {
float:right;
}
fieldset.Header>div.output>div.state.avatar>img {
height:22px;
height:1.4em;
}
fieldset.Header>div.output div.menu {

View File

@ -86,6 +86,7 @@ Volcanos("onaction", {help: "控件交互", list: [], _init: function(can, msg,
can.onengine.listen(can, "action.touch", function() {
can.user.isMobile && can.onmotion.hidden(can)
Volcanos.meta.data.menu && can.page.Remove(can, Volcanos.meta.data.menu.first)
})
},
storm: function(event, can, river) {

View File

@ -146,7 +146,7 @@ Volcanos("ondetail", {help: "用户交互", list: [],
can.onlayout.figure(event, sub, sub._target)
can.search(event, ["Action.onexport.size"], function(msg, left, top, width, height) { left = left||0
can.page.Modify(can, sub._target, {style: {position: "fixed", left: left, top: 120}})
can.page.Modify(can, sub._target, {style: {position: "fixed", left: left, top: can.user.isMobile&&can.user.isLandscape? 0: 120}})
can.page.Modify(can, sub._output, {style: {"max-width": width}})
})
}