mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
071f30ded7
Removed trigger background. Incidentally this also makes it less obvious that the trigger has too much padding on the right (which I can't figure out ...)
84 lines
1.7 KiB
SCSS
Executable File
84 lines
1.7 KiB
SCSS
Executable File
div.TreeDropdownField {
|
|
width: 400px;
|
|
background: #fff;
|
|
border: 1px solid #aaa;
|
|
cursor: pointer;
|
|
overflow: visible;
|
|
position:relative;
|
|
|
|
input {
|
|
border: none;
|
|
background: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.treedropdownfield-title {
|
|
float: left;
|
|
padding: 7px;
|
|
width: 90%;
|
|
line-height: 16px;
|
|
overflow:hidden;
|
|
outline: none;
|
|
}
|
|
|
|
.treedropdownfield-panel {
|
|
clear: left;
|
|
position: absolute;
|
|
overflow: auto;
|
|
display: none;
|
|
cursor: default;
|
|
border: 1px solid #aaa;
|
|
border-top: none;
|
|
margin: 1px 0 0 -1px; /* account for border on container div */
|
|
max-height:200px;
|
|
background-color: #fff;
|
|
z-index: 50;
|
|
-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);
|
|
|
|
&.loading {
|
|
min-height: 16px /* icon */ + 14px /* padding */; // Ensure there's room for loading indicator
|
|
background: #fff url("../images/network-save.gif") 7px 7px no-repeat;
|
|
}
|
|
|
|
ul.tree {
|
|
margin: 0;
|
|
|
|
a {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
|
|
&.treedropdownfield-open-tree {
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
display: block;
|
|
border: 0;
|
|
margin: 0;
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
a.jstree-loading .jstree-pageicon {
|
|
// Apply to .jstree-pageicon since .jstree-icon is hidden
|
|
background: #fff url("../images/network-save.gif") center center no-repeat;
|
|
}
|
|
} |