mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt index.css
This commit is contained in:
parent
0c3a877eaa
commit
12e123462e
2
frame.js
2
frame.js
@ -660,7 +660,7 @@ Volcanos("onmotion", {help: "动态特效", list: [], _init: function(can, targe
|
||||
auto: function(can, target) { var that = this
|
||||
can.page.Select(can, target||can._output, ".story", function(item) { var meta = item.dataset
|
||||
can.page.Modify(can, item, {style: can.base.Obj(meta.style)})
|
||||
can.core.CallFunc(that._hash[meta.type], [can, meta, target])
|
||||
can.core.CallFunc(that._hash[meta.type], [can, meta, target||can._output])
|
||||
})
|
||||
},
|
||||
},
|
||||
|
1005
page/index.css
1005
page/index.css
File diff suppressed because it is too large
Load Diff
@ -42,7 +42,14 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg)
|
||||
can._menu && can.page.Remove(can, can._menu)
|
||||
can._menu = can.search({}, ["Header.onimport.menu", can._ACTION,
|
||||
["布局", "默认布局", "流动布局", "网格布局", "标签布局", "自由布局"],
|
||||
], function(event, layout) { can.onaction.layout(can, layout) })
|
||||
["help", "tutor", "manual", "program", "refer"],
|
||||
], function(event, button, list) {
|
||||
if (list[0] == "help") {
|
||||
can.user.open("/chat/cmd/src/help/"+button+".shy")
|
||||
} else {
|
||||
can.onaction.layout(can, button)
|
||||
}
|
||||
})
|
||||
},
|
||||
_share: function(can, share) {
|
||||
share && can.run({}, ["_share", share], function(msg) {
|
||||
|
@ -0,0 +1,6 @@
|
||||
fieldset.panel.cmd>div.output>fieldset.plugin>legend {
|
||||
display:none;
|
||||
}
|
||||
fieldset.panel.cmd>div.output>fieldset.plugin {
|
||||
margin:0; padding:0;
|
||||
}
|
@ -15,7 +15,7 @@ Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg,
|
||||
can.page.ClassList.add(can, can._target, "Action")
|
||||
},
|
||||
_plugin: function(can, index, args, next) {
|
||||
can.onappend.plugin(can, {type: "plugin", index: index, args: args, opts: can.user.Search(), width: window.innerWidth-40}, function(sub, meta) {
|
||||
can.onappend.plugin(can, {type: "plugin", index: index, args: args, opts: can.user.Search(), width: window.innerWidth}, function(sub, meta) {
|
||||
sub.run = function(event, cmds, cb) {
|
||||
can.run(event, can.misc.Concat([ctx.ACTION, "run", index], cmds), cb)
|
||||
}
|
||||
|
@ -2,10 +2,6 @@ fieldset.Footer {
|
||||
height:32px; padding:0 5px;
|
||||
clear:both;
|
||||
}
|
||||
fieldset.Footer div.toast {
|
||||
position:static;
|
||||
float:left;
|
||||
}
|
||||
fieldset.Footer>div.output {
|
||||
height:32px; overflow:hidden;
|
||||
}
|
||||
@ -23,13 +19,13 @@ fieldset.Footer>div.output div.title {
|
||||
}
|
||||
fieldset.Footer>div.output div.toast {
|
||||
float:right;
|
||||
background-color:darkcyan;
|
||||
}
|
||||
fieldset.Footer>div.output div.state {
|
||||
float:right;
|
||||
}
|
||||
|
||||
fieldset.Footer>div.output input[name=cmd] {
|
||||
background-color:black; color:white;
|
||||
width:120px; height:25px;
|
||||
}
|
||||
fieldset.Footer>div.output input[name=cmd]:focus {
|
||||
|
@ -21,11 +21,8 @@ fieldset.Header>div.output>div.title {
|
||||
fieldset.Header>div.output>div.search {
|
||||
float:left; margin-left:20px;
|
||||
}
|
||||
fieldset.Header>div.output>div.search>input:hover {
|
||||
/* width:240px; */
|
||||
}
|
||||
fieldset.Header>div.output>div.menus {
|
||||
float:left; margin-left:5px;
|
||||
fieldset.Header>div.output>div.search>input {
|
||||
height:25px; margin-top:-5px;
|
||||
}
|
||||
fieldset.Header>div.output>div.state {
|
||||
float:right;
|
||||
@ -43,9 +40,6 @@ fieldset.Header>div.output div.menu:hover {
|
||||
border-bottom:solid 2px red;
|
||||
background-color:#2e515f;
|
||||
}
|
||||
fieldset.Header>div.status {
|
||||
display:none;
|
||||
}
|
||||
|
||||
body.black fieldset.Header>div.output>div.search>input {
|
||||
width:120px; background-color:cyan;
|
||||
|
@ -125,12 +125,14 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
return can.page.Append(can, can._output, [{type: cmds[0], list: can.core.List(cmds.slice(1), function(item) {
|
||||
if (typeof item == "string") {
|
||||
return {view: ["menu", html.DIV, can.user.trans(can, item)], onclick: function(event) {
|
||||
can.base.isFunc(cb) && cb(event, item)
|
||||
can.base.isFunc(cb) && cb(event, item, cmds)
|
||||
}}
|
||||
|
||||
} else if (item.length > 0) {
|
||||
return {view: ["menu", html.DIV, can.user.trans(can, item[0])], onmouseenter: function(event) {
|
||||
can.onaction.carte(event, can, item.slice(1), cb)
|
||||
can.onaction.carte(event, can, item.slice(1), function(event, button) {
|
||||
can.base.isFunc(cb) && cb(event, button, item)
|
||||
})
|
||||
}}
|
||||
|
||||
} else if (typeof item == "object") {
|
||||
@ -156,6 +158,12 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, meta,
|
||||
"river": "菜单",
|
||||
"search": "搜索",
|
||||
|
||||
"help": "文档",
|
||||
"tutor": "入门简介",
|
||||
"manual": "使用手册",
|
||||
"program": "编程手册",
|
||||
"refer": "参考手册",
|
||||
|
||||
"setting": "设置",
|
||||
"black": "黑色主题",
|
||||
"white": "白色主题",
|
||||
@ -190,6 +198,11 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, meta,
|
||||
},
|
||||
carte: function(event, can, list, cb) { can.user.carte(event, can, can.onaction, list, cb) },
|
||||
river: function(event, can) { can.onaction.River(can) },
|
||||
tutor: function(event, can) { can.user.open("/chat/cmd/src/help/tutor.shy") },
|
||||
manual: function(event, can) { can.user.open("/chat/cmd/src/help/manual.shy") },
|
||||
program: function(event, can) { can.user.open("/chat/cmd/src/help/program.shy") },
|
||||
refer: function(event, can) { can.user.open("/chat/cmd/src/help/refer.shy") },
|
||||
|
||||
black: function(event, can, button) {
|
||||
can.onlayout.topic(can, button)
|
||||
can.onlayout._init(can)
|
||||
|
@ -5,13 +5,12 @@ fieldset.River>div.output div.item {
|
||||
border-left:solid 3px #00ffae;
|
||||
padding:3px 16px;
|
||||
}
|
||||
fieldset.River>div.output div.item:hover {
|
||||
background-color:#2e515f;
|
||||
}
|
||||
fieldset.River>div.output div.item.select {
|
||||
background-color:#2e515f;
|
||||
}
|
||||
|
||||
fieldset.River>div.output div.item:hover {
|
||||
background-color:#2e515f;
|
||||
}
|
||||
fieldset.River>div.output div.list {
|
||||
margin-left:8px; padding-left:5px;
|
||||
}
|
||||
@ -21,9 +20,9 @@ fieldset.River>div.output div.list div.item {
|
||||
font-family:monospace;
|
||||
font-size:14px;
|
||||
}
|
||||
fieldset.River>div.output div.list div.item:hover {
|
||||
background-color:#2e515f;
|
||||
}
|
||||
fieldset.River>div.output div.list div.item.select {
|
||||
background-color:#2e515f;
|
||||
}
|
||||
fieldset.River>div.output div.list div.item:hover {
|
||||
background-color:#2e515f;
|
||||
}
|
||||
|
@ -1,6 +1,3 @@
|
||||
fieldset.editor>form.option div.item input.args[name=line] {
|
||||
width:40px;
|
||||
}
|
||||
fieldset.editor>div.action div.file {
|
||||
border:solid 2px red; padding:2px;
|
||||
float:left; cursor:pointer;
|
||||
|
@ -325,7 +325,7 @@ Volcanos("onaction", {help: "组件菜单", list: [
|
||||
"编辑": function(event, can, key) { can.Action("go", "auto") },
|
||||
"save": function(event, can, key) {
|
||||
var msg = can.request(event, {content: can.onexport.content(can, can.svg)})
|
||||
can.run(event, [ctx.ACTION, "save", can.Option("path"), can.Option("file")], function(msg) {
|
||||
can.run(event, [ctx.ACTION, "save", can.Option("path")], function(msg) {
|
||||
can.user.toast(can, "保存成功")
|
||||
}, true)
|
||||
},
|
||||
|
@ -1,5 +1,38 @@
|
||||
fieldset.word>form.option>div.item.text input {
|
||||
width:200px;
|
||||
fieldset.word>div.output {
|
||||
clear:none;
|
||||
float:left;
|
||||
}
|
||||
fieldset.word>div.output fieldset.span>fieldset {
|
||||
float:left; overflow:auto;
|
||||
}
|
||||
|
||||
fieldset.word>div.navmenu {
|
||||
clear:both;
|
||||
float:left;
|
||||
min-width:120px;
|
||||
background-color:inherit;
|
||||
margin-right:10px;
|
||||
overflow:auto;
|
||||
}
|
||||
fieldset.word>div.navmenu>div.item {
|
||||
font-weight:bold;
|
||||
font-size:24px;
|
||||
padding:4px 10px;
|
||||
}
|
||||
fieldset.word>div.navmenu>div.list>div.item {
|
||||
font-weight:bold;
|
||||
font-size:18px;
|
||||
}
|
||||
fieldset.word>div.navmenu div.item {
|
||||
font-family:cursive;
|
||||
padding:4px 10px;
|
||||
}
|
||||
fieldset.word>div.navmenu div.item:hover {
|
||||
cursor:pointer;
|
||||
background-color:red;
|
||||
}
|
||||
fieldset.word>div.navmenu div.list {
|
||||
margin-left:20px;
|
||||
}
|
||||
|
||||
fieldset.word a {
|
||||
@ -12,7 +45,10 @@ fieldset.word ul.story[data-type=premenu] li:hover {
|
||||
background:cyan;
|
||||
color:blue;
|
||||
}
|
||||
fieldset.word li.H2 {
|
||||
fieldset.word ul.story[data-type=endmenu] {
|
||||
clear:both;
|
||||
}
|
||||
fieldset.word ul.story li.H2 {
|
||||
font-weight:bold;
|
||||
font-size:20px;
|
||||
}
|
||||
@ -43,14 +79,17 @@ fieldset.word code.story {
|
||||
padding:10px; white-space:pre;
|
||||
clear:both;
|
||||
}
|
||||
fieldset.word fieldset.story:hover {
|
||||
box-shadow: 12px 12px 12px 6px #5764efd1;
|
||||
fieldset.word video.story {
|
||||
max-height:320px;
|
||||
}
|
||||
fieldset.word fieldset.story {
|
||||
margin:10px; border:0;
|
||||
clear:both; float:left;
|
||||
box-shadow: 4px 4px 10px 1px #626bd0;
|
||||
}
|
||||
fieldset.word fieldset.story:hover {
|
||||
box-shadow: 12px 12px 12px 6px #5764efd1;
|
||||
}
|
||||
|
||||
fieldset.word.float {
|
||||
width:-webkit-fill-available;
|
||||
@ -95,65 +134,13 @@ fieldset.word.float h3 {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
fieldset.word video.story {
|
||||
max-height:320px;
|
||||
fieldset.panel.cmd fieldset.word>form.option {
|
||||
display:none;
|
||||
}
|
||||
fieldset.panel.cmd fieldset.word>div.action {
|
||||
display:none;
|
||||
}
|
||||
fieldset.panel.cmd fieldset.word>div.status {
|
||||
display:none;
|
||||
}
|
||||
|
||||
fieldset.word div.navmenu {
|
||||
clear:both;
|
||||
float:left;
|
||||
min-width:120px;
|
||||
background-color:inherit;
|
||||
margin-right:10px;
|
||||
}
|
||||
fieldset.word div.navmenu>div.item {
|
||||
font-weight:bold;
|
||||
font-size:24px;
|
||||
padding:4px 10px;
|
||||
}
|
||||
fieldset.word div.navmenu>div.list>div.item {
|
||||
font-weight:bold;
|
||||
font-size:18px;
|
||||
}
|
||||
fieldset.word div.navmenu div.item {
|
||||
font-family:cursive;
|
||||
padding:4px 10px;
|
||||
}
|
||||
fieldset.word div.navmenu div.list {
|
||||
margin-left:20px;
|
||||
}
|
||||
fieldset.word div.navmenu div.item:hover {
|
||||
cursor:pointer;
|
||||
background-color:red;
|
||||
}
|
||||
fieldset.word>div.output {
|
||||
clear:none;
|
||||
float:left;
|
||||
}
|
||||
fieldset.word>div.status {
|
||||
clear:both;
|
||||
}
|
||||
|
||||
fieldset.word.cmd {
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
fieldset.word.cmd>legend {
|
||||
display:none;
|
||||
}
|
||||
fieldset.word.cmd>form.option {
|
||||
display:none;
|
||||
}
|
||||
fieldset.word.cmd>div.action {
|
||||
display:none;
|
||||
}
|
||||
fieldset.word.cmd>div.status {
|
||||
display:none;
|
||||
}
|
||||
fieldset.word.cmd>div.navmenu {
|
||||
overflow:auto;
|
||||
}
|
||||
|
||||
fieldset.word ul[data-type=endmenu] {
|
||||
clear:both;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
can.page.ClassList.add(can, can._fields, "cmd")
|
||||
can.page.Modify(can, can.sup._navmenu, {style: {height: window.innerHeight}})
|
||||
if (can.sup._navmenu) {
|
||||
can.Conf("width", can.Conf("width")-can.sup._navmenu.offsetWidth+30)
|
||||
can.Conf("width", can.Conf("width")-can.sup._navmenu.offsetWidth-10)
|
||||
can.page.Modify(can, can._output, {style: {"max-width": can.Conf("width")}})
|
||||
can.page.Modify(can, can._output, {style: {height: window.innerHeight}})
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, conf,
|
||||
},
|
||||
_inner: function(can, msg) {
|
||||
can.onappend.table(can, msg)
|
||||
can.onappend.board(can, msg.Result())
|
||||
can.onappend.board(can, msg)
|
||||
can.onmotion.story.auto(can)
|
||||
can.page.Modify(can, can._output, {style: {display: "block"}})
|
||||
return true
|
||||
@ -80,8 +80,10 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, conf,
|
||||
},
|
||||
})
|
||||
Volcanos("onaction", {help: "交互操作", list: [
|
||||
"共享工具", "保存参数", "清空参数", "刷新数据", ["其它 ->", "全屏", "生成链接", "复制数据", "下载数据", "清空数据", "删除工具", "摄像头"],
|
||||
], _init: function(can, msg, list, cb, target) {
|
||||
"共享工具", "生成链接", "保存参数", "清空参数", "刷新数据", [
|
||||
"其它 ->", "复制数据", "下载数据", "清空数据", "删除工具", "摄像头",
|
||||
],
|
||||
], _init: function(can, msg, list, cb, target) {
|
||||
},
|
||||
_engine: function(event, can, button) {
|
||||
can.Update(event, [ctx.ACTION, button].concat(can.Input([], true)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user