diff --git a/css/metroStyle/img/line_conn.png b/css/metroStyle/img/line_conn.png new file mode 100644 index 0000000..b211da2 Binary files /dev/null and b/css/metroStyle/img/line_conn.png differ diff --git a/css/metroStyle/img/loading.gif b/css/metroStyle/img/loading.gif new file mode 100644 index 0000000..e8c2892 Binary files /dev/null and b/css/metroStyle/img/loading.gif differ diff --git a/css/metroStyle/img/metro.gif b/css/metroStyle/img/metro.gif new file mode 100644 index 0000000..664b969 Binary files /dev/null and b/css/metroStyle/img/metro.gif differ diff --git a/css/metroStyle/img/metro.png b/css/metroStyle/img/metro.png new file mode 100644 index 0000000..e9e58a3 Binary files /dev/null and b/css/metroStyle/img/metro.png differ diff --git a/css/metroStyle/metroStyle.css b/css/metroStyle/metroStyle.css new file mode 100644 index 0000000..20b8ace --- /dev/null +++ b/css/metroStyle/metroStyle.css @@ -0,0 +1,96 @@ +/*------------------------------------- +zTree Style + +version: 3.4 +author: Hunter.z +email: hunter.z@263.net +website: http://code.google.com/p/jquerytree/ + +-------------------------------------*/ + +.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} +.ztree {margin:0; padding:5px; color:#333} +.ztree li{padding:0; margin:0; list-style:none; line-height:17px; text-align:left; white-space:nowrap; outline:0} +.ztree li ul{ margin:0; padding:0 0 0 18px} +.ztree li ul.line{ background:url(./img/line_conn.png) 0 0 repeat-y;} + +.ztree li a {padding-right:3px; margin:0; cursor:pointer; height:21px; color:#333; background-color: transparent; text-decoration:none; vertical-align:top; display: inline-block} +.ztree li a:hover {text-decoration:underline} +.ztree li a.curSelectedNode {padding-top:0px; background-color:#e5e5e5; color:black; height:21px; opacity:0.8;} +.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#e5e5e5; color:black; height:21px; border:1px #666 solid; opacity:0.8;} +.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#aaa; color:white; height:21px; border:1px #666 solid; + opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_prev {} +.ztree li a.tmpTargetNode_next {} +.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; + font-size:12px; border:1px #585956 solid; *border:0px} +.ztree li span {line-height:21px; margin-right:2px} +.ztree li span.button {line-height:0; margin:0; padding: 0; width:21px; height:21px; display: inline-block; vertical-align:middle; + border:0 none; cursor: pointer;outline:none; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("./img/metro.png"); *background-image:url("./img/metro.gif")} + +.ztree li span.button.chk {width:13px; height:13px; margin:0 2px; cursor: auto} +.ztree li span.button.chk.checkbox_false_full {background-position: -5px -5px;} +.ztree li span.button.chk.checkbox_false_full_focus {background-position: -5px -26px;} +.ztree li span.button.chk.checkbox_false_part {background-position: -5px -48px;} +.ztree li span.button.chk.checkbox_false_part_focus {background-position: -5px -68px;} +.ztree li span.button.chk.checkbox_false_disable {background-position: -5px -89px;} +.ztree li span.button.chk.checkbox_true_full {background-position: -26px -5px;} +.ztree li span.button.chk.checkbox_true_full_focus {background-position: -26px -26px;} +.ztree li span.button.chk.checkbox_true_part {background-position: -26px -48px;} +.ztree li span.button.chk.checkbox_true_part_focus {background-position: -26px -68px;} +.ztree li span.button.chk.checkbox_true_disable {background-position: -26px -89px;} +.ztree li span.button.chk.radio_false_full {background-position: -47px -5px;} +.ztree li span.button.chk.radio_false_full_focus {background-position: -47px -26px;} +.ztree li span.button.chk.radio_false_part {background-position: -47px -47px;} +.ztree li span.button.chk.radio_false_part_focus {background-position: -47px -68px;} +.ztree li span.button.chk.radio_false_disable {background-position: -47px -89px;} +.ztree li span.button.chk.radio_true_full {background-position: -68px -5px;} +.ztree li span.button.chk.radio_true_full_focus {background-position: -68px -26px;} +.ztree li span.button.chk.radio_true_part {background-position: -68px -47px;} +.ztree li span.button.chk.radio_true_part_focus {background-position: -68px -68px;} +.ztree li span.button.chk.radio_true_disable {background-position: -68px -89px;} + +.ztree li span.button.switch {width:21px; height:21px} +.ztree li span.button.root_open{background-position:-126px -63px} +.ztree li span.button.root_close{background-position:-105px -63px} +.ztree li span.button.roots_open{background-position: -105px 0;} +.ztree li span.button.roots_close{background-position: -126px 0;} +.ztree li span.button.center_open{background-position: -105px -21px;} +.ztree li span.button.center_close{background-position: -126px -21px;} +.ztree li span.button.bottom_open{background-position: -105px -42px;} +.ztree li span.button.bottom_close{background-position: -126px -42px;} +.ztree li span.button.noline_open{background-position: -126px -84px;} +.ztree li span.button.noline_close{background-position: -105px -84px;} +.ztree li span.button.root_docu{ background:none;} +.ztree li span.button.roots_docu{background-position: -84px 0;} +.ztree li span.button.center_docu{background-position: -84px -21px;} +.ztree li span.button.bottom_docu{background-position: -84px -42px;} +.ztree li span.button.noline_docu{ background:none;} + +.ztree li span.button.ico_open{margin-right:2px; background-position: -147px -21px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_close{margin-right:2px; margin-right:2px; background-position: -147px 0; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_docu{margin-right:2px; background-position: -147px -42px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.edit {margin-left:2px; margin-right: -1px; background-position: -189px -21px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.edit:hover { + background-position: -168px -21px; +} +.ztree li span.button.remove {margin-left:2px; margin-right: -1px; background-position: -189px -42px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.remove:hover { + background-position: -168px -42px; +} +.ztree li span.button.add {margin-left:2px; margin-right: -1px; background-position: -189px 0; vertical-align:top; *vertical-align:middle} +.ztree li span.button.add:hover { + background-position: -168px 0; +} +.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle} + +ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)} + +span.tmpzTreeMove_arrow {width:16px; height:21px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-position:-168px -84px; background-image:url("./img/metro.png"); *background-image:url("./img/metro.gif")} + +ul.ztreeul.ztreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} +.ztreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} diff --git a/demo/cn/core/url.html b/demo/cn/core/url.html index 8550d28..e05d268 100644 --- a/demo/cn/core/url.html +++ b/demo/cn/core/url.html @@ -20,7 +20,7 @@ }; var zNodes =[ - { id:1, pId:0, name:"zTree Home", url:"http://www.baby666.cn", target:"_blank"}, + { id:1, pId:0, name:"zTree Home", url:"http://www.ztree.me/", target:"_blank"}, { id:2, pId:0, name:"zTree in Google", url:"http://code.google.com/p/jquerytree/", target:"_blank"}, { id:3, pId:0, name:"zTree in Iteye", url:"http://ztreeapi.iteye.com/", target:"_blank"}, { id:4, pId:0, name:"Nothing...", url:"", target:"_blank", click:"alert('我是不会跳转的...');"} diff --git a/demo/cn/index.html b/demo/cn/index.html index 551eebc..245f367 100644 --- a/demo/cn/index.html +++ b/demo/cn/index.html @@ -106,7 +106,8 @@ {id:504, pId:5, name:"添加 自定义控件", file:"super/diydom"}, {id:505, pId:5, name:"checkbox / radio 共存", file:"super/checkbox_radio"}, {id:506, pId:5, name:"左侧菜单", file:"super/left_menu"}, - {id:513, pId:5, name:"OutLook 样式的左侧菜单", file:"super/left_menuForOutLook"}, + {id:513, pId:5, name:"OutLook 风格", file:"super/left_menuForOutLook"}, + {id:514, pId:5, name:"Metro 风格", file:"super/metro"}, {id:507, pId:5, name:"下拉菜单", file:"super/select_menu"}, {id:509, pId:5, name:"带 checkbox 的多选下拉菜单", file:"super/select_menu_checkbox"}, {id:510, pId:5, name:"带 radio 的单选下拉菜单", file:"super/select_menu_radio"}, diff --git a/demo/cn/super/metro.html b/demo/cn/super/metro.html new file mode 100644 index 0000000..df41b0b --- /dev/null +++ b/demo/cn/super/metro.html @@ -0,0 +1,109 @@ + + + + ZTREE DEMO - Simple Data + + + + + + + + + + + +

Metro 风格

+
[ 文件路径: super/metro.html ]
+
+
+ +
+
+ +
+
+ + \ No newline at end of file diff --git a/demo/en/core/url.html b/demo/en/core/url.html index 788b03f..388c365 100644 --- a/demo/en/core/url.html +++ b/demo/en/core/url.html @@ -20,7 +20,7 @@ }; var zNodes =[ - { id:1, pId:0, name:"zTree Home", url:"http://www.baby666.cn", target:"_blank"}, + { id:1, pId:0, name:"zTree Home", url:"http://www.ztree.me/", target:"_blank"}, { id:2, pId:0, name:"zTree in Google", url:"http://code.google.com/p/jquerytree/", target:"_blank"}, { id:3, pId:0, name:"zTree in Iteye", url:"http://ztreeapi.iteye.com/", target:"_blank"}, { id:4, pId:0, name:"Nothing...", url:"", target:"_blank", click:"alert('I can not jump...');"} diff --git a/demo/en/index.html b/demo/en/index.html index 1d10fdd..6e034c7 100644 --- a/demo/en/index.html +++ b/demo/en/index.html @@ -106,7 +106,8 @@ {id:504, pId:5, name:"Adding Custom DOM", file:"super/diydom"}, {id:505, pId:5, name:"Checkbox / Radio Coexistence", file:"super/checkbox_radio"}, {id:506, pId:5, name:"Left Menu", file:"super/left_menu"}, - {id:513, pId:5, name:"Left Menu Like OutLook Style", file:"super/left_menuForOutLook"}, + {id:513, pId:5, name:"OutLook Style", file:"super/left_menuForOutLook"}, + {id:514, pId:5, name:"Metro Style", file:"super/metro"}, {id:507, pId:5, name:"Drop-down Menu", file:"super/select_menu"}, {id:509, pId:5, name:"Drop-down Menu with checkbox", file:"super/select_menu_checkbox"}, {id:510, pId:5, name:"Drop-down Menu with radio", file:"super/select_menu_radio"}, diff --git a/demo/en/super/metro.html b/demo/en/super/metro.html new file mode 100644 index 0000000..e90f71c --- /dev/null +++ b/demo/en/super/metro.html @@ -0,0 +1,109 @@ + + + + ZTREE DEMO - Simple Data + + + + + + + + + + + +

Metro Style

+
[ File Path: super/metro.html ]
+
+
+ +
+
+ +
+
+ + \ No newline at end of file diff --git a/demo/en/super/select_menu.html b/demo/en/super/select_menu.html index 849ea7c..0e6e369 100644 --- a/demo/en/super/select_menu.html +++ b/demo/en/super/select_menu.html @@ -99,7 +99,7 @@
[ File Path: super/select_menu.html ]