2013-08-29 06:21:04 +02:00
|
|
|
@import "../admin/scss/_mixins";
|
|
|
|
|
2012-01-07 19:23:25 +01:00
|
|
|
div.TreeDropdownField {
|
|
|
|
width: 400px;
|
|
|
|
background: #fff;
|
|
|
|
border: 1px solid #aaa;
|
|
|
|
cursor: pointer;
|
2013-05-23 04:41:08 +02:00
|
|
|
overflow: visible;
|
|
|
|
position:relative;
|
2012-01-07 19:23:25 +01:00
|
|
|
|
|
|
|
input {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-01-07 19:23:25 +01:00
|
|
|
.treedropdownfield-title {
|
|
|
|
float: left;
|
|
|
|
padding: 7px;
|
2012-03-23 23:30:13 +01:00
|
|
|
width: 90%;
|
2012-01-07 19:23:25 +01:00
|
|
|
line-height: 16px;
|
|
|
|
overflow:hidden;
|
2012-03-23 23:30:13 +01:00
|
|
|
outline: none;
|
2013-08-29 06:21:04 +02:00
|
|
|
z-index:1;
|
|
|
|
@include hide-text-overflow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.treedropdownfield-search{
|
|
|
|
@extend .treedropdownfield-title;
|
|
|
|
|
|
|
|
//Style search box to match chosen search
|
|
|
|
$bgImage: '../admin/thirdparty/chosen/chosen/chosen-sprite.png';
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2013-08-29 06:21:04 +02:00
|
|
|
background:url($bgImage) no-repeat 100% -22px; //For browers that only support 1 background
|
2016-02-10 23:13:32 +01:00
|
|
|
background:
|
2016-01-06 00:34:58 +01:00
|
|
|
url($bgImage) no-repeat 100% -22px,
|
2016-02-03 02:32:45 +01:00
|
|
|
linear-gradient(to bottom, #eeeeee 1%, #ffffff 15%);
|
2016-02-10 23:13:32 +01:00
|
|
|
box-sizing: border-box;
|
2013-08-29 06:21:04 +02:00
|
|
|
position:relative;
|
|
|
|
z-index:1100; //Needed to work within modales in chrome
|
|
|
|
border: 1px solid #aaa;
|
|
|
|
display:inline-block;
|
|
|
|
font-family: sans-serif;
|
|
|
|
font-size: 1em;
|
|
|
|
margin:1.5%;
|
|
|
|
outline: 0;
|
|
|
|
padding: 4px 20px 4px 5px;
|
|
|
|
width:97%; //optimized for most common tree width
|
|
|
|
}
|
|
|
|
|
|
|
|
&.searchable .treedropdownfield-panel.loading{
|
|
|
|
min-height: 16px /* icon */ + 14px /* padding */ + 34px /* approx height search input */; // Ensure there's room for loading indicator
|
2016-01-06 00:34:58 +01:00
|
|
|
background-position: 98% 39px;
|
2012-01-07 19:23:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.treedropdownfield-panel {
|
|
|
|
clear: left;
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
|
|
|
cursor: default;
|
|
|
|
border: 1px solid #aaa;
|
|
|
|
border-top: none;
|
|
|
|
margin: 1px 0 0 -1px; /* account for border on container div */
|
|
|
|
background-color: #fff;
|
2013-08-29 06:21:04 +02:00
|
|
|
z-index: 70;
|
2012-01-07 19:23:25 +01:00
|
|
|
-webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
|
|
|
|
-moz-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
|
|
|
-o-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
|
|
|
box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
|
|
|
|
2013-03-20 14:45:23 +01:00
|
|
|
&.loading {
|
|
|
|
min-height: 16px /* icon */ + 14px /* padding */; // Ensure there's room for loading indicator
|
2016-01-06 00:34:58 +01:00
|
|
|
background: #fff url("../images/network-save.gif") 98% 7px no-repeat;
|
2013-08-29 06:21:04 +02:00
|
|
|
}
|
|
|
|
|
2016-01-06 00:34:58 +01:00
|
|
|
.tree-holder{
|
2013-08-29 06:21:04 +02:00
|
|
|
position:relative;
|
|
|
|
z-index:1;
|
|
|
|
> ul{
|
|
|
|
position:relative;
|
|
|
|
max-height:200px;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul{
|
|
|
|
overflow-x:hidden;
|
|
|
|
float:left;
|
|
|
|
width:100%;
|
|
|
|
.jstree-icon{
|
|
|
|
margin-left:5px; //move to align with possible search box
|
|
|
|
}
|
|
|
|
.jstree-open > ins{
|
|
|
|
background-position:-18px 0; //move to align with possible search box
|
|
|
|
}
|
2013-03-20 14:45:23 +01:00
|
|
|
}
|
|
|
|
|
2012-01-07 19:23:25 +01:00
|
|
|
ul.tree {
|
|
|
|
margin: 0;
|
|
|
|
a {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-01-07 19:23:25 +01:00
|
|
|
.treedropdownfield-toggle-panel-link {
|
|
|
|
border: none;
|
|
|
|
margin: 0;
|
|
|
|
z-index: 0;
|
|
|
|
padding: 7px 3px;
|
|
|
|
overflow: hidden;
|
|
|
|
-webkit-border-radius: 0 4px 4px 0;
|
|
|
|
-moz-border-radius: 0 4px 4px 0;
|
|
|
|
border-radius: 0 4px 4px 0;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-01-07 19:23:25 +01:00
|
|
|
&.treedropdownfield-open-tree {
|
|
|
|
background: transparent;
|
|
|
|
border: none;
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2012-01-07 19:23:25 +01:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
display: block;
|
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
|
|
|
a.jstree-loading .jstree-pageicon {
|
2013-03-20 14:45:23 +01:00
|
|
|
// Apply to .jstree-pageicon since .jstree-icon is hidden
|
2016-01-06 00:34:58 +01:00
|
|
|
background: #fff url("../images/network-save.gif") center center no-repeat;
|
2012-01-07 19:23:25 +01:00
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
}
|