3 * Used to create the base structure of an Ext.Panel
13 // Workaround for disappearing right edge in IE6
15 .#{$prefix}panel-header,
16 .#{$prefix}panel-header-tl,
17 .#{$prefix}panel-header-tc,
18 .#{$prefix}panel-header-tr,
19 .#{$prefix}panel-header-ml,
20 .#{$prefix}panel-header-mc,
21 .#{$prefix}panel-header-mr,
22 .#{$prefix}panel-header-bl,
23 .#{$prefix}panel-header-bc,
24 .#{$prefix}panel-header-br {
28 // Fix for IE8 clipping. EXTJSIV-1553
30 td.#{$prefix}frame-mc {
37 .#{$prefix}panel-header {
38 padding: $panel-header-padding;
41 .#{$prefix}panel-header-icon,
42 .#{$prefix}window-header-icon {
45 background-repeat:no-repeat;
46 background-position:0 0;
47 vertical-align:middle;
53 .#{$prefix}panel-header-draggable,
54 .#{$prefix}panel-header-draggable .#{$prefix}panel-header-text,
55 .#{$prefix}window-header-draggable,
56 .#{$prefix}window-header-draggable .#{$prefix}window-header-text{
60 // A ghost is just a Panel. The only extra it needs is opacity.
61 // TODO: Make opacity a variable
62 .#{$prefix}panel-ghost, .#{$prefix}window-ghost {
63 @include opacity(0.65);
67 .#{$prefix}panel-header-horizontal, .#{$prefix}window-header-horizontal, .#{$prefix}btn-group-header-horizontal {
68 .#{$prefix}panel-header-body, .#{$prefix}window-header-body, .#{$prefix}btn-group-header-body {
73 .#{$prefix}panel-header-vertical, .#{$prefix}window-header-vertical, .#{$prefix}btn-group-header-vertical {
74 .#{$prefix}panel-header-body, .#{$prefix}window-header-body, .#{$prefix}btn-group-header-body {
79 // Vertical headers must be inline blocks so that they acquire width from the content
80 .#{$prefix}panel-header-vertical, .#{$prefix}panel-header-vertical .#{$prefix}panel-header-body,
81 .#{$prefix}btn-group-header-vertical, .#{$prefix}btn-group-header-vertical .#{$prefix}btn-group-header-body,
82 .#{$prefix}window-header-vertical, .#{$prefix}window-header-vertical .#{$prefix}window-header-body {
83 display: -moz-inline-stack;
84 display: inline-block;
87 .#{$prefix}panel-header-text-container {
89 -o-text-overflow: ellipsis;
90 text-overflow: ellipsis;
93 .#{$prefix}panel-header-text {
98 .#{$prefix}panel-header-left,
99 .#{$prefix}panel-header-right {
100 .#{$prefix}vml-base {
101 left: -3px !important;
106 .#{$prefix}panel-body {
110 font-size: $panel-body-font-size;
113 .#{$prefix}panel-header-vertical {
119 .#{$prefix}panel-header-plain-vertical {
126 .#{$prefix}panel-collapsed {
127 .#{$prefix}panel-header-collapsed-border-top {
128 border-bottom-width: $panel-header-border-width !important;
130 .#{$prefix}panel-header-collapsed-border-right {
131 border-left-width: $panel-header-border-width !important;
133 .#{$prefix}panel-header-collapsed-border-bottom {
134 border-top-width: $panel-header-border-width !important;
136 .#{$prefix}panel-header-collapsed-border-left {
137 border-right-width: $panel-header-border-width !important;
141 @if not $supports-gradients or $compile-all {
142 .#{$prefix}nlg .#{$prefix}panel-header-vertical {
143 .#{$prefix}frame-mc {
144 background-repeat: repeat-y;
149 @if $include-panel-uis == true {
150 @include extjs-panel-ui(
153 $ui-base-color: $panel-base-color,
154 $ui-border-width: $panel-border-width,
155 $ui-border-color: $panel-border-color,
156 $ui-border-radius: $panel-border-radius,
158 $ui-header-color: $panel-header-color,
159 $ui-header-font-size: $panel-header-font-size,
160 $ui-header-font-weight: $panel-header-font-weight,
161 $ui-header-border-color: $panel-header-border-color,
162 $ui-header-background-color: $panel-header-background-color,
163 $ui-header-background-gradient: $panel-header-background-gradient,
165 $ui-body-color: $panel-body-color,
166 $ui-body-border-color: $panel-body-border-color,
167 $ui-body-border-width: 1px,
168 $ui-body-background-color: $panel-body-background-color
171 @include extjs-panel-ui(
174 $ui-base-color: $panel-base-color,
175 $ui-border-width: $panel-frame-border-width,
176 $ui-border-color: $panel-frame-border-color,
177 $ui-border-radius: $panel-frame-border-radius,
179 $ui-header-color: $panel-header-color,
180 $ui-header-font-size: $panel-header-font-size,
181 $ui-header-font-weight: $panel-header-font-weight,
182 $ui-header-border-color: $panel-frame-border-color,
183 $ui-header-background-color: $panel-header-background-color,
184 $ui-header-background-gradient: $panel-header-background-gradient,
186 $ui-body-color: $panel-body-color,
187 $ui-body-border-color: $panel-body-border-color,
188 $ui-body-border-width: 0,
189 $ui-body-background-color: $panel-frame-background-color
193 .x-panel-header-plain,
194 .x-panel-body-plain {
202 * Used to create a visual theme for an Ext.Panel
204 @mixin extjs-panel-ui(
207 $ui-base-color: null,
209 $ui-border-color: null,
210 $ui-border-radius: null,
213 $ui-header-color: null,
214 $ui-header-font-family: $panel-header-font-family,
215 $ui-header-font-size: $panel-header-font-size,
216 $ui-header-font-weight: $panel-header-font-weight,
217 $ui-header-border-color: $ui-border-color,
218 $ui-header-background-color: null,
219 $ui-header-background-gradient: matte,
220 $ui-header-inner-border-color: null,
222 $ui-body-color: null,
223 $ui-body-border-color: null,
224 $ui-body-border-width: null,
225 $ui-body-border-style: solid,
226 $ui-body-background-color: null,
227 $ui-body-font-size: null,
228 $ui-body-font-weight: null
230 @if $ui-base-color != null {
231 @if $ui-border-color == null { $ui-border-color: $ui-base-color; }
233 @if $ui-header-color == null { $ui-header-color: #fff; }
234 @if $ui-header-background-color == null { $ui-header-background-color: lighten($ui-base-color, 15); }
237 @if $ui-header-inner-border-color == null and $ui-header-background-color != null {
238 $ui-header-inner-border-color: lighten($ui-header-background-color, 10);
241 .#{$prefix}panel-#{$ui-label} {
242 @if $ui-border-color != null { border-color: $ui-border-color; }
246 .#{$prefix}panel-header-#{$ui-label} {
247 @if $ui-header-font-size != null { font-size: $ui-header-font-size; }
248 line-height: $panel-header-line-height;
250 @if $ui-header-border-color != null {
251 border-color: $ui-header-border-color;
252 border-width: $panel-header-border-width;
253 border-style: $panel-header-border-style;
256 @if $supports-gradients or $compile-all {
257 @if $ui-header-background-color != null { @include background-gradient($ui-header-background-color, $ui-header-background-gradient); }
259 @if $panel-header-inner-border and $ui-header-inner-border-color != null {
260 @include inner-border(
261 $width: $panel-header-inner-border-width,
262 $color: $ui-header-inner-border-color
268 // header background images
269 @if $ui-header-background-color != null and $ui-header-background-gradient != null {
270 @if not $supports-gradients or $compile-all {
271 .#{$prefix}nlg .#{$prefix}panel-header-#{$ui-label}-top {
272 background-image: theme-background-image($theme-name, 'panel-header/panel-header-#{$ui-label}-top-bg.gif');
275 .#{$prefix}nlg .#{$prefix}panel-header-#{$ui-label}-bottom {
276 background-image: theme-background-image($theme-name, 'panel-header/panel-header-#{$ui-label}-bottom-bg.gif');
279 .#{$prefix}nlg .#{$prefix}panel-header-#{$ui-label}-left {
280 background-image: theme-background-image($theme-name, 'panel-header/panel-header-#{$ui-label}-left-bg.gif');
283 .#{$prefix}nlg .#{$prefix}panel-header-#{$ui-label}-right {
284 background-image: theme-background-image($theme-name, 'panel-header/panel-header-#{$ui-label}-right-bg.gif');
290 .#{$prefix}panel-header-text-#{$ui-label} {
291 @if $ui-header-color != null { color: $ui-header-color; }
293 @if $ui-header-font-size != null { font-size: $ui-header-font-size; }
294 @if $ui-header-font-weight != null { font-weight: $ui-header-font-weight; }
295 @if $ui-header-font-family != null { font-family: $ui-header-font-family; }
299 .#{$prefix}panel-body-#{$ui-label} {
300 @if $ui-body-background-color != null { background: $ui-body-background-color; }
301 @if $ui-body-border-color != null { border-color: $ui-body-border-color; }
302 @if $ui-body-color != null { color: $ui-body-color; }
303 @if $ui-body-font-size != null { font-size: $ui-body-font-size; }
304 @if $ui-body-font-weight != null { font-size: $ui-body-font-weight; }
306 @if $ui-body-border-width != null {
307 border-width: $ui-body-border-width;
308 @if $ui-body-border-style != null { border-style: $ui-body-border-style; }
312 .#{$prefix}panel-collapsed {
313 .#{$prefix}window-header-#{$ui-label},
314 .#{$prefix}panel-header-#{$ui-label} {
315 @if $ui-body-border-color != null { border-color: $ui-body-border-color; }
319 .#{$prefix}panel-header-#{$ui-label}-vertical {
320 @if $ui-body-border-color != null { border-color: $ui-body-border-color; }
323 @if $ui-base-color != null {
324 @if $supports-gradients or $compile-all {
325 .#{$prefix}panel-header-#{$ui-label}-left,
326 .#{$prefix}panel-header-#{$ui-label}-right {
327 @include background-gradient($ui-header-background-color, $ui-header-background-gradient, right);
332 @if $ui-border-radius != null {
337 /* Radius, width, padding and background-color */
338 $border-radius : $ui-border-radius,
339 $border-width : $ui-border-width,
340 $padding : $panel-frame-padding,
341 $background-color: $ui-body-background-color
345 @include x-frame('panel-header', '#{$ui-label}-top', top($ui-border-radius) right($ui-border-radius) 0 0, $ui-border-width, 4px 5px 4px 5px, $ui-header-background-color, $ui-header-background-gradient);
346 @include x-frame('panel-header', '#{$ui-label}-right', 0 right($ui-border-radius) bottom($ui-border-radius) 0, $ui-border-width, 4px 5px 4px 5px, $ui-header-background-color, $ui-header-background-gradient, false, right);
347 @include x-frame('panel-header', '#{$ui-label}-bottom', 0 0 bottom($ui-border-radius) left($ui-border-radius), $ui-border-width, 4px 5px 4px 5px, $ui-header-background-color, $ui-header-background-gradient);
348 @include x-frame('panel-header', '#{$ui-label}-left', top($ui-border-radius) 0 0 left($ui-border-radius), $ui-border-width, 4px 5px 4px 5px, $ui-header-background-color, $ui-header-background-gradient, false, right);
350 .#{$prefix}panel-header-#{$ui-label}-top {
351 @include inner-border(1px 1px 0 1px, $ui-header-inner-border-color);
354 .#{$prefix}panel-header-#{$ui-label}-right {
355 @include inner-border(1px 1px 1px 0, $ui-header-inner-border-color);
358 .#{$prefix}panel-header-#{$ui-label}-bottom {
359 @include inner-border(0 1px 1px 1px, $ui-header-inner-border-color);
362 .#{$prefix}panel-header-#{$ui-label}-left {
363 @include inner-border(1px 0 1px 1px, $ui-header-inner-border-color);
366 .#{$prefix}panel-collapsed {
367 .#{$prefix}panel-header-#{$ui-label}-top {
368 @include border-bottom-radius($ui-border-radius);
371 .#{$prefix}panel-header-#{$ui-label}-right {
372 @include border-left-radius($ui-border-radius);
375 .#{$prefix}panel-header-#{$ui-label}-bottom {
376 @include border-top-radius($ui-border-radius);
379 .#{$prefix}panel-header-#{$ui-label}-left {
380 @include border-right-radius($ui-border-radius);
384 .#{$prefix}nlg .#{$prefix}panel-header-#{$ui-label}-right {
385 background-position: top right;
388 .#{$prefix}panel-header-#{$ui-label}-top {
389 @include inner-border(1px 0 0 0, $ui-header-inner-border-color);
392 .#{$prefix}panel-header-#{$ui-label}-right {
393 @include inner-border(0 1px 0 0, $ui-header-inner-border-color);
396 .#{$prefix}panel-header-#{$ui-label}-bottom {
397 @include inner-border(0 0 1px, $ui-header-inner-border-color);
400 .#{$prefix}panel-header-#{$ui-label}-left {
401 @include inner-border(0 0 0 1px, $ui-header-inner-border-color);
405 .#{$prefix}nlg .#{$prefix}panel-header-#{$ui-label}-bottom {
406 background-position: bottom left;
409 @if $ui-border-radius != null {
410 .#{$prefix}panel .#{$prefix}panel-header-#{$ui-label}-top {
411 border-bottom-width: 1px !important;
414 .#{$prefix}panel .#{$prefix}panel-header-#{$ui-label}-right {
415 border-left-width: 1px !important;
418 .#{$prefix}panel .#{$prefix}panel-header-#{$ui-label}-bottom {
419 border-top-width: 1px !important;
422 .#{$prefix}panel .#{$prefix}panel-header-#{$ui-label}-left {
423 border-right-width: 1px !important;
426 .#{$prefix}panel-header-#{$ui-label}-collapsed {
427 @include border-radius($ui-border-radius);
430 @include x-frame('panel-header', '#{$ui-label}-collapsed-top', top($ui-border-radius) right($ui-border-radius) bottom($ui-border-radius) left($ui-border-radius), $ui-border-width, 4px 5px 4px 5px, $ui-header-background-color, $ui-header-background-gradient);
431 @include x-frame('panel-header', '#{$ui-label}-collapsed-right', top($ui-border-radius) right($ui-border-radius) bottom($ui-border-radius) left($ui-border-radius), $ui-border-width, 4px 5px 4px 5px, $ui-header-background-color, $ui-header-background-gradient, false, right);
432 @include x-frame('panel-header', '#{$ui-label}-collapsed-bottom', top($ui-border-radius) right($ui-border-radius) bottom($ui-border-radius) left($ui-border-radius), $ui-border-width, 4px 5px 4px 5px, $ui-header-background-color, $ui-header-background-gradient);
433 @include x-frame('panel-header', '#{$ui-label}-collapsed-left', top($ui-border-radius) right($ui-border-radius) bottom($ui-border-radius) left($ui-border-radius), $ui-border-width, 4px 5px 4px 5px, $ui-header-background-color, $ui-header-background-gradient, false, right);
436 //background positioning of images
437 .#{$prefix}panel-header-#{$ui-label}-right-tc,
438 .#{$prefix}panel-header-#{$ui-label}-right-mc,
439 .#{$prefix}panel-header-#{$ui-label}-right-bc {
440 background-position: right 0;
443 .#{$prefix}panel-header-#{$ui-label}-bottom-tc,
444 .#{$prefix}panel-header-#{$ui-label}-bottom-mc,
445 .#{$prefix}panel-header-#{$ui-label}-bottom-bc {
446 background-position: 0 bottom;