1
0
forked from x/volcanos
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-11-02 23:25:35 +08:00
parent c7cb5b63ae
commit 563208cd88
2 changed files with 11 additions and 10 deletions

View File

@ -39,11 +39,14 @@ body {
--code-comment:green; --code-keyword:royalblue; --code-package:blue; --code-comment:green; --code-keyword:royalblue; --code-package:blue;
--code-datatype:lavender; --code-function:lightgreen; --code-datatype:lavender; --code-function:lightgreen;
--code-constant:gray; --code-string:orange; --code-object:silver; --code-constant:gray; --code-string:orange; --code-object:silver;
--svg-stroke-width:1; --desktop-icon-size:80px; --svg-font-size:24px; --svg-stroke-width:1; --desktop-icon-size:80px;
--project-width:230px; --project-width:230px;
} }
body.mobile { --input-width:80px; --button-margin:5px; } body.mobile {
body.mobile { --header-height:48px; } --input-width:80px; --button-margin:5px;
--svg-font-size:13px;
--header-height:48px;
}
body.windows { --code-font-family:"Courier New"; } body.windows { --code-font-family:"Courier New"; }
/* element */ /* element */
* { tab-size:4; box-sizing:border-box; padding:0; border:0; margin:0; } * { tab-size:4; box-sizing:border-box; padding:0; border:0; margin:0; }
@ -51,7 +54,7 @@ legend { padding:0 20px; }
select { padding:0 var(--input-padding); } select { padding:0 var(--input-padding); }
input:not([type=file]) { padding:0 var(--input-padding); } input:not([type=file]) { padding:0 var(--input-padding); }
input:not([type=button]) { border-radius:0; outline:none; width:var(--input-width); } input:not([type=button]) { border-radius:0; outline:none; width:var(--input-width); }
input[name=path] { width:160px; } body:not(.mobile) input[name=path] { width:160px; }
input[name=line] { width:60px !important; } input[name=line] { width:60px !important; }
input[name=limit] { width:60px; } input[name=limit] { width:60px; }
input[name=offend] { width:80px; } input[name=offend] { width:80px; }
@ -243,7 +246,7 @@ body.mobile:not(.landscape) fieldset.float>form.option>div.text>span.value { dis
body.windows form.option>div.icon { font-size:21px; line-height:32px; } body.windows form.option>div.icon { font-size:21px; line-height:32px; }
/* svg */ /* svg */
fieldset.web.wiki.draw div.output svg { min-width:100%; min-height:100%; } fieldset.web.wiki.draw div.output svg { min-width:100%; min-height:100%; }
svg text { font-size:24px; font-family:var(--code-font-family); stroke:var(--body-fg-color); fill:var(--body-fg-color); cursor:pointer; } svg text { font-size:var(--svg-font-size); font-family:var(--code-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.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 { stroke:var(--hover-fg-color); fill:var(--hover-fg-color); cursor:pointer; }
svg rect { stroke-width:var(--svg-stroke-width); stroke:var(--body-fg-color); fill:var(--output-bg-color); } svg rect { stroke-width:var(--svg-stroke-width); stroke:var(--body-fg-color); fill:var(--output-bg-color); }
@ -543,7 +546,7 @@ body.white fieldset.inner.cmd>div.output>div.layout>div.tabs div:not(.select):no
body.webview fieldset.word>form.option>div.item>input[name=path] { width:160px; } body.webview fieldset.word>form.option>div.item>input[name=path] { width:160px; }
body.mobile fieldset.word>form.option>div.item>input[name=path] { width:180px; } body.mobile fieldset.word>form.option>div.item>input[name=path] { width:180px; }
body.mobile fieldset.word fieldset.inner>form.option input[type=text] { display:none; } body.mobile fieldset.word fieldset.inner>form.option input[type=text] { display:none; }
body.mobile fieldset.inner>form.option input[name=file] { width:90px; } body.mobile fieldset.inner>form.option input[name=file] { width:160px; }
body.windows fieldset.inner>div.output { overflow:hidden; } body.windows fieldset.inner>div.output { overflow:hidden; }
body.windows fieldset.inner>div.output>div.layout>div.layout>div.profile { overflow:hidden; } body.windows fieldset.inner>div.output>div.layout>div.layout>div.profile { overflow:hidden; }
/* scrollbar */ /* scrollbar */

View File

@ -95,8 +95,6 @@ Volcanos(chat.ONACTION, {_init: function(can, target) {
}, },
mail: function(can) { can.user.opens("/chat/pod/20230511-golang-story/cmd/web.chat.mail.client") }, mail: function(can) { can.user.opens("/chat/pod/20230511-golang-story/cmd/web.chat.mail.client") },
repos: function(can) { can.user.opens("https://repos.shylinux.com/explore/repos") },
repos: function(can) { can.user.opens(can.misc.MergePodCmd(can, {cmd: web.CODE_GIT_SEARCH, repos: nfs.REPOS})) },
dream: function(can) { can.user.opens(can.misc.MergePodCmd(can, {cmd: web.DREAM})) }, dream: function(can) { can.user.opens(can.misc.MergePodCmd(can, {cmd: web.DREAM})) },
cloud: function(can) { can.user.opens("https://cloud.shylinux.com/") }, cloud: function(can) { can.user.opens("https://cloud.shylinux.com/") },
portal: function(can) { can.user.opens(can.misc.MergePodCmd(can, {cmd: web.WIKI_PORTAL})) }, portal: function(can) { can.user.opens(can.misc.MergePodCmd(can, {cmd: web.WIKI_PORTAL})) },
@ -110,8 +108,8 @@ Volcanos(chat.ONACTION, {_init: function(can, target) {
}) })
var cb = can.onlayout[button]; can.base.isFunc(cb) && cb(can) || can.onlayout._plugin(can, button) var cb = can.onlayout[button]; can.base.isFunc(cb) && cb(can) || can.onlayout._plugin(can, button)
}, },
_menus: [[html.LAYOUT, ice.AUTO, TABS, TABVIEW, HORIZON, VERTICAL, GRID, FREE, FLOW, PAGE], "desktop", "dream", "repos", "portal"], _menus: [[html.LAYOUT, ice.AUTO, TABS, TABVIEW, HORIZON, VERTICAL, GRID, FREE, FLOW, PAGE], web.DREAM, "desktop", "portal"],
_trans: kit.Dict("dream", "空间", "repos", "资源", "portal", "官网", "desktop", "桌面", html.LAYOUT, "布局", ice.AUTO, "默认布局", TABS, "标签布局", TABVIEW, "标签分屏", HORIZON, "左右分屏", VERTICAL, "上下分屏", GRID, "网格布局", FREE, "自由布局", FLOW, "流动布局", PAGE, "网页布局"), _trans: kit.Dict(web.DREAM, "空间", "portal", "官网", "desktop", "桌面", html.LAYOUT, "布局", ice.AUTO, "默认布局", TABS, "标签布局", TABVIEW, "标签分屏", HORIZON, "左右分屏", VERTICAL, "上下分屏", GRID, "网格布局", FREE, "自由布局", FLOW, "流动布局", PAGE, "网页布局"),
}) })
Volcanos(chat.ONLAYOUT, { Volcanos(chat.ONLAYOUT, {
tabs: function(can) { can.getActionSize(function(height, width) { can.ConfHeight(height+html.ACTION_HEIGHT), can.ConfWidth(width) }) tabs: function(can) { can.getActionSize(function(height, width) { can.ConfHeight(height+html.ACTION_HEIGHT), can.ConfWidth(width) })