ui.fancytree.less
4.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/*!
* Fancytree "bootstrap" skin (highlighting the node span instead of title-only).
*
* DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from
* the LESS templates.
*/
// Import common styles
@import "../skin-common.less";
/*******************************************************************************
* Styles specific to this skin.
*
* This section is automatically generated from the `ui-fancytree.less` template.
******************************************************************************/
// local vars
@fancy-my-icon-size: 16px;
// Override the variable after the import.
// NOTE: Variables are always resolved as the last definition, even if it is
// after where it is used.
@fancy-use-sprites: false;
@fancy-hide-connectors: true;
@fancy-icon-width: 1em;
@fancy-icon-height: 1em;
@fancy-line-height: 1em;
@fancy-icon-margin-left: 0.5em;
ul.fancytree-container ul {
padding: 0 0 0 1.5em;
margin: 0;
}
/* Prevent focus frame */
.fancytree-container:focus {
outline: none;
}
/////
// Original bootstrap colors (http://getbootstrap.com/css/#responsive-utilities)
@gray-darker: lighten(#000, 13.5%); // #222
@gray-dark: lighten(#000, 20%); // #333
@gray: lighten(#000, 33.5%); // #555
@gray-light: lighten(#000, 60%); // #999
@gray-lighter: lighten(#000, 93.5%); // #eee
@brand-primary: #428bca;
@brand-success: #5cb85c;
@brand-info: #5bc0de;
@brand-warning: #f0ad4e;
@brand-danger: #d9534f;
@border-radius-base: 4px;
@border-radius-large: 6px;
@border-radius-small: 3px;
/////////////
span.fancytree-node {
border: @fancy-node-border-width solid transparent; // avoid jumping, when a border is added on hover
border-radius: @border-radius-small;
padding-left: 8px;
}
span.fancytree-title {
border-radius: @border-radius-small;
}
// Inactive tree:
span.fancytree-node.fancytree-selected { // selected nodes inside inactive tree
background-color: lighten(@brand-success, 10%);
border-color: lighten(@brand-success, 10%);
span.fancytree-title {
background-color: lighten(@brand-success, 10%); // green title, even when active
}
}
span.fancytree-node.fancytree-active { // active nodes inside inactive tree
background-color: lighten(@brand-primary, 10%);
}
// Active tree:
.fancytree-container.fancytree-treefocus {
span.fancytree-node:hover {
background-color: lighten(@brand-primary, 42%);
}
span.fancytree-node.fancytree-focused {
border-color: @brand-primary;
}
span.fancytree-node.fancytree-selected {
background-color: @brand-success;
span.fancytree-title {
background-color: @brand-success; // green title, even when active
}
}
span.fancytree-node.fancytree-active {
background-color: @brand-primary;
border-color: @brand-primary;
}
}
/*******************************************************************************
* 'table' extension
*/
table.fancytree-ext-table tbody {
tr td {
border: 1px solid @gray-lighter;
}
// span.fancytree-node,
// span.fancytree-node:hover { // undo standard tree css
// border: none;
// background: none;
// }
// // Title get's a white background, when hovered. Undo standard node formatting
// span.fancytree-title:hover {
// border: none;
// background: inherit;
// background: transparent;
// background: none;
// filter: none;
// }
// dimmed, if inside inactive tree
tr.fancytree-selected {
background-color: lighten(@brand-success, 10%);
span.fancytree-node {
background-color: lighten(@brand-success, 10%);
}
span.fancytree-title {
background-color: lighten(@brand-success, 10%); // green title, even when active
}
}
tr.fancytree-active { // dimmed, if inside inactive tree
background-color: lighten(@brand-primary, 10%);
span.fancytree-node {
background-color: lighten(@brand-primary, 10%);
}
}
}
table.fancytree-ext-table.fancytree-treefocus tbody {
tr:hover {
background-color: lighten(@brand-primary, 42%);
// outline: 1px solid @brand-primary;
}
tr.fancytree-focused span.fancytree-title {
outline: 1px dotted @brand-primary;
}
tr.fancytree-active:hover,
tr.fancytree-selected:hover {
// background-color: #CBE8F6;
// outline: 1px solid #26A0DA;
}
tr.fancytree-selected {
background-color: @brand-success;
span.fancytree-node {
background-color: @brand-success;
}
span.fancytree-title {
background-color: @brand-success; // green title, even when active
}
}
tr.fancytree-active {
background-color: @brand-primary;
span.fancytree-node {
background-color: @brand-primary;
}
}
}