2011-04-15 01:27:23 +02:00
|
|
|
/**
|
|
|
|
* This file defines the jstree base styling (see http://jstree.com), as well as any
|
|
|
|
* customizations (see bottom of file).
|
|
|
|
*
|
|
|
|
* The styles are usually added through jstree.js on DOM load,
|
|
|
|
* but we need it earlier in order to correctly display the uninitialized tree.
|
|
|
|
*/
|
2012-02-17 05:00:29 +01:00
|
|
|
.cms, .TreeDropdownField .treedropdownfield-panel {
|
2011-08-09 07:52:13 +02:00
|
|
|
.jstree {
|
2012-11-01 03:26:46 +01:00
|
|
|
> ul > li {
|
|
|
|
margin-left: 0px;
|
|
|
|
}
|
|
|
|
ul, li {
|
2011-08-09 07:52:13 +02:00
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
min-height: 18px;
|
2012-11-01 03:26:46 +01:00
|
|
|
line-height: 25px;
|
2011-08-09 07:52:13 +02:00
|
|
|
white-space: nowrap;
|
2012-03-28 01:43:16 +02:00
|
|
|
margin-left: 18px;
|
2011-08-09 07:52:13 +02:00
|
|
|
min-width: 18px;
|
2012-11-01 03:26:46 +01:00
|
|
|
&.jstree-open > ul {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
&.jstree-closed > ul {
|
|
|
|
display: none;
|
|
|
|
}
|
2013-01-08 18:46:08 +01:00
|
|
|
// Expand/collapse arrows
|
|
|
|
& > .jstree-icon {
|
|
|
|
cursor: pointer;
|
2012-11-05 05:51:38 +01:00
|
|
|
}
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
|
|
|
ins {
|
|
|
|
display: inline-block;
|
|
|
|
text-decoration: none;
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
margin: 0 0 0 0;
|
|
|
|
padding: 0;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 16px;
|
|
|
|
height: 16px;
|
|
|
|
color: black;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-decoration: none;
|
|
|
|
padding: 1px 2px;
|
|
|
|
margin: 0;
|
2015-05-19 05:19:25 +02:00
|
|
|
border: 1px solid #fff;
|
2011-08-09 07:52:13 +02:00
|
|
|
&:focus,
|
|
|
|
&:active,
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
2015-02-24 23:52:36 +01:00
|
|
|
text-shadow:1px 1px 1px white;
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
2015-05-15 01:50:23 +02:00
|
|
|
ins {
|
|
|
|
height: 16px;
|
|
|
|
width: 12px;
|
|
|
|
&.jstree-checkbox {
|
|
|
|
width: 16px;
|
2015-07-04 01:02:34 +02:00
|
|
|
position: relative;
|
|
|
|
//Larger to help avoid accidental page loads when trying to click checkboxes
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
left: -3px;
|
|
|
|
top: -3px;
|
|
|
|
height: 22px;
|
|
|
|
width: 25px;
|
|
|
|
}
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
.jstree-real-checkbox {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.jstree-wholerow-real {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
li {
|
|
|
|
cursor: pointer;
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
a {
|
|
|
|
border-left-color: transparent !important;
|
|
|
|
border-right-color: transparent !important;
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
|
|
|
}
|
2013-12-21 04:10:19 +01:00
|
|
|
|
2012-11-01 03:26:46 +01:00
|
|
|
.jstree-wholerow {
|
|
|
|
position: relative;
|
|
|
|
z-index: 0;
|
|
|
|
height: 0;
|
2013-12-21 04:10:19 +01:00
|
|
|
margin: 0 !important;
|
|
|
|
padding: 0 !important;
|
2012-11-01 03:26:46 +01:00
|
|
|
background: transparent !important;
|
|
|
|
ul,li {
|
2013-12-21 04:10:19 +01:00
|
|
|
margin: 0 !important;
|
|
|
|
padding: 0 !important;
|
2012-11-01 03:26:46 +01:00
|
|
|
background: transparent !important;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2015-02-24 23:52:36 +01:00
|
|
|
a, a:hover {
|
2013-12-21 04:10:19 +01:00
|
|
|
margin: 0 !important;
|
|
|
|
padding: 0 !important;
|
2012-11-01 03:26:46 +01:00
|
|
|
text-indent: -9999px !important;
|
|
|
|
width: 100%;
|
|
|
|
border-right-width: 0px !important;
|
2012-11-28 22:20:00 +01:00
|
|
|
border-left-width: 0px !important;
|
2012-11-01 03:26:46 +01:00
|
|
|
}
|
|
|
|
ins,
|
|
|
|
span,
|
|
|
|
input {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.jstree-wholerow-span {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
margin: 0px;
|
|
|
|
padding: 0;
|
|
|
|
height: 18px;
|
|
|
|
border-width: 0;
|
|
|
|
padding: 0;
|
|
|
|
z-index: 0;
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Custom styles
|
2015-02-24 23:52:36 +01:00
|
|
|
.jstree.jstree-focused {
|
2012-11-01 03:26:46 +01:00
|
|
|
background: none;
|
2015-02-24 23:52:36 +01:00
|
|
|
.jstree > ul {
|
2012-11-01 03:26:46 +01:00
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide drag icons by default. Actual page icons
|
|
|
|
// are in nested <span>, not handled directly through jstree lib
|
|
|
|
a > .jstree-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
2011-08-09 07:52:13 +02:00
|
|
|
|
2012-11-01 03:26:46 +01:00
|
|
|
// Show drag icons when draggable class is applied
|
|
|
|
.draggable a > .jstree-icon {
|
2015-05-19 05:19:25 +02:00
|
|
|
display: none;
|
2015-05-05 05:02:22 +02:00
|
|
|
cursor: move; // Fallback for IE users
|
|
|
|
cursor: -moz-grab;
|
|
|
|
cursor: -webkit-grab;
|
|
|
|
cursor: grab;
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
cursor: -moz-grabbing;
|
|
|
|
cursor: -webkit-grabbing;
|
|
|
|
cursor: grabbing;
|
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
li.jstree-open > ul {
|
|
|
|
display: block;
|
2013-01-08 18:45:35 +01:00
|
|
|
margin-left: -13px;
|
2012-11-01 03:26:46 +01:00
|
|
|
li ul {
|
|
|
|
margin-left:2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
li.jstree-closed > ul {
|
|
|
|
display: none;
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.jstree-rtl {
|
|
|
|
a > .jstree-icon {
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 18px;
|
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
> ul > li {
|
|
|
|
margin-right: 0px;
|
|
|
|
}
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
|
|
|
|
2015-02-24 23:52:36 +01:00
|
|
|
.jstree-themeroller {
|
2012-11-01 03:26:46 +01:00
|
|
|
a {
|
|
|
|
padding: 0 2px;
|
|
|
|
}
|
|
|
|
.ui-icon {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
.jstree-no-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2011-08-09 07:52:13 +02:00
|
|
|
|
2013-12-21 04:10:19 +01:00
|
|
|
#jstree-marker {
|
2012-11-01 03:26:46 +01:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
2011-08-09 07:52:13 +02:00
|
|
|
position: absolute;
|
2012-11-01 03:26:46 +01:00
|
|
|
top: -30px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
display: none;
|
|
|
|
line-height: 10px;
|
|
|
|
font-size: 12px;
|
|
|
|
height: 12px;
|
|
|
|
width: 8px;
|
|
|
|
z-index: 10001;
|
|
|
|
background-color: transparent;
|
|
|
|
text-shadow: 1px 1px 1px white;
|
|
|
|
color: black;
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
#jstree-marker-line {
|
2013-12-21 04:10:19 +01:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
top: -30px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
display: none;
|
2012-11-01 03:26:46 +01:00
|
|
|
line-height: 0%;
|
|
|
|
font-size: 1px;
|
|
|
|
height: 1px;
|
|
|
|
width: 100px;
|
|
|
|
z-index: 10000;
|
|
|
|
background-color: #456c43;
|
|
|
|
cursor: pointer;
|
|
|
|
border: 1px solid #eeeeee;
|
|
|
|
border-left: 0;
|
|
|
|
-moz-box-shadow: 0px 0px 2px #666;
|
|
|
|
-webkit-box-shadow: 0px 0px 2px #666;
|
|
|
|
box-shadow: 0px 0px 2px #666;
|
|
|
|
-moz-border-radius: 1px;
|
|
|
|
border-radius: 1px;
|
|
|
|
-webkit-border-radius: 1px;
|
|
|
|
}
|
|
|
|
|
2011-08-09 07:52:13 +02:00
|
|
|
#vakata-contextmenu {
|
|
|
|
display: block;
|
|
|
|
visibility: hidden;
|
|
|
|
left: 0;
|
|
|
|
top: -200px;
|
|
|
|
position: absolute;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
min-width: 180px;
|
2012-03-28 01:43:16 +02:00
|
|
|
background: #FFF;
|
2011-08-09 07:52:13 +02:00
|
|
|
border: 1px solid silver;
|
|
|
|
z-index: 10000; *width:180px;
|
2012-03-28 01:43:16 +02:00
|
|
|
@include box-shadow(0 0 10px #CCC);
|
|
|
|
&::before {
|
|
|
|
content:"";
|
|
|
|
display:block; /* reduce the damage in FF3.0 */
|
|
|
|
position:absolute;
|
|
|
|
top: -10px;
|
|
|
|
left: 24px;
|
|
|
|
width:0;
|
|
|
|
border-width: 0 6px 10px 6px ;
|
|
|
|
border-color: #FFF transparent;
|
|
|
|
border-style: solid;
|
|
|
|
z-index: 10000;
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
content:"";
|
|
|
|
display:block; /* reduce the damage in FF3.0 */
|
|
|
|
position:absolute;
|
|
|
|
top: -11px;
|
|
|
|
left: 23px;
|
|
|
|
width:0;
|
|
|
|
border-width: 0 7px 11px 7px ;
|
|
|
|
border-color: #CCC transparent;
|
|
|
|
border-style: solid;
|
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
ul {
|
|
|
|
min-width: 180px;
|
|
|
|
*width:180px;
|
|
|
|
}
|
2015-02-24 23:52:36 +01:00
|
|
|
ul,li {
|
2012-11-01 03:26:46 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 0 ;
|
|
|
|
list-style-type: none;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
line-height: 20px;
|
|
|
|
min-height: 23px;
|
|
|
|
position: relative;
|
|
|
|
padding: 0px;
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 1px;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
padding: 1px 10px;
|
|
|
|
line-height: 23px;
|
|
|
|
display: block;
|
|
|
|
text-decoration: none;
|
|
|
|
margin: 1px 1px 0 1px;
|
|
|
|
border: 0;
|
|
|
|
&:hover {
|
|
|
|
padding: 1px 10px;
|
|
|
|
background: #3875d7;
|
|
|
|
@include background-image(linear-gradient(top, #3875d7 20%, #2a62bc 90%));
|
|
|
|
color: #FFF;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ins {
|
|
|
|
float: left;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
text-decoration: none;
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
.jstree-pageicon {
|
|
|
|
margin-top: 3px;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2015-02-24 23:52:36 +01:00
|
|
|
&.vakata-hover > a {
|
2012-11-28 22:20:00 +01:00
|
|
|
padding: 1px 10px;
|
|
|
|
background: #3875d7;
|
|
|
|
@include background-image(linear-gradient(top, #3875d7 20%, #2a62bc 90%));
|
|
|
|
color: #FFF;
|
|
|
|
border: none;
|
2012-11-01 03:26:46 +01:00
|
|
|
}
|
2012-03-28 01:43:16 +02:00
|
|
|
}
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
|
2015-02-24 23:52:36 +01:00
|
|
|
#vakata-contextmenu {
|
2012-11-01 03:26:46 +01:00
|
|
|
.right {
|
|
|
|
right: 100%;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
.bottom {
|
|
|
|
bottom: -1px;
|
|
|
|
top: auto;
|
|
|
|
}
|
2012-02-07 23:24:42 +01:00
|
|
|
li ul {
|
2012-11-01 03:26:46 +01:00
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
top: -2px;
|
|
|
|
left: 100%;
|
|
|
|
background: #FFF;
|
|
|
|
border: 1px solid silver;
|
|
|
|
@include box-shadow(0 0 10px #CCC);
|
2013-08-20 01:35:22 +02:00
|
|
|
&.col-2{
|
|
|
|
width:180px * 2; // 2x the size of the original ul
|
2015-02-24 23:52:36 +01:00
|
|
|
li {
|
2013-08-20 01:35:22 +02:00
|
|
|
width:50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.col-3{
|
|
|
|
width:180px * 3; // 3x the size of the original ul
|
2015-02-24 23:52:36 +01:00
|
|
|
li {
|
2013-08-20 01:35:22 +02:00
|
|
|
width:33%;
|
|
|
|
}
|
|
|
|
}
|
2015-02-24 23:52:36 +01:00
|
|
|
li {
|
2013-08-20 01:35:22 +02:00
|
|
|
min-width:180px;
|
|
|
|
float:left;
|
2015-02-24 23:52:36 +01:00
|
|
|
a {
|
2013-08-20 01:35:22 +02:00
|
|
|
@include hide-text-overflow;
|
|
|
|
}
|
|
|
|
}
|
2012-02-07 23:24:42 +01:00
|
|
|
}
|
2015-02-24 23:52:36 +01:00
|
|
|
li {
|
2012-11-01 03:26:46 +01:00
|
|
|
&.vakata-separator {
|
|
|
|
min-height: 0;
|
|
|
|
height: 1px;
|
|
|
|
line-height: 1px;
|
|
|
|
font-size: 1px;
|
|
|
|
overflow: hidden;
|
|
|
|
margin: 0 2px;
|
|
|
|
background: #ccc;
|
|
|
|
padding:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#vakata-dragged {
|
2011-08-09 07:52:13 +02:00
|
|
|
display: block;
|
|
|
|
margin: 0 0 0 0;
|
2012-11-01 03:26:46 +01:00
|
|
|
padding: 4px 4px 4px 24px;
|
2011-08-09 07:52:13 +02:00
|
|
|
position: absolute;
|
2012-11-01 03:26:46 +01:00
|
|
|
top: -2000px;
|
|
|
|
line-height: 16px;
|
2011-08-09 07:52:13 +02:00
|
|
|
z-index: 10000;
|
2012-11-01 03:26:46 +01:00
|
|
|
ins {
|
|
|
|
display: block;
|
|
|
|
text-decoration: none;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
margin: 0 0 0 0;
|
|
|
|
padding: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
left: 4px;
|
|
|
|
-moz-border-radius: 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
-webkit-border-radius: 4px;
|
|
|
|
}
|
|
|
|
.jstree-ok {
|
|
|
|
background: green;
|
|
|
|
}
|
|
|
|
.jstree-invalid {
|
|
|
|
background: red;
|
2011-08-09 07:52:13 +02:00
|
|
|
}
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|
2011-06-25 07:52:33 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-02-24 23:52:36 +01:00
|
|
|
.jstree {
|
|
|
|
li, .jstree ins {
|
2012-02-07 23:24:42 +01:00
|
|
|
background:none;
|
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
.jstree-unchecked, .jstree-checked, .jstree-undetermined {
|
|
|
|
> a > .jstree-checkbox {
|
|
|
|
margin-right:3px;
|
|
|
|
}
|
2012-02-07 23:24:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-24 23:52:36 +01:00
|
|
|
.tree-holder, .cms-tree {
|
|
|
|
&.jstree {
|
|
|
|
li {
|
2012-11-01 03:26:46 +01:00
|
|
|
padding: 0px;
|
|
|
|
clear: left;
|
|
|
|
&.Root {
|
|
|
|
& strong {
|
|
|
|
font-weight: bold;
|
|
|
|
padding-left: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > a .jstree-icon {
|
|
|
|
background-position: -56px -36px;
|
|
|
|
}
|
|
|
|
}
|
2015-05-15 01:50:23 +02:00
|
|
|
&.status-deletedonlive,
|
|
|
|
&.status-archived {
|
|
|
|
> a, > a:link {
|
|
|
|
.text {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
}
|
|
|
|
}
|
2015-02-24 23:52:36 +01:00
|
|
|
&.jstree-checked {
|
|
|
|
> a, > a:link {
|
2012-11-01 03:26:46 +01:00
|
|
|
background-color: $color-cms-batchactions-menu-selected-background;
|
|
|
|
}
|
2013-05-30 13:45:10 +02:00
|
|
|
}
|
2015-05-15 01:50:23 +02:00
|
|
|
&.disabled,
|
|
|
|
&.edit-disabled {
|
|
|
|
> a, > a:link {
|
|
|
|
color: $color-text-disabled;
|
|
|
|
background-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
> .jstree-checkbox {
|
|
|
|
background-position: -57px -54px;
|
|
|
|
}
|
2013-05-30 13:45:10 +02:00
|
|
|
}
|
|
|
|
}
|
2013-03-19 22:26:48 +01:00
|
|
|
&.readonly {
|
|
|
|
color: $color-text-disabled;
|
|
|
|
padding-left: 18px;
|
|
|
|
|
|
|
|
// Don't show drag icons or required spacing
|
|
|
|
a, a:link {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.jstree-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
}
|
|
|
|
a, a:link {
|
|
|
|
color: $color-text-blue-link;
|
|
|
|
padding: 3px 6px 3px 3px;
|
|
|
|
border: none;
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
ins {
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: url(../images/sitetree_ss_default_icons.png);
|
|
|
|
}
|
|
|
|
span.badge {
|
|
|
|
clear: both;
|
|
|
|
text-transform: uppercase;
|
2015-02-24 23:52:36 +01:00
|
|
|
text-shadow: none;
|
2012-11-01 03:26:46 +01:00
|
|
|
display: inline-block;
|
2015-02-24 23:52:36 +01:00
|
|
|
position: relative;
|
2015-05-18 03:56:42 +02:00
|
|
|
padding: 3px 3px 1px;
|
2012-11-01 03:26:46 +01:00
|
|
|
font-size: 0.75em;
|
|
|
|
line-height: 1em;
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-top: -1px;
|
|
|
|
@include border-radius(2px, 2px);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* comment speech bubble - ccs3 only - source: http://nicolasgallagher.com/pure-css-speech-bubbles/demo/ */
|
|
|
|
span.comment-count {
|
|
|
|
clear: both;
|
|
|
|
position: relative;
|
|
|
|
text-transform: uppercase;
|
|
|
|
display: inline-block;
|
|
|
|
overflow: visible;
|
|
|
|
padding: 0px 3px;
|
|
|
|
font-size: 0.75em;
|
|
|
|
line-height: 1em;
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-right: 6px;
|
|
|
|
@include border-radius(2px, 2px);
|
|
|
|
color: #7E7470;
|
|
|
|
border: 1px solid #C9B800;
|
|
|
|
background-color: #FFF0BC;
|
2013-12-21 04:10:19 +01:00
|
|
|
|
|
|
|
&:before {
|
2012-11-01 03:26:46 +01:00
|
|
|
content:"";
|
|
|
|
position:absolute;
|
|
|
|
border-style:solid;
|
|
|
|
display:block;
|
2013-12-21 04:10:19 +01:00
|
|
|
width:0;
|
2012-11-01 03:26:46 +01:00
|
|
|
bottom:-4px; /* value = - border-top-width - border-bottom-width */
|
|
|
|
left:3px; /* controls horizontal position */
|
|
|
|
border-width:4px 4px 0;
|
|
|
|
border-color:#C9B800 transparent;
|
|
|
|
}
|
|
|
|
&:after {
|
2013-12-21 04:10:19 +01:00
|
|
|
content:"";
|
|
|
|
position:absolute;
|
|
|
|
border-style:solid;
|
|
|
|
/* reduce the damage in FF3.0 */
|
|
|
|
display:block;
|
|
|
|
width:0;
|
2012-11-01 03:26:46 +01:00
|
|
|
bottom:-3px; /* value = - border-top-width - border-bottom-width */
|
|
|
|
left:4px; /* value = (:before left) + (:before border-left) - (:after border-left) */
|
|
|
|
border-width:3px 3px 0;
|
|
|
|
border-color:#FFF0BC transparent;
|
|
|
|
}
|
2011-06-25 07:52:33 +02:00
|
|
|
}
|
2015-05-19 05:19:25 +02:00
|
|
|
|
2012-11-01 03:26:46 +01:00
|
|
|
.jstree-hovered {
|
|
|
|
text-shadow: none;
|
2015-05-19 05:19:25 +02:00
|
|
|
text-decoration: none;
|
2012-11-01 03:26:46 +01:00
|
|
|
}
|
|
|
|
.jstree-closed > ins {
|
2015-06-17 00:23:07 +02:00
|
|
|
background-position:2px -1px;
|
2011-06-25 07:52:33 +02:00
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
.jstree-open > ins {
|
2015-06-17 00:23:07 +02:00
|
|
|
background-position:-18px -1px;
|
2012-06-12 15:53:38 +02:00
|
|
|
}
|
|
|
|
}
|
2015-04-30 07:12:53 +02:00
|
|
|
|
|
|
|
// Applied to trees when displaying filter / search results.
|
|
|
|
&.filtered-list {
|
2015-05-15 01:50:23 +02:00
|
|
|
li:not(.filtered-item) > a {
|
2015-04-30 07:12:53 +02:00
|
|
|
color: $color-text-disabled;
|
|
|
|
}
|
|
|
|
}
|
2015-02-24 23:52:36 +01:00
|
|
|
}
|
2012-06-12 15:53:38 +02:00
|
|
|
|
2015-05-19 05:19:25 +02:00
|
|
|
|
|
|
|
// For drag and drop icons to not appear whilst in multi-selection
|
2015-06-17 00:23:07 +02:00
|
|
|
.cms-tree {
|
|
|
|
&.jstree {
|
|
|
|
.jstree-no-checkboxes {
|
|
|
|
li {
|
|
|
|
a {
|
|
|
|
padding-left: 12px;
|
|
|
|
}
|
2015-05-19 05:19:25 +02:00
|
|
|
|
2015-06-17 00:23:07 +02:00
|
|
|
.jstree-hovered,
|
|
|
|
.jstree-clicked,
|
|
|
|
a:focus {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2015-05-19 05:19:25 +02:00
|
|
|
|
2015-06-17 00:23:07 +02:00
|
|
|
.jstree-hovered,
|
|
|
|
.jstree-clicked,
|
|
|
|
a:focus {
|
|
|
|
.jstree-icon {
|
|
|
|
display: block;
|
2015-05-19 05:19:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Override thirdparty themes
|
|
|
|
.jstree-default a .jstree-icon,
|
|
|
|
.jstree-default-rtl a .jstree-icon,
|
|
|
|
.jstree-classic a .jstree-icon,
|
|
|
|
.jstree-apple a .jstree-icon {
|
2015-06-17 00:23:07 +02:00
|
|
|
background-position:-60px -19px;
|
2015-05-19 05:19:25 +02:00
|
|
|
}
|
2015-06-26 20:00:48 +02:00
|
|
|
.jstree-apple a {
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
2015-05-19 05:19:25 +02:00
|
|
|
|
2015-02-24 23:52:36 +01:00
|
|
|
/* ensure status is visible in sidebar */
|
2015-05-18 03:56:42 +02:00
|
|
|
.cms-content-tools .cms-tree.jstree {
|
2015-02-24 23:52:36 +01:00
|
|
|
li {
|
2015-07-07 17:58:18 +02:00
|
|
|
min-width: 187px;
|
2015-02-24 23:52:36 +01:00
|
|
|
}
|
|
|
|
a {
|
|
|
|
overflow: hidden;
|
2015-07-07 17:58:18 +02:00
|
|
|
text-overflow: ellipsis;
|
2015-02-24 23:52:36 +01:00
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
span.badge {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
padding: 7px 9px 6px 5px;
|
|
|
|
margin: 0;
|
|
|
|
max-width: 40%;
|
|
|
|
@include transition(max-width .75s linear);
|
|
|
|
}
|
|
|
|
span.badge:hover {
|
|
|
|
max-width: 150px;
|
|
|
|
}
|
|
|
|
}
|
2012-03-28 01:43:16 +02:00
|
|
|
|
2012-11-01 03:26:46 +01:00
|
|
|
a .jstree-pageicon {
|
|
|
|
float: left;
|
|
|
|
margin-right: 4px;
|
2015-02-24 23:52:36 +01:00
|
|
|
position: relative;
|
2012-11-01 03:26:46 +01:00
|
|
|
li.class-HomePage > &{
|
|
|
|
background-position: 0 -48px;
|
2011-06-25 07:52:33 +02:00
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
li.class-RedirectorPage > & {
|
|
|
|
background-position: 0 -16px;
|
2011-06-25 07:52:33 +02:00
|
|
|
}
|
2012-11-01 03:26:46 +01:00
|
|
|
li.class-VirtualPage > & {
|
|
|
|
background-position: 0 -32px;
|
2012-02-07 23:24:42 +01:00
|
|
|
}
|
2013-04-10 07:15:42 +02:00
|
|
|
li.class-ErrorPage > & {
|
2012-11-01 03:26:46 +01:00
|
|
|
background-position: 0 -112px;
|
2012-02-07 23:24:42 +01:00
|
|
|
}
|
2011-06-25 07:52:33 +02:00
|
|
|
}
|
|
|
|
|
2015-06-26 20:00:48 +02:00
|
|
|
/* Tree status labels and dots */
|
|
|
|
.jstree-apple .jstree-clicked,
|
|
|
|
.jstree-apple .jstree-hovered {
|
|
|
|
background: #ebfbff;
|
|
|
|
}
|
2015-02-24 23:52:36 +01:00
|
|
|
%tree-status-icon-before {
|
|
|
|
content:"";
|
|
|
|
display: block;
|
2015-06-26 20:00:48 +02:00
|
|
|
width:6px;
|
|
|
|
height: 6px;
|
2015-02-24 23:52:36 +01:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
background: #fce2d0;
|
2015-06-26 20:00:48 +02:00
|
|
|
border: 1px solid #fff;
|
2015-02-24 23:52:36 +01:00
|
|
|
border-radius: 100px;
|
|
|
|
}
|
2015-06-26 20:00:48 +02:00
|
|
|
@mixin tree-status-icon($label, $dotColor, $textColor, $bgColor) {
|
2015-02-24 23:52:36 +01:00
|
|
|
.cms-tree.jstree .status-#{$label} > a .jstree-pageicon:before {
|
|
|
|
@extend %tree-status-icon-before;
|
|
|
|
}
|
2015-06-26 20:00:48 +02:00
|
|
|
// Labels
|
2015-02-24 23:52:36 +01:00
|
|
|
.jstree .status-#{$label} > .jstree-hovered,
|
|
|
|
.jstree .status-#{$label} > .jstree-clicked,
|
2015-06-26 20:00:48 +02:00
|
|
|
.cms-tree.jstree span.badge.status-#{$label} {
|
2015-02-24 23:52:36 +01:00
|
|
|
background-color:$bgColor;
|
2015-06-26 20:00:48 +02:00
|
|
|
border-color:$textColor;
|
2015-02-24 23:52:36 +01:00
|
|
|
}
|
|
|
|
.cms-tree.jstree span.badge.status-#{$label} {
|
2015-06-26 20:00:48 +02:00
|
|
|
color: $textColor;
|
|
|
|
}
|
|
|
|
// Dots
|
|
|
|
.cms-tree.jstree .status-#{$label} > a .jstree-pageicon:before {
|
|
|
|
background-color:$dotColor;
|
|
|
|
@include box-shadow(0px 1px 1px rgba(0, 0, 0, 0.3), inset 0 0 0 1px $textColor);
|
|
|
|
}
|
|
|
|
#cms-content-tools-CMSMain .cms-tree.jstree span.badge.status-#{$label} {
|
|
|
|
@include box-shadow(0px 0px 6px 2px $bgColor);
|
2015-02-24 23:52:36 +01:00
|
|
|
}
|
|
|
|
}
|
2015-06-26 20:00:48 +02:00
|
|
|
@include tree-status-icon('addedtodraft', #ff7f22, #F46B00, #fff7f2);
|
|
|
|
@include tree-status-icon('modified', #fff2e8, #F46B00, #fff7f2);
|
|
|
|
@include tree-status-icon('archived', #5F7688, #455b6c, #f7f7f7);
|
|
|
|
@include tree-status-icon('deletedonlive', #f7f7f7, #455b6c, #f7f7f7);
|
|
|
|
@include tree-status-icon('removedfromdraft', #f7f7f7, #455b6c, #f7f7f7);
|
|
|
|
@include tree-status-icon('workflow-approval', #0070B4, #0070B4, #E8FAFF);
|
2011-12-14 16:54:52 +01:00
|
|
|
|
|
|
|
.cms-tree {
|
|
|
|
visibility: hidden; // enabled by JS to avoid layout glitches
|
2012-03-08 01:27:04 +01:00
|
|
|
&.multiple {
|
2012-04-18 18:22:54 +02:00
|
|
|
li > a {
|
|
|
|
// Hide draggable icon when multiselect is enabled
|
2012-11-01 03:26:46 +01:00
|
|
|
> .jstree-icon {
|
2012-04-18 18:22:54 +02:00
|
|
|
display: none;
|
2012-11-01 03:26:46 +01:00
|
|
|
// But show the checkbox
|
|
|
|
&.jstree-checkbox {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
2012-03-08 01:27:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
li#record-0 {
|
|
|
|
// Hide checkbox on root node (shouldn't be selectable to avoid weird states when trying to e.g. remove it)
|
2012-11-01 03:26:46 +01:00
|
|
|
> a .jstree-checkbox {
|
2012-03-08 01:27:04 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-06-03 23:30:56 +02:00
|
|
|
|
2013-10-11 00:34:25 +02:00
|
|
|
&.jstree-loading {
|
|
|
|
li#record-0 > .jstree-icon {
|
|
|
|
background: url(../images/throbber.gif) top left no-repeat;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-06-03 23:30:56 +02:00
|
|
|
// Show the loading indicator on the page icon rather than the default
|
|
|
|
// jstree icon (which is only used for its dragging handles)
|
2015-02-24 23:52:36 +01:00
|
|
|
a.jstree-loading {
|
2012-11-01 03:26:46 +01:00
|
|
|
.jstree-icon {
|
|
|
|
background-image: none !important;
|
|
|
|
}
|
|
|
|
.jstree-pageicon {
|
|
|
|
background: url(../images/throbber.gif) top left no-repeat;
|
|
|
|
}
|
|
|
|
}
|
2012-11-27 06:03:43 +01:00
|
|
|
}
|