5 background: $panel-body-background-color;
6 border-color: $panel-body-border-color;
7 border-style: $panel-body-border-style;
9 border-top-color: $grid-header-background-color;
12 // Still needs left and right border even if it's not visible so that its available width can be calculated correctly
13 .#{$prefix}grid-header-ct-hidden {
14 border-top-width: 0 !important;
18 .#{$prefix}grid-header-hidden .#{$prefix}grid-body {
19 border-top-color: $panel-body-border-color !important;
22 .#{$prefix}grid-view {
28 .#{$prefix}grid-table {
30 border-collapse: separate;
33 .#{$prefix}grid-row .#{$prefix}grid-table {
34 border-collapse: collapse;
37 .#{$prefix}grid-locked .#{$prefix}grid-inner-locked {
38 border-width: 0 1px 0 0 !important;
42 .#{$prefix}grid-header-ct {
46 border: 1px solid $panel-body-border-color;
48 @if $supports-gradients or $compile-all {
49 @include background-gradient($grid-header-background-color, $grid-header-background-gradient);
53 @if $include-ie or $compile-all {
54 .#{$prefix}border-box .#{$prefix}ie9 {
55 .#{$prefix}grid-header-ct {
59 .#{$prefix}ie6, .#{$prefix}ie7 {
60 .#{$prefix}grid-header-ct {
67 .#{$prefix}column-header {
72 border-right: 1px solid $grid-header-background-color;
75 border-bottom: 0 none;
77 text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
78 font: normal 11px/15px $font-family;
80 @if $grid-header-color {
81 color: $grid-header-color;
83 font: normal ceil($font-size * .9) $font-family;
85 @if $supports-gradients or $compile-all {
86 @include background-gradient($grid-header-background-color, $grid-header-background-gradient);
90 .#{$prefix}group-header {
94 .#{$prefix}group-sub-header {
95 background: transparent;
96 border-top: 1px solid $grid-header-background-color;
100 .#{$prefix}column-header-inner {
105 padding: $grid-header-padding;
107 .#{$prefix}column-header-text {
112 .#{$prefix}column-header-over,
113 .#{$prefix}column-header-sort-ASC,
114 .#{$prefix}column-header-sort-DESC {
115 border-left-color: $grid-header-over-border-color;
116 border-right-color: $grid-header-over-border-color;
118 @if $supports-gradients or $compile-all {
119 @include background-gradient($grid-header-over-background-color, $grid-header-over-background-gradient);
123 @if not $supports-gradients or $compile-all {
125 .#{$prefix}grid-header-ct,
126 .#{$prefix}column-header {
127 background: repeat-x 0 top;
128 @include theme-background-image($theme-name, 'grid/column-header-bg.gif');
131 .#{$prefix}column-header-over,
132 .#{$prefix}column-header-sort-ASC,
133 .#{$prefix}column-header-sort-DESC {
134 background: #ebf3fd repeat-x 0 top;
135 @include theme-background-image($theme-name, 'grid/column-header-over-bg.gif');
140 .#{$prefix}column-header-trigger {
143 width: $grid-header-trigger-width;
144 background: no-repeat left center;
145 background-color: #c3daf9;
146 @include theme-background-image($theme-name, 'grid/grid3-hd-btn.gif');
154 .#{$prefix}column-header-over, .#{$prefix}column-header-open {
155 .#{$prefix}column-header-trigger {
160 .#{$prefix}column-header-align-right {
163 .#{$prefix}column-header-text {
164 padding-right: 0.5ex;
168 .#{$prefix}column-header-align-center {
171 .#{$prefix}column-header-align-left {
175 // Sort direction indicator is a background of the text span.
176 .#{$prefix}column-header-sort-ASC .#{$prefix}column-header-text {
178 background: no-repeat right 6px;
179 @include theme-background-image($theme-name, 'grid/sort_asc.gif');
181 .#{$prefix}column-header-sort-DESC .#{$prefix}column-header-text {
183 background: no-repeat right 6px;
184 @include theme-background-image($theme-name, 'grid/sort_desc.gif');
188 .#{$prefix}grid-row {
193 padding: $grid-row-padding;
195 -moz-user-select: none;
196 -khtml-user-select: none;
197 -webkit-user-select: ignore;
199 .#{$prefix}grid-cell {
200 @if $grid-row-cell-color {
201 color: $grid-row-cell-color;
203 font: $grid-row-cell-font;
205 border-color: $grid-row-cell-border-color;
206 border-style: $grid-row-cell-border-style;
207 border-width: $grid-row-cell-border-width;
208 border-top-color: lighten($grid-row-cell-border-color, 5);
212 .#{$prefix}grid-rowwrap-div {
213 border-width: $grid-row-wrap-border-width;
214 border-color: $grid-row-wrap-border-color;
215 border-style: $grid-row-wrap-border-style;
216 border-top-color: lighten($grid-row-wrap-border-color, 5);
221 .#{$prefix}grid-row-alt .#{$prefix}grid-cell,
222 .#{$prefix}grid-row-alt .#{$prefix}grid-rowwrap-div {
223 background-color: $grid-row-cell-alt-background;
226 .#{$prefix}grid-row-over .#{$prefix}grid-cell,
227 .#{$prefix}grid-row-over .#{$prefix}grid-rowwrap-div {
228 border-color: $grid-row-cell-over-border-color;
230 background-color: $grid-row-cell-over-background-color;
233 .#{$prefix}grid-row-focused .#{$prefix}grid-cell,
234 .#{$prefix}grid-row-focused .#{$prefix}grid-rowwrap-div {
235 border-color: $grid-row-cell-focus-border-color;
237 background-color: $grid-row-cell-focus-background-color;
240 .#{$prefix}grid-row-selected .#{$prefix}grid-cell,
241 .#{$prefix}grid-row-selected .#{$prefix}grid-rowwrap-div {
242 border-style: $grid-row-cell-selected-border-style;
243 border-color: $grid-row-cell-selected-border-color;
245 background-color: $grid-row-cell-selected-background-color !important;
248 .#{$prefix}grid-rowwrap-div {
249 .#{$prefix}grid-cell,
250 .#{$prefix}grid-cell-inner {
253 background: transparent;
257 .#{$prefix}grid-row-body-hidden {
261 .#{$prefix}grid-rowbody {
262 font: $grid-row-body-font;
264 padding: $grid-row-body-padding;
267 margin: 5px 5px 10px 5px;
272 .#{$prefix}grid-cell {
275 font: $grid-cell-font;
277 -moz-user-select: none;
278 -khtml-user-select:none;
279 -webkit-user-select:ignore;
282 .#{$prefix}grid-cell-inner {
285 -o-text-overflow: ellipsis;
286 text-overflow: ellipsis;
288 padding: $grid-cell-inner-padding;
293 // Action columns with a standard, 16x16 icon require less padding
294 .#{$prefix}action-col-cell .#{$prefix}grid-cell-inner {
295 padding: 1px 2px 0 2px;
300 .#{$prefix}quirks .#{$prefix}ie9,
301 .#{$prefix}quirks .#{$prefix}ie8,
302 .#{$prefix}strict .#{$prefix}ie8 {
303 .#{$prefix}action-col-cell .#{$prefix}grid-cell-inner {
304 padding: 2px 2px 1px 2px;
308 .#{$prefix}grid-row .#{$prefix}grid-cell-special {
310 border-right: 1px solid $grid-cell-with-col-lines-border-color;
312 @include background-gradient(#f6f6f6, 'grid-cell-special');
316 IE6-8 have issues with shrinking the TR to 0px (even w/line-height=0), so we
317 use an IE-specific trick to make the row disappear. We cannot do this on any
318 other browser, because it is not a non-standard thing to do and those other
319 browsers will do whacky things with it.
324 .#{$prefix}quirks .#{$prefix}ie8,
325 .#{$prefix}strict .#{$prefix}ie8 {
326 .#{$prefix}grid-header-row {
331 .#{$prefix}grid-row-selected .#{$prefix}grid-cell-special {
332 border-right: 1px solid adjust-color($base-color, $hue: -0.175deg, $saturation: 25.296%, $lightness: -2.549%);
334 @include background-gradient($grid-row-cell-selected-background-color, 'grid-cell-special');
337 .#{$prefix}grid-dirty-cell {
338 @include theme-background-image($theme-name, 'grid/dirty.gif');
339 background-position: 0 0;
340 background-repeat: no-repeat;
343 .#{$prefix}grid-cell-selected {
344 background-color: #B8CFEE !important;
347 @if not $supports-gradients or $compile-all {
349 .#{$prefix}grid-cell-special {
350 background-repeat: repeat-y;
351 background-position: top right;
354 .#{$prefix}grid-row .#{$prefix}grid-cell-special,
355 .#{$prefix}grid-row-over .#{$prefix}grid-cell-special {
356 @include theme-background-image($theme-name, 'grid/cell-special-bg.gif');
360 .#{$prefix}grid-row-focused .#{$prefix}grid-cell-special,
361 .#{$prefix}grid-row-selected .#{$prefix}grid-cell-special {
362 @include theme-background-image($theme-name, 'grid/cell-special-selected-bg.gif');
367 //this is panel as gridpanel doesn't use a baseCls
368 .#{$prefix}panel-with-col-lines .#{$prefix}grid-row .#{$prefix}grid-cell {
370 border-right: 1px solid $grid-cell-with-col-lines-border-color;
375 .#{$prefix}grid-cell-special {
376 border-right-width: 0 !important;
381 .#{$prefix}property-grid {
382 .#{$prefix}grid-row .#{$prefix}grid-cell-inner {
383 padding: 3px 6px 5px;
386 .#{$prefix}grid-row .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner,
387 .#{$prefix}grid-row-over .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner {
389 @include theme-background-image($theme-name, 'grid/property-cell-bg.gif');
390 background-repeat: no-repeat;
391 background-position: -16px 1px;
396 .#{$prefix}quirks .#{$prefix}ie .#{$prefix}grid-row .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner {
397 background-position: -16px 2px;
401 .#{$prefix}unselectable {
402 -moz-user-select: none;
403 -khtml-user-select: none;
404 -webkit-user-select: ignore;
407 .#{$prefix}grid-row-body-hidden {
411 .#{$prefix}grid-group-collapsed {
416 .#{$prefix}grid-view {
417 .#{$prefix}grid-td-expander {
422 .#{$prefix}grid-td-expander {
423 background: repeat-y right transparent;
426 .#{$prefix}grid-view {
427 .#{$prefix}grid-td-expander {
428 .#{$prefix}grid-cell-inner {
429 padding: 0 !important;
434 .#{$prefix}grid-row-expander {
435 @include theme-background-image($theme-name, 'grid/group-collapse.gif');
436 background-color: transparent;
443 background-repeat: no-repeat;
444 background-position: 0 -2px;
447 .#{$prefix}grid-row-collapsed {
448 .#{$prefix}grid-row-expander {
449 @include theme-background-image($theme-name, 'grid/group-expand.gif');
453 .#{$prefix}grid-resize-marker {
458 background-color: #0f0f0f;
461 //column move icons, when moving columns
472 background: no-repeat left top transparent;
476 @include theme-background-image($theme-name, 'grid/col-move-top.gif');
480 @include theme-background-image($theme-name, 'grid/col-move-bottom.gif');
484 .#{$prefix}tbar-page-number {
489 .#{$prefix}grid-group,
490 .#{$prefix}grid-group-body,
491 .#{$prefix}grid-group-hd {
495 .#{$prefix}grid-group-hd {
498 .#{$prefix}grid-cell-inner {
499 padding: 10px 4px 4px 4px;
501 background: $grid-grouped-header-background-color;
503 border-width: $grid-grouped-header-border-width;
504 border-style: $grid-grouped-header-border-style;
505 border-color: $grid-grouped-header-border-color;
511 .#{$prefix}grid-group-title {
512 background: transparent no-repeat 0 -1px;
513 @include theme-background-image($theme-name, 'grid/group-collapse.gif');
515 color: $grid-grouped-title-color;
516 font: $grid-grouped-title-font;
521 .#{$prefix}grid-group-hd-collapsed {
522 .#{$prefix}grid-group-title {
523 @include theme-background-image($theme-name, 'grid/group-expand.gif');
527 .#{$prefix}grid-group-collapsed .#{$prefix}grid-group-body {
531 .#{$prefix}grid-group-collapsed .#{$prefix}grid-group-title {
532 @include theme-background-image($theme-name, 'grid/group-expand.gif');
535 .#{$prefix}group-by-icon {
536 @include theme-background-image($theme-name, 'grid/group-by.gif');
539 .#{$prefix}show-groups-icon {
540 @include theme-background-image($theme-name, 'grid/group-by.gif');
543 .#{$prefix}column-header-checkbox .#{$prefix}column-header-inner {
547 .#{$prefix}grid-cell-special .#{$prefix}grid-cell-inner {
551 .#{$prefix}grid-row-checker,
552 .#{$prefix}column-header-checkbox .#{$prefix}column-header-text {
555 @include theme-background-image($theme-name, 'grid/unchecked.gif');
556 background-position: -1px -1px;
557 background-repeat: no-repeat;
558 background-color: transparent;
561 // Row checker is a div but column header checker is the text span element, so make it display: block
562 // Header checkbox element needs centering
563 .#{$prefix}column-header-checkbox .#{$prefix}column-header-text {
569 @if $include-ie or $compile-all {
570 /* All IE Quirks mode need to squish the header height or the line-height will become too tall */
571 /* IE6 always needs the hack regardless of quirks/strict */
572 .#{$prefix}quirks .#{$prefix}ie, .#{$prefix}ie6 {
573 .#{$prefix}column-header-checkbox .#{$prefix}column-header-inner {
578 /* IE 6, 7 & 9 are 1px too far to the right when centering, drop the margin 1px. */
579 .#{$prefix}ie6, .#{$prefix}ie7, .#{$prefix}ie9 {
580 .#{$prefix}column-header-checkbox .#{$prefix}column-header-text {
586 .#{$prefix}grid-hd-checker-on .#{$prefix}column-header-text {
587 @include theme-background-image($theme-name, 'grid/checked.gif');
590 .#{$prefix}grid-row-checker {
593 background-position: 50% -2px;
596 .#{$prefix}grid-row-selected .#{$prefix}grid-row-checker,
597 .#{$prefix}grid-row-checked .#{$prefix}grid-row-checker {
598 @include theme-background-image($theme-name, 'grid/checked.gif');
602 .#{$prefix}tbar-page-first {
603 background-image: theme-image($theme-name, 'grid/page-first.gif') !important;
606 .#{$prefix}tbar-loading {
607 background-image: theme-image($theme-name, 'grid/refresh.gif') !important;
610 .#{$prefix}tbar-page-last {
611 background-image: theme-image($theme-name, 'grid/page-last.gif') !important;
614 .#{$prefix}tbar-page-next {
615 background-image: theme-image($theme-name, 'grid/page-next.gif') !important;
618 .#{$prefix}tbar-page-prev {
619 background-image: theme-image($theme-name, 'grid/page-prev.gif') !important;
622 .#{$prefix}item-disabled {
623 .#{$prefix}tbar-loading {
624 background-image: theme-image($theme-name, 'grid/refresh-disabled.gif') !important;
627 .#{$prefix}tbar-page-first {
628 background-image: theme-image($theme-name, 'grid/page-first-disabled.gif') !important;
631 .#{$prefix}tbar-page-last {
632 background-image: theme-image($theme-name, 'grid/page-last-disabled.gif') !important;
635 .#{$prefix}tbar-page-next {
636 background-image: theme-image($theme-name, 'grid/page-next-disabled.gif') !important;
639 .#{$prefix}tbar-page-prev {
640 background-image: theme-image($theme-name, 'grid/page-prev-disabled.gif') !important;
645 .xg-hmenu-sort-asc .#{$prefix}menu-item-icon {
646 @include theme-background-image($theme-name, 'grid/hmenu-asc.gif');
649 .xg-hmenu-sort-desc .#{$prefix}menu-item-icon {
650 @include theme-background-image($theme-name, 'grid/hmenu-desc.gif');
653 .xg-hmenu-lock .#{$prefix}menu-item-icon {
654 @include theme-background-image($theme-name, 'grid/hmenu-lock.gif');
657 .xg-hmenu-unlock .#{$prefix}menu-item-icon {
658 @include theme-background-image($theme-name, 'grid/hmenu-unlock.gif');
661 .#{$prefix}group-by-icon {
662 @include theme-background-image($theme-name, 'grid/group-by.gif');
665 .#{$prefix}cols-icon .#{$prefix}menu-item-icon {
666 @include theme-background-image($theme-name, 'grid/columns.gif');
669 .#{$prefix}show-groups-icon {
670 @include theme-background-image($theme-name, 'grid/group-by.gif');
673 // Drag/drop indicator styles
674 .#{$prefix}grid-drop-indicator {
678 background-color: #77BC71;
681 .#{$prefix}grid-drop-indicator-left {
685 @include theme-background-image($theme-name, 'grid/dd-insert-arrow-right.png');
690 .#{$prefix}grid-drop-indicator-right {
694 @include theme-background-image($theme-name, 'grid/dd-insert-arrow-left.png');
701 .#{$prefix}grid-drop-indicator-left {
702 @include theme-background-image($theme-name, 'grid/dd-insert-arrow-right.gif');
705 .#{$prefix}grid-drop-indicator-right {
706 @include theme-background-image($theme-name, 'grid/dd-insert-arrow-left.gif');
711 .#{$prefix}grid-row-editor {
712 position: absolute !important;
715 overflow: visible !important;
717 .#{$prefix}form-field {
718 font: $grid-row-editor-font;
720 .#{$prefix}form-display-field {
721 font: $grid-row-editor-font;
725 .#{$prefix}panel-body {
726 background-color: $grid-row-editor-background-color;
727 border-top: $grid-row-editor-border;
728 border-bottom: $grid-row-editor-border;
732 // Perfect alignment of input text with cell text
733 .#{$prefix}grid-row-editor {
734 // Align input text with text value in cell
735 .#{$prefix}form-text {
739 .#{$prefix}grid-editor {
740 // Align checkboxes input
741 .#{$prefix}form-cb-wrap {
746 .#{$prefix}grid-row-editor-buttons {
747 background-color: $grid-row-editor-background-color;
754 .#{$prefix}strict & {
773 @include theme-background-image($theme-name, 'panel/panel-default-framed-corners.gif');
777 background-position: 0px -16px;
781 background-position: 0px -20px;
790 background-color: $grid-row-editor-border-color;
798 background-color: $grid-row-editor-border-color;
804 background-position: 0px -20px;
809 .#{$prefix}grid-row-editor-errors {