2011-11-08 17:40:44 +01:00
|
|
|
/* Tree
|
|
|
|
*
|
|
|
|
* Styling Tree mostly means styling the TreeRow (dijitTreeRow)
|
|
|
|
* There are 4 basic states to style:
|
|
|
|
*
|
|
|
|
* Tree Row:
|
|
|
|
* 1. tree row (default styling):
|
|
|
|
* .dijitTreeRow - styles for each row of the tree
|
|
|
|
*
|
|
|
|
* 2. hovered tree row (mouse hover on a tree row)
|
|
|
|
* .dijitTreeRowHover - styles when mouse over on one row
|
|
|
|
*
|
|
|
|
* 3. active tree row (mouse down on a tree row)
|
|
|
|
* .dijitTreeRowActive - styles when mouse down on one row
|
|
|
|
*
|
|
|
|
* 4. selected tree row
|
|
|
|
* dijitTreeRowSelected - style when the row has been selected
|
|
|
|
*
|
|
|
|
* Tree Expando:
|
|
|
|
* dijitTreeExpando - the expando at the left of the text of each tree row
|
|
|
|
*
|
|
|
|
* Drag and Drop on TreeNodes: (insert line on dijitTreeContent node so it'll aligned w/ target element)
|
|
|
|
* .dijitTreeNode .dojoDndItemBefore/.dojoDndItemAfter - use border style simulate a separate line
|
|
|
|
*/
|
2010-11-15 08:39:52 +01:00
|
|
|
.claro .dijitTreeNode {
|
2011-11-08 17:40:44 +01:00
|
|
|
zoom: 1;
|
|
|
|
/* force layout on IE (TODO: may not be needed anymore) */
|
|
|
|
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeIsRoot {
|
2011-11-08 17:40:44 +01:00
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
/* Styling for basic tree node (unhovered, unselected)
|
|
|
|
* Also use this styling when dropping between items on the tree (in other words, don't
|
|
|
|
* use hover effect)
|
|
|
|
*/
|
|
|
|
.claro .dijitTreeRow, .claro .dijitTreeNode .dojoDndItemBefore, .claro .dijitTreeNode .dojoDndItemAfter {
|
|
|
|
/* so insert line shows up on IE when dropping after a target element */
|
|
|
|
|
2013-03-18 07:26:24 +01:00
|
|
|
padding: 4px 0 2px 0;
|
2011-11-08 17:40:44 +01:00
|
|
|
background-color: none;
|
|
|
|
background-color: transparent;
|
|
|
|
background-color: rgba(171, 214, 255, 0);
|
|
|
|
background-position: 0 0;
|
|
|
|
background-repeat: repeat-x;
|
2013-03-18 07:26:24 +01:00
|
|
|
border: solid 0 transparent;
|
2012-08-14 16:59:10 +02:00
|
|
|
color: #000000;
|
2011-11-08 17:40:44 +01:00
|
|
|
-webkit-transition-property: background-color, border-color;
|
|
|
|
-moz-transition-property: background-color, border-color;
|
|
|
|
transition-property: background-color, border-color;
|
|
|
|
-webkit-transition-duration: 0.25s;
|
|
|
|
-moz-transition-duration: 0.25s;
|
|
|
|
transition-duration: 0.25s;
|
|
|
|
-webkit-transition-timing-function: ease-out;
|
|
|
|
-moz-transition-timing-function: ease-out;
|
|
|
|
transition-timing-function: ease-out;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeRowSelected {
|
2011-11-08 17:40:44 +01:00
|
|
|
background-color: #cfe5fa;
|
2013-03-18 07:26:24 +01:00
|
|
|
background-image: url("images/standardGradient.png");
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
|
|
|
|
background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
|
|
|
|
background-image: -o-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
|
|
|
|
background-image: linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
|
|
|
|
_background-image: none;
|
2011-11-08 17:40:44 +01:00
|
|
|
padding: 3px 0 1px;
|
2013-03-18 07:26:24 +01:00
|
|
|
border-color: #759dc0;
|
|
|
|
border-width: 1px 0;
|
2011-11-08 17:40:44 +01:00
|
|
|
color: #000000;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeRowHover {
|
2011-11-08 17:40:44 +01:00
|
|
|
background-color: #abd6ff;
|
2013-03-18 07:26:24 +01:00
|
|
|
background-image: url("images/standardGradient.png");
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
|
|
|
|
background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
|
|
|
|
background-image: -o-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
|
|
|
|
background-image: linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
|
|
|
|
_background-image: none;
|
2011-11-08 17:40:44 +01:00
|
|
|
padding: 3px 0 1px;
|
2013-03-18 07:26:24 +01:00
|
|
|
border-color: #759dc0;
|
|
|
|
border-width: 1px 0;
|
2011-11-08 17:40:44 +01:00
|
|
|
color: #000000;
|
|
|
|
-webkit-transition-duration: 0.25s;
|
|
|
|
-moz-transition-duration: 0.25s;
|
|
|
|
transition-duration: 0.25s;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeRowActive {
|
2012-08-14 16:59:10 +02:00
|
|
|
background-color: #7dbdfa;
|
2013-03-18 07:26:24 +01:00
|
|
|
background-image: url("images/activeGradient.png");
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
background-image: -moz-linear-gradient(rgba(190, 190, 190, 0.98) 0px, rgba(255, 255, 255, 0.65) 3px, rgba(255, 255, 255, 0) 100%);
|
|
|
|
background-image: -webkit-linear-gradient(rgba(190, 190, 190, 0.98) 0px, rgba(255, 255, 255, 0.65) 3px, rgba(255, 255, 255, 0) 100%);
|
|
|
|
background-image: -o-linear-gradient(rgba(190, 190, 190, 0.98) 0px, rgba(255, 255, 255, 0.65) 3px, rgba(255, 255, 255, 0) 100%);
|
|
|
|
background-image: linear-gradient(rgba(190, 190, 190, 0.98) 0px, rgba(255, 255, 255, 0.65) 3px, rgba(255, 255, 255, 0) 100%);
|
|
|
|
_background-image: none;
|
2011-11-08 17:40:44 +01:00
|
|
|
padding: 3px 0 1px;
|
2013-03-18 07:26:24 +01:00
|
|
|
border-color: #759dc0;
|
|
|
|
border-width: 1px 0;
|
2011-11-08 17:40:44 +01:00
|
|
|
color: #000000;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeRowFocused {
|
2011-11-08 17:40:44 +01:00
|
|
|
background-repeat: repeat;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
2011-11-08 17:40:44 +01:00
|
|
|
/* expando (open/closed) icon */
|
2010-11-15 08:39:52 +01:00
|
|
|
.claro .dijitTreeExpando {
|
2012-08-14 16:59:10 +02:00
|
|
|
background-image: url("images/treeExpandImages.png");
|
2011-11-08 17:40:44 +01:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
background-position: -35px 0;
|
|
|
|
/* for dijitTreeExpandoOpened */
|
|
|
|
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.dj_ie6 .claro .dijitTreeExpando {
|
2012-08-14 16:59:10 +02:00
|
|
|
background-image: url("images/treeExpandImages8bit.png");
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeRowHover .dijitTreeExpandoOpened {
|
2011-11-08 17:40:44 +01:00
|
|
|
background-position: -53px 0;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeExpandoClosed {
|
2011-11-08 17:40:44 +01:00
|
|
|
background-position: 1px 0;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeRowHover .dijitTreeExpandoClosed {
|
2011-11-08 17:40:44 +01:00
|
|
|
background-position: -17px 0;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTreeExpandoLeaf, .dj_ie6 .claro .dijitTreeExpandoLeaf {
|
|
|
|
background-image: none;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeExpandoLoading {
|
2012-08-14 16:59:10 +02:00
|
|
|
background-image: url("images/loadingAnimation.gif");
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
2011-11-08 17:40:44 +01:00
|
|
|
/* Drag and Drop on TreeNodes
|
|
|
|
* Put insert line on dijitTreeContent node so it's aligned w/
|
|
|
|
* (ie, indented equally with) target element, even
|
|
|
|
* though dijitTreeRowNode is the actual "drag object"
|
|
|
|
*/
|
2010-11-15 08:39:52 +01:00
|
|
|
.claro .dijitTreeNode .dojoDndItemBefore .dijitTreeContent {
|
2012-08-14 16:59:10 +02:00
|
|
|
border-top: 2px solid #759dc0;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTreeNode .dojoDndItemAfter .dijitTreeContent {
|
2012-08-14 16:59:10 +02:00
|
|
|
border-bottom: 2px solid #759dc0;
|
2010-11-15 08:39:52 +01:00
|
|
|
}
|