source: branches/testFACT++branch/dim/WebDID/ext-4.1.1a/resources/themes/stylesheets/neptune/default/util/_tool.scss

Last change on this file was 14939, checked in by tbretz, 12 years ago
Added WebDID from v20r5
File size: 6.7 KB
Line 
1@mixin extjs-tool {
2 .#{$prefix}tool {
3 cursor: pointer;
4
5 img {
6 overflow: hidden;
7
8 width: $tool-size;
9 height: $tool-size;
10
11 cursor: pointer;
12
13 background-color: transparent;
14 background-repeat: no-repeat;
15 // background-image: theme-background-image($theme-name, 'tools/tool-sprites.gif');
16
17 margin: 0;
18 }
19 }
20
21 .#{$prefix}panel-header-horizontal,
22 .#{$prefix}window-header-horizontal {
23 .#{$prefix}tool {
24 margin-left: 5px;
25 }
26 }
27
28 .#{$prefix}panel-header-tools-first {
29 .#{$prefix}tool {
30 margin-left: 0;
31 margin-right: 5px;
32 }
33 }
34
35 .#{$prefix}panel-header-vertical,
36 .#{$prefix}window-header-vertical {
37 .#{$prefix}tool {
38 margin-bottom: 5px;
39 }
40 }
41
42 .#{$prefix}tool-placeholder {
43 visibility: hidden;
44 }
45
46 //Icons
47 @include extjs-tool-icon('maximize', 0);
48 @include extjs-tool-icon('minimize', 1);
49 @include extjs-tool-icon('restore', 2);
50 @include extjs-tool-icon('save', 3);
51 @include extjs-tool-icon('refresh', 4);
52 @include extjs-tool-icon('help', 5);
53 @include extjs-tool-icon('info', 6);
54 @include extjs-tool-icon('search', 7);
55 @include extjs-tool-icon('gear', 8);
56 @include extjs-tool-icon('close', 9);
57 @include extjs-tool-icon('minus', 10);
58 @include extjs-tool-icon('plus', 11);
59 @include extjs-tool-icon('print', 12);
60 @include extjs-tool-icon('up', 13);
61 @include extjs-tool-icon('toggle', 13);
62 @include extjs-tool-icon('collapse', 13);
63 @include extjs-tool-icon('collapse-top', 13);
64 @include extjs-tool-icon('left', 14);
65 @include extjs-tool-icon('prev', 14);
66 @include extjs-tool-icon('down', 15);
67 @include extjs-tool-icon('collapse-bottom', 15);
68 @include extjs-tool-icon('expand-bottom', 15);
69 @include extjs-tool-icon('expand', 13);
70 @include extjs-tool-icon('right', 16);
71 @include extjs-tool-icon('next', 16);
72 @include extjs-tool-icon('collapse-all', 17);
73 @include extjs-tool-icon('expand-all', 18);
74 @include extjs-tool-icon('pin', 19);
75 @include extjs-tool-icon('unpin', 20);
76
77 .x-collapsed {
78 @include extjs-tool-icon('toggle', 15);
79 }
80
81 .x-accordion-hd {
82 @include extjs-tool-icon('collapse-top', 1, true);
83 @include extjs-tool-icon('collapse-bottom', 0, true);
84 @include extjs-tool-icon('expand-top', 1, true);
85 @include extjs-tool-icon('expand-bottom', 0, true);
86 }
87
88// .#{$prefix}tool-prev {
89// background-position: 0 -105px;
90// }
91
92// .#{$prefix}tool-next {
93// background-position: 0 -120px;
94// }
95
96// .#{$prefix}tool-pin {
97// background-position: 0 -135px;
98// }
99
100// .#{$prefix}tool-unpin {
101// background-position: 0 -150px;
102// }
103
104// .#{$prefix}tool-right {
105// background-position: 0 -165px;
106// }
107
108// .#{$prefix}tool-left {
109// background-position: 0 -180px;
110// }
111
112
113
114
115// .#{$prefix}tool-up:after {
116// content: "{";
117// }
118
119// .#{$prefix}tool-down:after {
120// content: "}";
121// }
122
123// .#{$prefix}tool-collapse {
124// background-position: 0 -345px;
125// }
126
127// .#{$prefix}tool-expand {
128// background-position: 0 -330px;
129// }
130
131
132// .#{$prefix}tool-expand-bottom,
133// .#{$prefix}tool-collapse-bottom {
134// background-position: 0 -195px;
135// }
136
137// .#{$prefix}tool-expand-top,
138// .#{$prefix}tool-collapse-top,
139// .#{$prefix}tool-expand-bottom,
140// .#{$prefix}tool-collapse-bottom {
141// // background-position: 0 -210px;
142// background-color: #8DC3E8;//darken($base-color, 10%);
143
144// &:after {
145//// @include triangle($color: lighten($base-color, 30%), $size: 12px);
146// @include triangle($color: #0A54B0, $size: 12px);
147// @include scale(.7, .5, 0, 0);
148// position: absolute;
149// left: 2px;
150// top: 3px;
151// }
152// }
153
154// .#{$prefix}tool-expand-bottom,
155// .#{$prefix}tool-collapse-bottom {
156// @include rotate(180deg);
157// }
158
159// .#{$prefix}tool-expand-left,
160// .#{$prefix}tool-collapse-left {
161// background-position: 0 -180px;
162// }
163
164// .#{$prefix}tool-expand-right,
165// .#{$prefix}tool-collapse-right {
166// background-position: 0 -165px;
167// }
168
169// .#{$prefix}tool-over {
170// .#{$prefix}tool-prev,
171// .#{$prefix}tool-next,
172// .#{$prefix}tool-pin,
173// .#{$prefix}tool-unpin,
174// .#{$prefix}tool-right,
175// .#{$prefix}tool-left,
176// .#{$prefix}tool-down,
177// .#{$prefix}tool-up,
178// .#{$prefix}tool-expand,
179// .#{$prefix}tool-collapse,
180// .#{$prefix}tool-expand-bottom,
181// .#{$prefix}tool-collapse-bottom,
182// .#{$prefix}tool-expand-top,
183// .#{$prefix}tool-collapse-top,
184// .#{$prefix}tool-expand-left,
185// .#{$prefix}tool-collapse-left,
186// .#{$prefix}tool-expand-right,
187// .#{$prefix}tool-collapse-right {
188// background-position-y: -16px;
189// }
190// }
191}
192
193.#{$prefix}tool-base {
194 width: $tool-size;
195 height: $tool-size;
196
197 background-image: theme-background-image($theme-name, 'tools.png');
198}
199.#{$prefix}tool-base-over {
200 background-position-y: -$tool-size;
201}
202.#{$prefix}tool-base-pressed {
203 background-position-y: -($tool-size * 2);
204}
205
206.#{$prefix}accordion-tool-base {
207 width: $accordion-tool-size;
208 height: $accordion-tool-size;
209
210 background-image: theme-background-image($theme-name, 'tools-small.png');
211}
212.#{$prefix}accordion-tool-base-over {
213 background-position-y: -$accordion-tool-size;
214}
215.#{$prefix}accordion-tool-base-pressed {
216 background-position-y: -($accordion-tool-size * 2);
217}
218
219@mixin extjs-tool-icon($name, $offset, $accordion: false) {
220 @if $accordion {
221 .#{$prefix}tool-#{$name} {
222 @extend .#{$prefix}accordion-tool-base;
223 background-position-x: -($offset * $accordion-tool-size);
224 }
225
226 .#{$prefix}tool-over {
227 .#{$prefix}tool-#{$name} {
228 @extend .#{$prefix}accordion-tool-base-over;
229 }
230 }
231
232 .#{$prefix}tool-pressed {
233 .#{$prefix}tool-#{$name} {
234 @extend .#{$prefix}accordion-tool-base-pressed;
235 }
236 }
237 } @else {
238 .#{$prefix}tool-#{$name} {
239 @extend .#{$prefix}tool-base;
240 background-position-x: -($offset * $tool-size);
241 }
242
243 .#{$prefix}tool-over {
244 .#{$prefix}tool-#{$name} {
245 @extend .#{$prefix}tool-base-over;
246 }
247 }
248
249 .#{$prefix}tool-pressed {
250 .#{$prefix}tool-#{$name} {
251 @extend .#{$prefix}tool-base-pressed;
252 }
253 }
254 }
255}
Note: See TracBrowser for help on using the repository browser.