mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
add some
This commit is contained in:
parent
40ba82b5b2
commit
6d34e48d2c
21
index.css
21
index.css
@ -112,7 +112,6 @@ table.content th.select[data-asc="1"] i.bi-sort-down-alt { display:none; }
|
||||
table.content td.option { cursor:pointer; }
|
||||
table.content td { padding:var(--table-padding); }
|
||||
table.content td i { padding:var(--input-padding); }
|
||||
// table.content.detail td { padding:var(--table-padding) 0; }
|
||||
table.content.detail td:first-child { text-align:center; }
|
||||
table.content.detail td:first-child { background-color:var(--plugin-bg-color); position:sticky; left:0; }
|
||||
table.content.detail td i { display:none; }
|
||||
@ -154,7 +153,6 @@ div.output.card>div.item>div.title { font-size:var(--legend-font-size); font-wei
|
||||
div.output.card>div.item>div.title>div.title>span { padding:var(--input-padding); }
|
||||
div.output.card>div.item>div.title>img { height:var(--header-height); width:var(--header-height); margin:0; float:left; }
|
||||
div.output.card>div.item>div.title>img.jpg { padding:var(--input-padding); }
|
||||
/* div.item img.jpg { padding:var(--input-padding); } */
|
||||
div.item img[src*=".ico"] { padding:3px; }
|
||||
div.item img[src*=".jpg"] { padding:3px; }
|
||||
table.content tr>td img[src*=".jpg"] { padding:5px; }
|
||||
@ -260,7 +258,6 @@ fieldset.input.float table.content td { padding:var(--input-padding); }
|
||||
body div.float { padding:var(--plugin-padding); }
|
||||
fieldset.Action>div.toast { height:fit-content; width:fit-content; overflow:auto;
|
||||
position:absolute; right:var(--plugin-margin);
|
||||
/* top:calc(var(--header-height) + var(--plugin-margin) + var(--action-height)); */
|
||||
bottom:calc(var(--footer-height) + var(--action-height) + var(--plugin-margin));
|
||||
}
|
||||
body.mobile fieldset.Action>div.toast {
|
||||
@ -365,8 +362,8 @@ fieldset.story { position:sticky; left:0; }
|
||||
fieldset.auto, fieldset.full, fieldset.float { position:fixed; }
|
||||
fieldset.full { position:fixed; left:0; top:0; }
|
||||
fieldset.plug { position:sticky; bottom:0; right:0; float:right; }
|
||||
fieldset.cmd>div.output>fieldset.plug { position:fixed; bottom:var(--action-height); right:0; }
|
||||
fieldset.story>div.output>fieldset.plug { position:absolute; bottom:0; right:0; float:right; }
|
||||
/* fieldset.plug { position:absolute; bottom:0; right:0; float:right; } */
|
||||
fieldset.plug:not(.select) { display:none; }
|
||||
fieldset.vimer>div.output fieldset.plug { position:absolute; bottom:0; right:0; float:right; }
|
||||
fieldset.vimer>div.output div.project fieldset.plug:not(.hide) { position:static; float:unset; height:100%; display:block; }
|
||||
@ -492,6 +489,7 @@ div.display:not(.toggle) { border-top:var(--box-border); }
|
||||
fieldset>div.status { border-top:var(--status-border); }
|
||||
/* border-radius */
|
||||
fieldset.plugin>legend { border-top-left-radius:var(--plugin-radius); }
|
||||
fieldset.story>legend { border-top-left-radius:var(--plugin-radius); }
|
||||
body.mobile legend { border-top-right-radius:var(--plugin-radius); }
|
||||
select { border-radius:var(--button-radius); }
|
||||
input[type=button] { border-radius:var(--button-radius); }
|
||||
@ -506,11 +504,9 @@ div.plug legend { border-radius:0; }
|
||||
/* box-shadow */
|
||||
fieldset>legend { box-shadow:var(--legend-box-shadow); }
|
||||
body.mobile fieldset>legend { box-shadow:none; }
|
||||
/* fieldset>legend:hover { box-shadow:var(--notice-box-shadow); } */
|
||||
body.mobile fieldset.plugin>legend>span { display:block; float:right; }
|
||||
fieldset>form.option>div.item:not(.icon) { box-shadow:var(--input-box-shadow); }
|
||||
/* fieldset>form.option>div.item:not(.icon):hover { box-shadow:var(--notice-box-shadow); } */
|
||||
fieldset>div.action div.item:not(.state) { box-shadow:var(--input-box-shadow); }
|
||||
/* fieldset>div.action div.item:not(.state):hover { box-shadow:var(--notice-box-shadow); } */
|
||||
body:not(.mobile) fieldset>div.action div.item:first-child { margin-left:var(--input-margin); }
|
||||
fieldset>div.action>div.tabs { box-shadow:var(--legend-box-shadow); }
|
||||
fieldset>div.action>div.cmds { box-shadow:var(--legend-box-shadow); }
|
||||
@ -624,7 +620,6 @@ div.item.button.insert>span.icon { font-size:28px; line-height:26px; height:var(
|
||||
div.item.button.refresh>span.icon { font-size:28px; line-height:26px; height:var(--action-height); }
|
||||
body.windows div.item.button.refresh>span.icon { font-size:22px; line-height:30px; }
|
||||
div.item.button._space.icons { flex-grow:1; }
|
||||
// div.item.button._space.icons { margin-left:var(--action-height); flex-grow:1; }
|
||||
div.item.button._space.icons:hover { background-color:unset; cursor:unset; }
|
||||
fieldset.inner fieldset.story div.item.button._space.icons { margin-left:0; flex-grow:1; }
|
||||
div.tabs>span { font-style:italic; }
|
||||
@ -659,15 +654,11 @@ body:not(.width6) fieldset.inner.float:not(.full)>form.option>div.text { display
|
||||
fieldset>form.option>div.text>span.value {
|
||||
line-height:calc(var(--action-height) - 2 * var(--input-padding));
|
||||
white-space:pre; padding:var(--input-padding) var(--button-padding);
|
||||
height:var(--action-height);
|
||||
min-width:80px;
|
||||
/* max-width:var(--url-input-width); */
|
||||
overflow:auto;
|
||||
height:var(--action-height); min-width:80px; overflow:auto;
|
||||
}
|
||||
fieldset>form.option>div.text._icon>span.value { padding-left:24px; }
|
||||
fieldset.plug>form.option>div.text>span.value { display:none; }
|
||||
fieldset:not(.float)>form.option>div.text>span.value { display:none; }
|
||||
/* fieldset.float:not(.plug)>form.option>div.text:not(.filter)>i:first-child { display:none; } */
|
||||
fieldset.float:not(.plug)>form.option>div.text:not(.filter)>input { display:none; }
|
||||
fieldset.float:not(.plug)>form.option>div.text.filter>span.value { display:none; }
|
||||
fieldset.float:not(.plug)>form.option>div.text>span.icon { display:none; }
|
||||
@ -677,7 +668,6 @@ fieldset.float>div.action>div.item.button._space.icons { margin-left:0; }
|
||||
/* svg */
|
||||
svg text { font-size:var(--svg-font-size); font-family:var(--svg-font-family); stroke:var(--body-fg-color); fill:var(--body-fg-color); cursor:pointer; }
|
||||
svg text.offline { stroke:var(--disable-fg-color); fill:var(--disable-fg-color); }
|
||||
/* svg text:hover { stroke:var(--hover-fg-color); fill:var(--hover-fg-color); cursor:pointer; } */
|
||||
svg text:hover { cursor:pointer; }
|
||||
svg rect { stroke-width:var(--svg-stroke-width); stroke:var(--body-fg-color); fill:var(--output-bg-color); }
|
||||
svg rect:hover { stroke:var(--hover-fg-color); fill:var(--hover-bg-color); }
|
||||
@ -857,7 +847,6 @@ fieldset>div.output.form>div.item>span { padding:var(--input-padding); }
|
||||
fieldset>div.output.form>div.item>span.need { color:red; }
|
||||
fieldset>div.output.form>div.item>div.item>input { font-size:20px; height:38px; width:var(--form-width); }
|
||||
fieldset>div.output.form>div.item>div.item>input[type=button] { font-size:20px; height:48px; border:var(--box-notice); }
|
||||
/* fieldset.studio>div.output { padding:var(--plugin-padding); } */
|
||||
fieldset.studio>div.action>div.item:not(.icons) { font-style:italic; padding:var(--input-margin) var(--button-padding); }
|
||||
fieldset.studio>div.output>fieldset>form.option div.icon.delete { display:none; }
|
||||
fieldset.studio>div.output>fieldset>form.option div.icon:nth-child(2) { margin-left:var(--plugin-margin); }
|
||||
@ -871,7 +860,6 @@ fieldset.cmd>div.item.state { line-height:22px; padding:var(--input-padding) var
|
||||
fieldset.cmd>div.item.avatar { padding:0; height:var(--action-height); }
|
||||
fieldset.cmd>div.item.avatar>img { height:var(--action-height); }
|
||||
fieldset.cmd>div.action>div.tabs.select { border-bottom:var(--box-notice3); }
|
||||
// fieldset.cmd>div.status>legend.select { border-top:var(--box-notice3); }
|
||||
fieldset.cmd>div.output>div.project div.item.select { border-right:var(--box-notice3); }
|
||||
fieldset.Search div.story[data-type=spark] { margin:0; }
|
||||
fieldset.Search>div.output>div.profile { border-left:none; width:unset; }
|
||||
@ -898,7 +886,6 @@ body.white fieldset.inner.cmd>div.output>div.layout>div.tabs div:not(.select):no
|
||||
body.zh fieldset.inner>div.output>div.project>div.zone>div.item { letter-spacing:10px; border-top:var(--box-border); box-shadow:var(--box-shadow); }
|
||||
body:not(.debug) fieldset.plugin.can._notfound { display:none; }
|
||||
fieldset.story.web.chat.wx.agent { position:fixed; left:0; bottom:0; }
|
||||
/* fieldset.story>form.option>div.item.text.path>input { width:var(--input-width); } */
|
||||
div.output>fieldset.xterm.story>form.option>div.item.hash input { width:var(--form-width); }
|
||||
div.output>fieldset.iframe.story>form.option>div.item.hash input { width:var(--url-input-width); }
|
||||
/* scrollbar */
|
||||
|
@ -213,11 +213,11 @@ Volcanos("misc", {
|
||||
return can.base.MergeURL(nfs.SHARE_LOCAL+path+_version, ice.POD, space||can.ConfSpace())
|
||||
},
|
||||
ShareCache(can, path, space) { if (can.base.beginWith(path, web.HTTP, nfs.PS)) { return path }
|
||||
return can.base.MergeURL(nfs.SHARE_CACHE+path+_version, ice.POD, space||can.ConfSpace())
|
||||
return can.base.MergeURL(nfs.SHARE_CACHE+path+_version, ice.POD, space||can.ConfSpace()||can.misc.Search(can, ice.POD))
|
||||
},
|
||||
Template(can, path, file) { return can.base.Path(nfs.SRC_TEMPLATE, can.ConfIndex(), path, file) },
|
||||
MergePath: function(can, file, path) { return file.indexOf(nfs.PS) == 0 || file.indexOf(ice.HTTP) == 0? file: can.base.Path(path, file) },
|
||||
MergeCache: function(can, hash, pod) { return can.base.MergeURL(can.misc.MergeURL(can, {_path: can.base.Path(web.SHARE_CACHE, hash)}, true), ice.POD, pod) },
|
||||
MergeCache: function(can, hash, pod) { return can.base.MergeURL(can.misc.MergeURL(can, {_path: can.base.Path(web.SHARE_CACHE, hash)}, true), ice.POD, pod||can.ConfSpace()||can.misc.Search(can, ice.POD)) },
|
||||
MergePodCmd: function(can, obj) {
|
||||
if (can.base.beginWith(obj.pod, nfs.PS, web.HTTP)) {
|
||||
if (location.search.indexOf("debug=true") > 0 && obj.pod.indexOf("debug=true") == -1) {
|
||||
|
@ -4,7 +4,10 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg) { var river = can.Conf(chat.R
|
||||
can.core.Next(msg.Table(), function(item, next, index) { item.type = chat.PLUGIN, item.mode = can.Mode(); if (item.deleted == ice.TRUE) { return next() }
|
||||
if (msg.Length() == 1) { item.height = can.ConfHeight()-can.Conf(html.MARGIN_Y), can.base.isIn(item.index, web.CHAT_MACOS_DESKTOP, web.CHAT_MESSAGE, web.WIKI_PORTAL) && (item.style = html.OUTPUT) }
|
||||
can.base.isIn(item.index, ssh.CLOUD_PROFILE) && (item.style = html.OUTPUT)
|
||||
list.length == 0 && can.user.info.nodetype == web.SERVER && item._command == web.DREAM && (list = [river, storm, item._command])
|
||||
if (list.length == 0) {
|
||||
can.user.info.nodetype == web.SERVER && item._command == web.DREAM && (list = [river, storm, item._command])
|
||||
can.user.info.nodetype == web.WORKER && item._command == web.WORD && (list = [river, storm, item._command])
|
||||
}
|
||||
can.onappend.plugin(can, item, function(sub, meta, skip) { if (meta.index == "can._notfound" && !can.misc.isDebug(can)) { return skip || next() }
|
||||
sub.run = function(event, cmds, cb) { return can.run(can.request(event, {pod: meta.pod||meta.space}), (can.base.beginWith(meta.index, "can.")? [meta.index]: [river, storm, meta.id||meta.index]).concat(cmds), cb) }
|
||||
sub.onexport.output = function() { msg.Length() > 1 && can.onexport.isauto(can) && can.page.style(can, sub._output, html.HEIGHT, "", html.MAX_HEIGHT, ""), can.onaction.layout(can, list[3]) }
|
||||
|
@ -83,7 +83,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.Conf(html.PADDI
|
||||
}
|
||||
can.core.List(can._plugins, function(sub) { sub.onimport.size(sub, can.base.Min(can.ConfHeight()/2, 300, 600), sub.Conf("_width")||(can.ConfWidth()-2*padding), true) })
|
||||
can.page.Select(can, can._output, html.IMG, function(target) {
|
||||
can.page.style(can, target, html.MAX_HEIGHT, can.ConfHeight())
|
||||
can.page.style(can, target, html.MAX_HEIGHT, can.base.Max(can.ConfHeight(), 420))
|
||||
})
|
||||
}, 0) },
|
||||
}, [""])
|
||||
|
Loading…
x
Reference in New Issue
Block a user