| 1 |
/* Tree |
| 2 |
* |
| 3 |
* Styling Tree mostly means styling the TreeRow (dijitTreeRow) |
| 4 |
* There are 4 basic states to style: |
| 5 |
* |
| 6 |
* Tree Row: |
| 7 |
* 1. tree row (default styling): |
| 8 |
* .dijitTreeRow - styles for each row of the tree |
| 9 |
* |
| 10 |
* 2. hovered tree row (mouse hover on a tree row) |
| 11 |
* .dijitTreeRowHover - styles when mouse over on one row |
| 12 |
* |
| 13 |
* 3. active tree row (mouse down on a tree row) |
| 14 |
* .dijitTreeRowActive - styles when mouse down on one row |
| 15 |
* |
| 16 |
* 4. selected tree row |
| 17 |
* dijitTreeRowSelected - style when the row has been selected |
| 18 |
* |
| 19 |
* Tree Expando: |
| 20 |
* dijitTreeExpando - the expando at the left of the text of each tree row |
| 21 |
* |
| 22 |
*/ |
| 23 |
|
| 24 |
@import 'dijit_variables'; |
| 25 |
|
| 26 |
.{$theme-name} { |
| 27 |
|
| 28 |
.dijitTreeIsRoot { |
| 29 |
background-color: $tree-background-color; |
| 30 |
} |
| 31 |
|
| 32 |
.dijitTreeRow, |
| 33 |
.dijitTreeNode .dojoDndItemBefore, |
| 34 |
.dijitTreeNode .dojoDndItemAfter { |
| 35 |
padding: $tree-row-padding; |
| 36 |
border: 0 $tree-row-border-color; |
| 37 |
line-height: $tree-row-line-height; |
| 38 |
transition-property: background-color; |
| 39 |
transition-duration: .15s; |
| 40 |
transition-timing-function: ease-out; |
| 41 |
} |
| 42 |
|
| 43 |
/* Hover */ |
| 44 |
|
| 45 |
.dijitTreeRowHover { |
| 46 |
background-color: $tree-row-hover-background-color; |
| 47 |
border-color: $tree-row-hover-border-color; |
| 48 |
transition-duration: .15s; |
| 49 |
} |
| 50 |
|
| 51 |
/* Active */ |
| 52 |
|
| 53 |
.dijitTreeRowActive { |
| 54 |
background-color:$tree-row-active-background-color; |
| 55 |
border-color: $tree-row-active-border-color; |
| 56 |
} |
| 57 |
|
| 58 |
/* Selected */ |
| 59 |
|
| 60 |
.dijitTreeRowSelected, |
| 61 |
.dijitTreeRowHover.dijitTreeRowSelected, |
| 62 |
.dijitTreeRowActive.dijitTreeRowSelected { |
| 63 |
color: $tree-row-selected-text-color; |
| 64 |
background-color: $tree-row-selected-background-color; |
| 65 |
border-color: $tree-row-selected-border-color; |
| 66 |
.dijitTreeExpando { |
| 67 |
color: $tree-expando-icon-selected-color; |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
/* Focused */ |
| 72 |
|
| 73 |
/* |
| 74 |
.dijitTreeRowFocused { |
| 75 |
} |
| 76 |
*/ |
| 77 |
|
| 78 |
/* expando (open/closed) icon */ |
| 79 |
|
| 80 |
.dijitTreeExpando { |
| 81 |
_icon-core-style(); |
| 82 |
width: $tree-expando-icon-width; |
| 83 |
height: $tree-expando-icon-height; |
| 84 |
line-height: @height; |
| 85 |
text-align: center; |
| 86 |
margin-left: $tree-expando-margin; |
| 87 |
margin-right: $tree-expando-margin; |
| 88 |
color: $tree-expando-icon-color; |
| 89 |
vertical-align: middle; |
| 90 |
} |
| 91 |
|
| 92 |
.dijitTreeExpandoOpened:before { |
| 93 |
content: "\f012"; |
| 94 |
cursor: pointer; |
| 95 |
} |
| 96 |
|
| 97 |
.dijitTreeExpandoClosed:before { |
| 98 |
content: "\f011"; |
| 99 |
} |
| 100 |
|
| 101 |
.dijitTreeExpandoLoading { |
| 102 |
animation: spinning 2s linear infinite; |
| 103 |
&:before { |
| 104 |
content: "\f01d"; |
| 105 |
|
| 106 |
} |
| 107 |
} |
| 108 |
} |
| 109 |
|
| 110 |
.dj_ie8 .dijitTreeExpandoLoading, |
| 111 |
.dj_ie9 .dijitTreeExpandoLoading { |
| 112 |
background:url('images/loadingAnimation.gif') no-repeat; |
| 113 |
|
| 114 |
&:before { |
| 115 |
content: ""; |
| 116 |
} |
| 117 |
} |
| 118 |
|
| 119 |
@keyframes spinning { |
| 120 |
from {transform: rotate(0);} |
| 121 |
to {transform: rotate(-360deg);} |
| 122 |
} |