mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-22 16:18:10 +00:00
Merge pull request #154 from newsummit/master
New img file for new UI overhaul
This commit is contained in:
commit
d78c8b044e
@ -11,6 +11,7 @@
|
|||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/bootstrap/dist/css/bootstrap.min.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/bootstrap/dist/css/bootstrap.min.css")">
|
||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/bootstrap3-editable/css/bootstrap-editable.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/bootstrap3-editable/css/bootstrap-editable.css")">
|
||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/fancytree/src/skin-win8/ui.fancytree.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/fancytree/src/skin-win8/ui.fancytree.css")">
|
||||||
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/fancytree/src/skin-wherehows/ui.wherehows.css")">
|
||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/json.human.js-master/css/json.human.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/json.human.js-master/css/json.human.css")">
|
||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/jquery.treegrid/css/jquery.treegrid.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/jquery.treegrid/css/jquery.treegrid.css")">
|
||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/toastr/toastr.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/toastr/toastr.css")">
|
||||||
@ -18,6 +19,7 @@
|
|||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
|
||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/comments.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/comments.css")">
|
||||||
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/font-awesome-4.5.0/css/font-awesome.min.css")">
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("vendors/font-awesome-4.5.0/css/font-awesome.min.css")">
|
||||||
|
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/wherehows.css")">
|
||||||
<script src="@routes.Assets.at("vendors/jquery-2.1.4/jquery-2.1.4.min.js")" type="text/javascript"></script>
|
<script src="@routes.Assets.at("vendors/jquery-2.1.4/jquery-2.1.4.min.js")" type="text/javascript"></script>
|
||||||
<script src="@routes.Assets.at("vendors/jquery-ui-1.11.0/jquery-ui.js")" type="text/javascript"></script>
|
<script src="@routes.Assets.at("vendors/jquery-ui-1.11.0/jquery-ui.js")" type="text/javascript"></script>
|
||||||
<script src="@routes.Assets.at("vendors/bootstrap/dist/js/bootstrap.min.js")" type="text/javascript"></script>
|
<script src="@routes.Assets.at("vendors/bootstrap/dist/js/bootstrap.min.js")" type="text/javascript"></script>
|
||||||
@ -76,7 +78,7 @@
|
|||||||
aria-expand="false"
|
aria-expand="false"
|
||||||
dropdown-toggle>
|
dropdown-toggle>
|
||||||
Tools
|
Tools
|
||||||
<i class="fa fa-caret-down"></i>
|
<i class="fa fa-angle-down"></i>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu" role="menu">
|
<ul class="dropdown-menu" role="menu">
|
||||||
<li>
|
<li>
|
||||||
@ -154,30 +156,26 @@
|
|||||||
</div>
|
</div>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li class="dropdown" dropdown>
|
<li class="dropdown" dropdown>
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" role="button"
|
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expand="false" dropdown-toggle>
|
||||||
style="color : #808080" aria-expand="false" dropdown-toggle>
|
<i class="fa fa-angle-down"></i>
|
||||||
<i class="fa fa-user"></i>
|
|
||||||
<span id="username">@user</span>
|
|
||||||
<i class="fa fa-caret-down"></i>
|
|
||||||
</a>
|
</a>
|
||||||
|
<div class="usericon"></div>
|
||||||
<ul class="dropdown-menu" role="menu">
|
<ul class="dropdown-menu" role="menu">
|
||||||
<li>
|
<li>
|
||||||
<a id="settingsbtn" role="button">
|
<a id="settingsbtn" role="button">
|
||||||
<i class="fa fa-gear"></i>
|
<i class="fa fa-gear"></i>
|
||||||
Settings
|
Settings
|
||||||
</a>
|
</a>
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="@routes.Application.logout()" title="Log out">
|
<a href="@routes.Application.logout()" title="Log out">
|
||||||
<i class="fa fa-sign-out"></i>
|
<i class="fa fa-sign-out"></i>
|
||||||
<span class="visible-xs-inline">
|
|
||||||
Logout
|
Logout
|
||||||
</span>
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
} else {
|
} else {
|
||||||
<form class="navbar-form navbar-right" method="POST"
|
<form class="navbar-form navbar-right" method="POST"
|
||||||
action="@routes.Application.authenticate()?csrfToken=@csrfToken">
|
action="@routes.Application.authenticate()?csrfToken=@csrfToken">
|
||||||
|
BIN
web/public/images/icons/logo-white.png
Normal file
BIN
web/public/images/icons/logo-white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
web/public/images/user_empty.png
Normal file
BIN
web/public/images/user_empty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
@ -27,8 +27,6 @@ a.navbar-brand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar-nav > li.active > a {
|
.navbar-nav > li.active > a {
|
||||||
background: #333 !important;
|
|
||||||
border: 1px solid #2b2b2b !important;
|
|
||||||
padding: 20px 9px 19px;
|
padding: 20px 9px 19px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
@ -198,7 +196,7 @@ table tr td {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ace_editor {
|
.ace_editor {
|
||||||
min-height: 400px;
|
min-height: 200px;
|
||||||
min-width: 600px;
|
min-width: 600px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@ -434,7 +432,6 @@ table tr td {
|
|||||||
min-width: 600px;
|
min-width: 600px;
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
height: 800px;
|
height: 800px;
|
||||||
border: 1px solid #aaa;
|
|
||||||
}
|
}
|
||||||
.vsplitbar {
|
.vsplitbar {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
|
243
web/public/stylesheets/wherehows.css
Normal file
243
web/public/stylesheets/wherehows.css
Normal file
@ -0,0 +1,243 @@
|
|||||||
|
/* WhereHows Top Navbar _____________________________________ */
|
||||||
|
|
||||||
|
.navbar-inverse {
|
||||||
|
background-color: #008cc9;
|
||||||
|
border: none;
|
||||||
|
color: rgba(255,255,255,.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Top Nav :: all links */
|
||||||
|
.navbar-inverse a:hover {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Top Nav :: logo */
|
||||||
|
.navbar-inverse .navbar-brand {
|
||||||
|
color: white;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.navbar-brand {
|
||||||
|
letter-spacing: 0.2em;
|
||||||
|
text-shadow: none;
|
||||||
|
margin-left: 63px;
|
||||||
|
margin-top: 4px;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Top Nav :: main nav links in navbar */
|
||||||
|
ul.navbar-nav {
|
||||||
|
margin-left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.navbar-right {
|
||||||
|
margin: 9px 15px 0 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-right a.dropdown-toggle {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.navbar-right i.fa-angle-down {
|
||||||
|
font-size: 25px;
|
||||||
|
margin-top: -3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainnavbar a {
|
||||||
|
color: inherit;
|
||||||
|
font-size: 16px;
|
||||||
|
font-family: Candara,Calibri,Segoe,"Segoe UI",Optima,Arial,sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav li {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainnavbar .category-header a:hover {
|
||||||
|
color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: #008cc9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Top Nav :: Tools Links */
|
||||||
|
a.dropdown-toggle {
|
||||||
|
color: inherit !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.dropdown-toggle:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-inverse .navbar-nav .open a {
|
||||||
|
background: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Top Nav :: Dropdown Menus */
|
||||||
|
#mainnavbar .category-header .open a:hover,
|
||||||
|
#mainnavbar .navbar-right .open a:hover,
|
||||||
|
#mainnavbar .navbar-left .open a:hover {
|
||||||
|
border: none !important;
|
||||||
|
cursor: pointer;
|
||||||
|
color: white;
|
||||||
|
background-color: #008cc9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-inverse .navbar-nav>li>a,
|
||||||
|
.navbar-inverse .btn-link {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-header:before {
|
||||||
|
content: url(/assets/images/icons/logo-white.png);
|
||||||
|
position: absolute;
|
||||||
|
margin-top: 13px;
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-inverse .navbar-nav li {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-inverse .navbar-nav .active a {
|
||||||
|
background: none !important;
|
||||||
|
color: white !important;
|
||||||
|
border-bottom: 9px solid white;
|
||||||
|
height: 61px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-inverse .navbar-nav .active a:hover {
|
||||||
|
background: none;
|
||||||
|
border-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-inverse .navbar-nav a:hover {
|
||||||
|
color: white;
|
||||||
|
border-bottom: 9px solid rgba(255,255,255,.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Search Bar */
|
||||||
|
.btn-group button {
|
||||||
|
background-color: #edf6fb;
|
||||||
|
border: none;
|
||||||
|
color: #808081;
|
||||||
|
height: 32px !important;
|
||||||
|
width: 45px;
|
||||||
|
border-top-left-radius: 5px;
|
||||||
|
border-bottom-left-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-right .usericon {
|
||||||
|
width: 41px;
|
||||||
|
height: 41px;
|
||||||
|
float: left;
|
||||||
|
background: url(/assets/images/user_empty.png);
|
||||||
|
background-size: 100%;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.caret,
|
||||||
|
#categoryIcon:before {
|
||||||
|
color: #008cc9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.open .dropdown-menu {
|
||||||
|
background-color: #edf6fb;
|
||||||
|
border-top: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.open .dropdown-menu li {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.open a.dropdown-toggle {
|
||||||
|
background-color: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.dropdown-menu {
|
||||||
|
padding: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
border-color: #008cc9;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.dropdown-menu li {
|
||||||
|
color: #037cb1;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.dropdown-menu li:hover {
|
||||||
|
color: #037cb1;
|
||||||
|
background-color: #008cc9;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.dropdown-menu li.active {
|
||||||
|
color: #edf6fb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-nav.navbar-right .dropdown-menu {
|
||||||
|
margin-top: -9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-group ul.dropdown-menu {
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
margin-top: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-nav .btn-group.open .dropdown-menu .active a,
|
||||||
|
.dropdown-menu>.active>a {
|
||||||
|
background-color: #008cc9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-group input {
|
||||||
|
background-color: #edf6fb;
|
||||||
|
border: none;
|
||||||
|
margin-left: 5px;
|
||||||
|
border-radius: 0;
|
||||||
|
height: 32px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #545454;
|
||||||
|
}
|
||||||
|
|
||||||
|
.keyword-search {
|
||||||
|
min-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
button#searchBtn {
|
||||||
|
height: 32px;
|
||||||
|
margin-left: 5px;
|
||||||
|
border: 1px solid #edf6fb;
|
||||||
|
background-color: none;
|
||||||
|
background: none;
|
||||||
|
width: 50px;
|
||||||
|
color: #edf6fb;
|
||||||
|
}
|
||||||
|
|
||||||
|
button#searchBtn:hover {
|
||||||
|
background: #8cb337;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.btn.btn-link.btn-sm {
|
||||||
|
background: #008cc9;
|
||||||
|
font-size: 13px;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
line-height: 22px;
|
||||||
|
margin-left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.ui-autocomplete {
|
||||||
|
background-color: #edf6fb;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.ui-autocomplete b {
|
||||||
|
color: #008cc9 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.btn-group {
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
}
|
151
web/public/vendors/fancytree/src/jquery.fancytree.js
vendored
151
web/public/vendors/fancytree/src/jquery.fancytree.js
vendored
@ -17,33 +17,33 @@
|
|||||||
|
|
||||||
// Start of local namespace
|
// Start of local namespace
|
||||||
;(function($, window, document, undefined) {
|
;(function($, window, document, undefined) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// prevent duplicate loading
|
// prevent duplicate loading
|
||||||
if ( $.ui.fancytree && $.ui.fancytree.version ) {
|
if ( $.ui.fancytree && $.ui.fancytree.version ) {
|
||||||
$.ui.fancytree.warn("Fancytree: ignored duplicate include");
|
$.ui.fancytree.warn("Fancytree: ignored duplicate include");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* *****************************************************************************
|
/* *****************************************************************************
|
||||||
* Private functions and variables
|
* Private functions and variables
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function _raiseNotImplemented(msg){
|
function _raiseNotImplemented(msg){
|
||||||
msg = msg || "";
|
msg = msg || "";
|
||||||
$.error("Not implemented: " + msg);
|
$.error("Not implemented: " + msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _assert(cond, msg){
|
function _assert(cond, msg){
|
||||||
// TODO: see qunit.js extractStacktrace()
|
// TODO: see qunit.js extractStacktrace()
|
||||||
if(!cond){
|
if(!cond){
|
||||||
msg = msg ? ": " + msg : "";
|
msg = msg ? ": " + msg : "";
|
||||||
$.error("Assertion failed" + msg);
|
$.error("Assertion failed" + msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function consoleApply(method, args){
|
function consoleApply(method, args){
|
||||||
var i, s,
|
var i, s,
|
||||||
fn = window.console ? window.console[method] : null;
|
fn = window.console ? window.console[method] : null;
|
||||||
|
|
||||||
@ -59,18 +59,18 @@ function consoleApply(method, args){
|
|||||||
fn(s);
|
fn(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Return true if x is a FancytreeNode.*/
|
/*Return true if x is a FancytreeNode.*/
|
||||||
function _isNode(x){
|
function _isNode(x){
|
||||||
return !!(x.tree && x.statusNodeType !== undefined);
|
return !!(x.tree && x.statusNodeType !== undefined);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return true if dotted version string is equal or higher than requested version.
|
/** Return true if dotted version string is equal or higher than requested version.
|
||||||
*
|
*
|
||||||
* See http://jsfiddle.net/mar10/FjSAN/
|
* See http://jsfiddle.net/mar10/FjSAN/
|
||||||
*/
|
*/
|
||||||
function isVersionAtLeast(dottedVersion, major, minor, patch){
|
function isVersionAtLeast(dottedVersion, major, minor, patch){
|
||||||
var i, v, t,
|
var i, v, t,
|
||||||
verParts = $.map($.trim(dottedVersion).split("."), function(e){ return parseInt(e, 10); }),
|
verParts = $.map($.trim(dottedVersion).split("."), function(e){ return parseInt(e, 10); }),
|
||||||
testParts = $.map(Array.prototype.slice.call(arguments, 1), function(e){ return parseInt(e, 10); });
|
testParts = $.map(Array.prototype.slice.call(arguments, 1), function(e){ return parseInt(e, 10); });
|
||||||
@ -83,14 +83,14 @@ function isVersionAtLeast(dottedVersion, major, minor, patch){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return a wrapper that calls sub.methodName() and exposes
|
/** Return a wrapper that calls sub.methodName() and exposes
|
||||||
* this : tree
|
* this : tree
|
||||||
* this._local : tree.ext.EXTNAME
|
* this._local : tree.ext.EXTNAME
|
||||||
* this._super : base.methodName()
|
* this._super : base.methodName()
|
||||||
*/
|
*/
|
||||||
function _makeVirtualFunction(methodName, tree, base, extension, extName){
|
function _makeVirtualFunction(methodName, tree, base, extension, extName){
|
||||||
// $.ui.fancytree.debug("_makeVirtualFunction", methodName, tree, base, extension, extName);
|
// $.ui.fancytree.debug("_makeVirtualFunction", methodName, tree, base, extension, extName);
|
||||||
// if(rexTestSuper && !rexTestSuper.test(func)){
|
// if(rexTestSuper && !rexTestSuper.test(func)){
|
||||||
// // extension.methodName() doesn't call _super(), so no wrapper required
|
// // extension.methodName() doesn't call _super(), so no wrapper required
|
||||||
@ -120,12 +120,12 @@ function _makeVirtualFunction(methodName, tree, base, extension, extName){
|
|||||||
};
|
};
|
||||||
})(); // end of Immediate Function
|
})(); // end of Immediate Function
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subclass `base` by creating proxy functions
|
* Subclass `base` by creating proxy functions
|
||||||
*/
|
*/
|
||||||
function _subclassObject(tree, base, extension, extName){
|
function _subclassObject(tree, base, extension, extName){
|
||||||
// $.ui.fancytree.debug("_subclassObject", tree, base, extension, extName);
|
// $.ui.fancytree.debug("_subclassObject", tree, base, extension, extName);
|
||||||
for(var attrName in extension){
|
for(var attrName in extension){
|
||||||
if(typeof extension[attrName] === "function"){
|
if(typeof extension[attrName] === "function"){
|
||||||
@ -145,35 +145,35 @@ function _subclassObject(tree, base, extension, extName){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function _getResolvedPromise(context, argArray){
|
function _getResolvedPromise(context, argArray){
|
||||||
if(context === undefined){
|
if(context === undefined){
|
||||||
return $.Deferred(function(){this.resolve();}).promise();
|
return $.Deferred(function(){this.resolve();}).promise();
|
||||||
}else{
|
}else{
|
||||||
return $.Deferred(function(){this.resolveWith(context, argArray);}).promise();
|
return $.Deferred(function(){this.resolveWith(context, argArray);}).promise();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function _getRejectedPromise(context, argArray){
|
function _getRejectedPromise(context, argArray){
|
||||||
if(context === undefined){
|
if(context === undefined){
|
||||||
return $.Deferred(function(){this.reject();}).promise();
|
return $.Deferred(function(){this.reject();}).promise();
|
||||||
}else{
|
}else{
|
||||||
return $.Deferred(function(){this.rejectWith(context, argArray);}).promise();
|
return $.Deferred(function(){this.rejectWith(context, argArray);}).promise();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function _makeResolveFunc(deferred, context){
|
function _makeResolveFunc(deferred, context){
|
||||||
return function(){
|
return function(){
|
||||||
deferred.resolveWith(context);
|
deferred.resolveWith(context);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function _getElementDataAsDict($el){
|
function _getElementDataAsDict($el){
|
||||||
// Evaluate 'data-NAME' attributes with special treatment for 'data-json'.
|
// Evaluate 'data-NAME' attributes with special treatment for 'data-json'.
|
||||||
var d = $.extend({}, $el.data()),
|
var d = $.extend({}, $el.data()),
|
||||||
json = d.json;
|
json = d.json;
|
||||||
@ -184,18 +184,18 @@ function _getElementDataAsDict($el){
|
|||||||
d = $.extend(d, json);
|
d = $.extend(d, json);
|
||||||
}
|
}
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// TODO: use currying
|
// TODO: use currying
|
||||||
function _makeNodeTitleMatcher(s){
|
function _makeNodeTitleMatcher(s){
|
||||||
s = s.toLowerCase();
|
s = s.toLowerCase();
|
||||||
return function(node){
|
return function(node){
|
||||||
return node.title.toLowerCase().indexOf(s) >= 0;
|
return node.title.toLowerCase().indexOf(s) >= 0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
var i,
|
var i,
|
||||||
FT = null, // initialized below
|
FT = null, // initialized below
|
||||||
ENTITY_MAP = {"&": "&", "<": "<", ">": ">", "\"": """, "'": "'", "/": "/"},
|
ENTITY_MAP = {"&": "&", "<": "<", ">": ">", "\"": """, "'": "'", "/": "/"},
|
||||||
//boolean attributes that can be set with equivalent class names in the LI tags
|
//boolean attributes that can be set with equivalent class names in the LI tags
|
||||||
@ -207,16 +207,16 @@ var i,
|
|||||||
// Attribute names that should NOT be added to node.data
|
// Attribute names that should NOT be added to node.data
|
||||||
NONE_NODE_DATA_MAP = {"active": true, "children": true, "data": true, "focus": true};
|
NONE_NODE_DATA_MAP = {"active": true, "children": true, "data": true, "focus": true};
|
||||||
|
|
||||||
for(i=0; i<CLASS_ATTRS.length; i++){ CLASS_ATTR_MAP[CLASS_ATTRS[i]] = true; }
|
for(i=0; i<CLASS_ATTRS.length; i++){ CLASS_ATTR_MAP[CLASS_ATTRS[i]] = true; }
|
||||||
for(i=0; i<NODE_ATTRS.length; i++){ NODE_ATTR_MAP[NODE_ATTRS[i]] = true; }
|
for(i=0; i<NODE_ATTRS.length; i++){ NODE_ATTR_MAP[NODE_ATTRS[i]] = true; }
|
||||||
|
|
||||||
|
|
||||||
/* *****************************************************************************
|
/* *****************************************************************************
|
||||||
* FancytreeNode
|
* FancytreeNode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new FancytreeNode
|
* Creates a new FancytreeNode
|
||||||
*
|
*
|
||||||
* @class FancytreeNode
|
* @class FancytreeNode
|
||||||
@ -242,7 +242,7 @@ for(i=0; i<NODE_ATTRS.length; i++){ NODE_ATTR_MAP[NODE_ATTRS[i]] = true; }
|
|||||||
* @property {boolean} selected Use isSelected(), setSelected() to access this property.
|
* @property {boolean} selected Use isSelected(), setSelected() to access this property.
|
||||||
* @property {string} tooltip Alternative description used as hover banner
|
* @property {string} tooltip Alternative description used as hover banner
|
||||||
*/
|
*/
|
||||||
function FancytreeNode(parent, obj){
|
function FancytreeNode(parent, obj){
|
||||||
var i, l, name, cl;
|
var i, l, name, cl;
|
||||||
|
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
@ -305,10 +305,10 @@ function FancytreeNode(parent, obj){
|
|||||||
// if( parent ) {
|
// if( parent ) {
|
||||||
this.tree._callHook("treeRegisterNode", this.tree, true, this);
|
this.tree._callHook("treeRegisterNode", this.tree, true, this);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FancytreeNode.prototype = /** @lends FancytreeNode# */{
|
FancytreeNode.prototype = /** @lends FancytreeNode# */{
|
||||||
/* Return the direct child FancytreeNode with a given key, index. */
|
/* Return the direct child FancytreeNode with a given key, index. */
|
||||||
_findDirectChild: function(ptr){
|
_findDirectChild: function(ptr){
|
||||||
var i, l,
|
var i, l,
|
||||||
@ -692,7 +692,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{
|
|||||||
this.addChildren(dict.children);
|
this.addChildren(dict.children);
|
||||||
}
|
}
|
||||||
this.renderTitle();
|
this.renderTitle();
|
||||||
/*
|
/*
|
||||||
var children = dict.children;
|
var children = dict.children;
|
||||||
if(children === undefined){
|
if(children === undefined){
|
||||||
this.data = $.extend(this.data, dict);
|
this.data = $.extend(this.data, dict);
|
||||||
@ -704,7 +704,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{
|
|||||||
this.data = $.extend(this.data, dict);
|
this.data = $.extend(this.data, dict);
|
||||||
this.removeChildren();
|
this.removeChildren();
|
||||||
this.addChild(children);
|
this.addChild(children);
|
||||||
*/
|
*/
|
||||||
},
|
},
|
||||||
/** Return the list of child nodes (undefined for unexpanded lazy nodes).
|
/** Return the list of child nodes (undefined for unexpanded lazy nodes).
|
||||||
* @returns {FancytreeNode[] | undefined}
|
* @returns {FancytreeNode[] | undefined}
|
||||||
@ -1159,23 +1159,23 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{
|
|||||||
// TODO: fix selection state
|
// TODO: fix selection state
|
||||||
// TODO: fix active state
|
// TODO: fix active state
|
||||||
|
|
||||||
/*
|
/*
|
||||||
var tree = this.tree;
|
var tree = this.tree;
|
||||||
var opts = tree.options;
|
var opts = tree.options;
|
||||||
var pers = tree.persistence;
|
var pers = tree.persistence;
|
||||||
|
|
||||||
|
|
||||||
// Always expand, if it's below minExpandLevel
|
// Always expand, if it's below minExpandLevel
|
||||||
// tree.logDebug ("%s._addChildNode(%o), l=%o", this, ftnode, ftnode.getLevel());
|
// tree.logDebug ("%s._addChildNode(%o), l=%o", this, ftnode, ftnode.getLevel());
|
||||||
if ( opts.minExpandLevel >= ftnode.getLevel() ) {
|
if ( opts.minExpandLevel >= ftnode.getLevel() ) {
|
||||||
// tree.logDebug ("Force expand for %o", ftnode);
|
// tree.logDebug ("Force expand for %o", ftnode);
|
||||||
this.bExpanded = true;
|
this.bExpanded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// In multi-hier mode, update the parents selection state
|
// In multi-hier mode, update the parents selection state
|
||||||
// DT issue #82: only if not initializing, because the children may not exist yet
|
// DT issue #82: only if not initializing, because the children may not exist yet
|
||||||
// if( !ftnode.data.isStatusNode() && opts.selectMode==3 && !isInitializing )
|
// if( !ftnode.data.isStatusNode() && opts.selectMode==3 && !isInitializing )
|
||||||
// ftnode._fixSelectionState();
|
// ftnode._fixSelectionState();
|
||||||
|
|
||||||
// In multi-hier mode, update the parents selection state
|
// In multi-hier mode, update the parents selection state
|
||||||
if( ftnode.bSelected && opts.selectMode==3 ) {
|
if( ftnode.bSelected && opts.selectMode==3 ) {
|
||||||
@ -1192,7 +1192,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{
|
|||||||
|
|
||||||
return ftnode;
|
return ftnode;
|
||||||
|
|
||||||
*/
|
*/
|
||||||
},
|
},
|
||||||
/** Set focus relative to this node and optionally activate.
|
/** Set focus relative to this node and optionally activate.
|
||||||
*
|
*
|
||||||
@ -1645,13 +1645,13 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{
|
|||||||
Array.prototype.unshift.call(arguments, this.toString());
|
Array.prototype.unshift.call(arguments, this.toString());
|
||||||
consoleApply("warn", arguments);
|
consoleApply("warn", arguments);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* *****************************************************************************
|
/* *****************************************************************************
|
||||||
* Fancytree
|
* Fancytree
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* Construct a new tree object.
|
* Construct a new tree object.
|
||||||
*
|
*
|
||||||
* @class Fancytree
|
* @class Fancytree
|
||||||
@ -1676,7 +1676,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{
|
|||||||
* @property {string} $container
|
* @property {string} $container
|
||||||
* @property {FancytreeNode} lastSelectedNode
|
* @property {FancytreeNode} lastSelectedNode
|
||||||
*/
|
*/
|
||||||
function Fancytree(widget) {
|
function Fancytree(widget) {
|
||||||
this.widget = widget;
|
this.widget = widget;
|
||||||
this.$div = widget.element;
|
this.$div = widget.element;
|
||||||
this.options = widget.options;
|
this.options = widget.options;
|
||||||
@ -1738,10 +1738,10 @@ function Fancytree(widget) {
|
|||||||
.attr("role", "tree")
|
.attr("role", "tree")
|
||||||
.attr("aria-multiselectable", true);
|
.attr("aria-multiselectable", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Fancytree.prototype = /** @lends Fancytree# */{
|
Fancytree.prototype = /** @lends Fancytree# */{
|
||||||
/* Return a context object that can be re-used for _callHook().
|
/* Return a context object that can be re-used for _callHook().
|
||||||
* @param {Fancytree | FancytreeNode | EventData} obj
|
* @param {Fancytree | FancytreeNode | EventData} obj
|
||||||
* @param {Event} originalEvent
|
* @param {Event} originalEvent
|
||||||
@ -2031,7 +2031,7 @@ Fancytree.prototype = /** @lends Fancytree# */{
|
|||||||
consoleApply("info", arguments);
|
consoleApply("info", arguments);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
TODO: isInitializing: function() {
|
TODO: isInitializing: function() {
|
||||||
return ( this.phase=="init" || this.phase=="postInit" );
|
return ( this.phase=="init" || this.phase=="postInit" );
|
||||||
},
|
},
|
||||||
@ -2041,7 +2041,7 @@ Fancytree.prototype = /** @lends Fancytree# */{
|
|||||||
TODO: isUserEvent: function() {
|
TODO: isUserEvent: function() {
|
||||||
return ( this.phase=="userEvent" );
|
return ( this.phase=="userEvent" );
|
||||||
},
|
},
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make sure that a node with a given ID is loaded, by traversing - and
|
* Make sure that a node with a given ID is loaded, by traversing - and
|
||||||
@ -2223,15 +2223,15 @@ Fancytree.prototype = /** @lends Fancytree# */{
|
|||||||
Array.prototype.unshift.call(arguments, this.toString());
|
Array.prototype.unshift.call(arguments, this.toString());
|
||||||
consoleApply("warn", arguments);
|
consoleApply("warn", arguments);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* These additional methods of the {@link Fancytree} class are 'hook functions'
|
* These additional methods of the {@link Fancytree} class are 'hook functions'
|
||||||
* that can be used and overloaded by extensions.
|
* that can be used and overloaded by extensions.
|
||||||
* (See <a href="https://github.com/mar10/fancytree/wiki/TutorialExtensions">writing extensions</a>.)
|
* (See <a href="https://github.com/mar10/fancytree/wiki/TutorialExtensions">writing extensions</a>.)
|
||||||
* @mixin Fancytree_Hooks
|
* @mixin Fancytree_Hooks
|
||||||
*/
|
*/
|
||||||
$.extend(Fancytree.prototype,
|
$.extend(Fancytree.prototype,
|
||||||
/** @lends Fancytree_Hooks# */
|
/** @lends Fancytree_Hooks# */
|
||||||
{
|
{
|
||||||
/** Default handling for mouse click events.
|
/** Default handling for mouse click events.
|
||||||
@ -2834,6 +2834,7 @@ $.extend(Fancytree.prototype,
|
|||||||
tree = ctx.tree,
|
tree = ctx.tree,
|
||||||
opts = ctx.options,
|
opts = ctx.options,
|
||||||
aria = opts.aria,
|
aria = opts.aria,
|
||||||
|
glyph = opts._classNames.glyph,
|
||||||
level = node.getLevel(),
|
level = node.getLevel(),
|
||||||
ares = [],
|
ares = [],
|
||||||
icon = node.data.icon;
|
icon = node.data.icon;
|
||||||
@ -2864,7 +2865,7 @@ $.extend(Fancytree.prototype,
|
|||||||
if(aria){
|
if(aria){
|
||||||
ares.push("<span role='button' class='fancytree-expander'></span>");
|
ares.push("<span role='button' class='fancytree-expander'></span>");
|
||||||
}else{
|
}else{
|
||||||
ares.push("<span class='fancytree-expander'></span>");
|
ares.push("<span class='fancytree-expander " + glyph + "'></span>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Checkbox mode
|
// Checkbox mode
|
||||||
@ -2915,6 +2916,7 @@ $.extend(Fancytree.prototype,
|
|||||||
nodeRenderStatus: function(ctx) {
|
nodeRenderStatus: function(ctx) {
|
||||||
// Set classes for current status
|
// Set classes for current status
|
||||||
var node = ctx.node,
|
var node = ctx.node,
|
||||||
|
level = node.getLevel(),
|
||||||
tree = ctx.tree,
|
tree = ctx.tree,
|
||||||
opts = ctx.options,
|
opts = ctx.options,
|
||||||
// nodeContainer = node[tree.nodeContainerAttrName],
|
// nodeContainer = node[tree.nodeContainerAttrName],
|
||||||
@ -3015,7 +3017,7 @@ $.extend(Fancytree.prototype,
|
|||||||
(node.expanded ? "e" : "c") +
|
(node.expanded ? "e" : "c") +
|
||||||
(node.folder ? "f" : "")
|
(node.folder ? "f" : "")
|
||||||
);
|
);
|
||||||
// node.span.className = cnList.join(" ");
|
cnList.push('level' + level);
|
||||||
statusElem.className = cnList.join(" ");
|
statusElem.className = cnList.join(" ");
|
||||||
|
|
||||||
// TODO: we should not set this in the <span> tag also, if we set it here:
|
// TODO: we should not set this in the <span> tag also, if we set it here:
|
||||||
@ -3208,7 +3210,7 @@ $.extend(Fancytree.prototype,
|
|||||||
}).fail(function(errMsg){
|
}).fail(function(errMsg){
|
||||||
_afterLoad(function () { dfd.rejectWith(node, ["load failed (" + errMsg + ")"]); });
|
_afterLoad(function () { dfd.rejectWith(node, ["load failed (" + errMsg + ")"]); });
|
||||||
});
|
});
|
||||||
/*
|
/*
|
||||||
var source = tree._triggerNodeEvent("lazyLoad", node, ctx.originalEvent);
|
var source = tree._triggerNodeEvent("lazyLoad", node, ctx.originalEvent);
|
||||||
_assert(typeof source !== "boolean", "lazyLoad event must return source in data.result");
|
_assert(typeof source !== "boolean", "lazyLoad event must return source in data.result");
|
||||||
node.debug("nodeSetExpanded: load start...");
|
node.debug("nodeSetExpanded: load start...");
|
||||||
@ -3221,7 +3223,7 @@ $.extend(Fancytree.prototype,
|
|||||||
}).fail(function(errMsg){
|
}).fail(function(errMsg){
|
||||||
dfd.rejectWith(node, ["load failed (" + errMsg + ")"]);
|
dfd.rejectWith(node, ["load failed (" + errMsg + ")"]);
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
}else{
|
}else{
|
||||||
_afterLoad(function () { dfd.resolveWith(node); });
|
_afterLoad(function () { dfd.resolveWith(node); });
|
||||||
}
|
}
|
||||||
@ -3517,14 +3519,14 @@ $.extend(Fancytree.prototype,
|
|||||||
this._triggerTreeEvent(flag ? "focusTree" : "blurTree");
|
this._triggerTreeEvent(flag ? "focusTree" : "blurTree");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/* ******************************************************************************
|
/* ******************************************************************************
|
||||||
* jQuery UI widget boilerplate
|
* jQuery UI widget boilerplate
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The plugin (derrived from <a href=" http://api.jqueryui.com/jQuery.widget/">jQuery.Widget</a>).<br>
|
* The plugin (derrived from <a href=" http://api.jqueryui.com/jQuery.widget/">jQuery.Widget</a>).<br>
|
||||||
* This constructor is not called directly. Use `$(selector).fancytree({})`
|
* This constructor is not called directly. Use `$(selector).fancytree({})`
|
||||||
* to initialize the plugin instead.<br>
|
* to initialize the plugin instead.<br>
|
||||||
@ -3536,7 +3538,7 @@ $.extend(Fancytree.prototype,
|
|||||||
* @mixin Fancytree_Widget
|
* @mixin Fancytree_Widget
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$.widget("ui.fancytree",
|
$.widget("ui.fancytree",
|
||||||
/** @lends Fancytree_Widget# */
|
/** @lends Fancytree_Widget# */
|
||||||
{
|
{
|
||||||
/**These options will be used as defaults
|
/**These options will be used as defaults
|
||||||
@ -3565,7 +3567,7 @@ $.widget("ui.fancytree",
|
|||||||
extensions: [],
|
extensions: [],
|
||||||
fx: { height: "toggle", duration: 200 },
|
fx: { height: "toggle", duration: 200 },
|
||||||
generateIds: false,
|
generateIds: false,
|
||||||
icons: true,
|
icons: false,
|
||||||
idPrefix: "ft_",
|
idPrefix: "ft_",
|
||||||
keyboard: true,
|
keyboard: true,
|
||||||
keyPathSeparator: "/",
|
keyPathSeparator: "/",
|
||||||
@ -3593,7 +3595,8 @@ $.widget("ui.fancytree",
|
|||||||
partsel: "fancytree-partsel",
|
partsel: "fancytree-partsel",
|
||||||
lastsib: "fancytree-lastsib",
|
lastsib: "fancytree-lastsib",
|
||||||
loading: "fancytree-loading",
|
loading: "fancytree-loading",
|
||||||
error: "fancytree-error"
|
error: "fancytree-error",
|
||||||
|
glyph: "glyphicon glyphicon-plus-sign"
|
||||||
},
|
},
|
||||||
// events
|
// events
|
||||||
lazyLoad: null,
|
lazyLoad: null,
|
||||||
@ -3813,12 +3816,12 @@ $.widget("ui.fancytree",
|
|||||||
getTree: function() {
|
getTree: function() {
|
||||||
return this.tree;
|
return this.tree;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// $.ui.fancytree was created by the widget factory. Create a local shortcut:
|
// $.ui.fancytree was created by the widget factory. Create a local shortcut:
|
||||||
FT = $.ui.fancytree;
|
FT = $.ui.fancytree;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Static members in the `$.ui.fancytree` namespace.<br>
|
* Static members in the `$.ui.fancytree` namespace.<br>
|
||||||
* <br>
|
* <br>
|
||||||
* <pre class="sh_javascript sunlight-highlight-javascript">// Access static members:
|
* <pre class="sh_javascript sunlight-highlight-javascript">// Access static members:
|
||||||
@ -3828,7 +3831,7 @@ FT = $.ui.fancytree;
|
|||||||
*
|
*
|
||||||
* @mixin Fancytree_Static
|
* @mixin Fancytree_Static
|
||||||
*/
|
*/
|
||||||
$.extend($.ui.fancytree,
|
$.extend($.ui.fancytree,
|
||||||
/** @lends Fancytree_Static# */
|
/** @lends Fancytree_Static# */
|
||||||
{
|
{
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
@ -4106,6 +4109,6 @@ $.extend($.ui.fancytree,
|
|||||||
warn: function(msg){
|
warn: function(msg){
|
||||||
consoleApply("warn", arguments);
|
consoleApply("warn", arguments);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}(jQuery, window, document));
|
}(jQuery, window, document));
|
||||||
|
108
web/public/vendors/fancytree/src/skin-wherehows/ui.wherehows.css
vendored
Normal file
108
web/public/vendors/fancytree/src/skin-wherehows/ui.wherehows.css
vendored
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* Common Styles for Custom Fancytree 'skin-wherehows' Skin.
|
||||||
|
******************************************************************************/
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Helpers
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
.ui-helper-hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Container and UL / LI
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
ul.fancytree-container {
|
||||||
|
|
||||||
|
}
|
||||||
|
ul.fancytree-container ul {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
ul.fancytree-container li.fancytree-lastsib {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Node titles and highlighting
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
span.fancytree-node {
|
||||||
|
padding-top: 12px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
border-top: 1px #efefef solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-title {
|
||||||
|
color: #939597;
|
||||||
|
color: #b0b1b1;
|
||||||
|
font-size: 13px;
|
||||||
|
letter-spacing: .02em;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-node.fancytree-active {
|
||||||
|
border: none !important;
|
||||||
|
background-color: #e7f6fd !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-active .fancytree-title {
|
||||||
|
color: #57869c;
|
||||||
|
color: rgba(0,140,201,.8);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-node:hover {
|
||||||
|
background-color: #e7f6fd;
|
||||||
|
border-color: #e7f6fd;
|
||||||
|
cursor: pointer;
|
||||||
|
color: color: rgba(0,140,201,.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-node.level1 {
|
||||||
|
padding-left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.level2 {
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.level3 {
|
||||||
|
padding-left: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.level4 {
|
||||||
|
padding-left: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.level5 {
|
||||||
|
padding-left: 55px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Expander icon : hide for nodes with no children
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
span.fancytree-has-children .fancytree-expander {
|
||||||
|
font-size: 15px;
|
||||||
|
color: #a7a6a6;
|
||||||
|
background: none;
|
||||||
|
margin-top: 1px;
|
||||||
|
margin-left: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-has-children.fancytree-active .fancytree-expander {
|
||||||
|
color: rgba(0,140,201,.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-has-children.fancytree-active .fancytree-expander:hover {
|
||||||
|
color: rgba(0,140,201,1);
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-has-children .fancytree-expander:hover {
|
||||||
|
color: #34b3e4;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-expanded span.glyphicon-plus-sign:before {
|
||||||
|
content: "\e082";
|
||||||
|
}
|
||||||
|
|
||||||
|
span.fancytree-exp-n span.glyphicon-plus-sign:before,
|
||||||
|
span.fancytree-exp-nl span.glyphicon-plus-sign:before {
|
||||||
|
display: none;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user