partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

_grid.scss (27741B)


      1 /**
      2  * Creates base structure for a Grid.
      3  * @member Ext.grid.Panel
      4  */
      5 @mixin extjs-grid {
      6     //main grid view
      7     .#{$prefix}panel {
      8         .#{$prefix}grid-body {
      9             background: $panel-body-background-color;
     10             border-color: $panel-body-border-color;
     11             border-style: $panel-body-border-style;
     12             border-width: 1px;
     13             border-top-color: $grid-header-background-color;
     14         }
     15 
     16         // Hide using visibility so that its available width can be calculated correctly
     17         .#{$prefix}grid-header-ct-hidden {
     18             visibility: hidden;
     19         }
     20     }
     21 
     22     .#{$prefix}grid-empty {
     23         padding: 10px;
     24         color: gray;
     25         font: normal 11px tahoma, arial, helvetica, sans-serif;
     26     }
     27 
     28     .#{$prefix}grid-header-hidden .#{$prefix}grid-body {
     29         border-top-color: $panel-body-border-color !important;
     30     }
     31 
     32     .#{$prefix}grid-view {
     33         overflow: hidden;
     34 
     35         position: relative;
     36     }
     37 
     38     .#{$prefix}grid-table {
     39         table-layout: fixed;
     40         border-collapse: separate;
     41     }
     42 
     43     // Tree with a default single column is auto width
     44     // Override any inline width style set by the widget itself (through its ColumnModel) to force it to be auto width.
     45     .#{$prefix}autowidth-table table.#{$prefix}grid-table {
     46         table-layout: auto;
     47         width: auto!important;
     48     }
     49 
     50     .#{$prefix}grid-row .#{$prefix}grid-table {
     51         border-collapse: collapse;
     52     }
     53 
     54     .#{$prefix}grid-locked .#{$prefix}grid-inner-locked {
     55         border-width: 0 1px 0 0 !important;
     56         border-style: solid;
     57     }
     58 
     59     .#{$prefix}grid-header-ct {
     60         cursor: default;
     61         zoom: 1;
     62         padding: 0;
     63         border: 1px solid $panel-body-border-color;
     64 
     65         // Body border provided by headerCt only when in accordion layout.
     66         border-bottom-color: $grid-header-background-color;
     67 
     68         @if $supports-gradients or $compile-all {
     69             @include background-gradient($grid-header-background-color, $grid-header-background-gradient);
     70         }
     71     }
     72 
     73     .#{$prefix}accordion-item .#{$prefix}grid-header-ct {
     74         border-width: 0 0 1px 0!important;
     75     }
     76 
     77     .#{$prefix}column-header {
     78         padding: 0;
     79         position: absolute;
     80         overflow: hidden;
     81 
     82         border-right: 1px solid $grid-header-background-color;
     83         border-left: 0 none;
     84         border-top: 0 none;
     85         border-bottom: 0 none;
     86 
     87         text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
     88 
     89         @if $grid-header-color {
     90             color: $grid-header-color;
     91         }
     92         font: normal ceil($font-size * .9) $font-family;
     93 
     94         @if $supports-gradients or $compile-all {
     95             @include background-gradient($grid-header-background-color, $grid-header-background-gradient);
     96         }
     97     }
     98 
     99     .#{$prefix}group-header {
    100         padding: 0;
    101         border-left-width: 0;
    102     }
    103     .#{$prefix}group-sub-header {
    104         background: transparent;
    105         border-top: 1px solid $grid-header-background-color;
    106         border-left-width: 0;
    107     }
    108 
    109     .#{$prefix}column-header-inner {
    110         zoom: 1;
    111         position: relative;
    112         white-space: nowrap;
    113         line-height: $grid-header-line-height;
    114         padding: $grid-header-padding;
    115 
    116         .#{$prefix}column-header-text {
    117             white-space: nowrap;
    118         }
    119     }
    120 
    121     .#{$prefix}column-header-over,
    122     .#{$prefix}column-header-sort-ASC,
    123     .#{$prefix}column-header-sort-DESC {
    124         border-left-color: $grid-header-over-border-color;
    125         border-right-color: $grid-header-over-border-color;
    126 
    127         @if $supports-gradients or $compile-all {
    128             @include background-gradient($grid-header-over-background-color, $grid-header-over-background-gradient);
    129         }
    130     }
    131 
    132     @if not $supports-gradients or $compile-all {
    133         .#{$prefix}nlg {
    134             .#{$prefix}grid-header-ct,
    135             .#{$prefix}column-header {
    136                 background: repeat-x 0 top;
    137                 background-image: theme-background-image($theme-name, 'grid/column-header-bg.gif');
    138             }
    139 
    140             .#{$prefix}column-header-over,
    141             .#{$prefix}column-header-sort-ASC,
    142             .#{$prefix}column-header-sort-DESC {
    143                 background: #ebf3fd repeat-x 0 top;
    144                 background-image: theme-background-image($theme-name, 'grid/column-header-over-bg.gif');
    145             }
    146         }
    147     }
    148 
    149     .#{$prefix}column-header-trigger {
    150         display: none;
    151         height: 100%;
    152         width: $grid-header-trigger-width;
    153         background: no-repeat left center;
    154         background-color: #c3daf9;
    155         background-image: theme-background-image($theme-name, 'grid/grid3-hd-btn.gif');
    156         position: absolute;
    157         right: 0;
    158         top: 0;
    159         z-index: 2;
    160         cursor: pointer;
    161     }
    162 
    163     .#{$prefix}column-header-over, .#{$prefix}column-header-open {
    164         .#{$prefix}column-header-trigger {
    165             display: block;
    166         }
    167     }
    168 
    169     .#{$prefix}column-header-align-right {
    170         text-align: right;
    171 
    172         .#{$prefix}column-header-text {
    173             padding-right: 0.5ex;
    174             margin-right: 6px;
    175         }
    176     }
    177     .#{$prefix}column-header-align-center {
    178         text-align: center;
    179     }
    180     .#{$prefix}column-header-align-left {
    181         text-align: left;
    182     }
    183 
    184     // Sort direction indicator is a background of the text span.
    185     .#{$prefix}column-header-sort-ASC .#{$prefix}column-header-text {
    186         padding-right: 16px;
    187         background: no-repeat right 2px;
    188         background-image: theme-background-image($theme-name, 'grid/sort_asc.png');
    189     }
    190     .#{$prefix}column-header-sort-DESC .#{$prefix}column-header-text {
    191         padding-right: 16px;
    192         background: no-repeat right 2px;
    193         background-image: theme-background-image($theme-name, 'grid/sort_desc.png');
    194     }
    195 
    196     //grid rows
    197     .#{$prefix}grid-row {
    198         vertical-align: top;
    199         .#{$prefix}grid-cell {
    200             @if $grid-row-cell-color {
    201                 color: $grid-row-cell-color;
    202             }
    203             font: $grid-row-cell-font;
    204             background-color: $grid-row-cell-background;
    205             border-color: $grid-row-cell-border-color;
    206             border-style: $grid-row-cell-border-style;
    207             border-top-color: lighten($grid-row-cell-border-color, 5);
    208             border-width: 0;
    209         }
    210     }
    211 
    212     .#{$prefix}grid-with-row-lines .#{$prefix}grid-cell {
    213         border-width: $grid-row-cell-border-width;
    214     }
    215 
    216     .#{$prefix}grid-rowwrap-div {
    217         border-width: $grid-row-wrap-border-width;
    218         border-color: $grid-row-wrap-border-color;
    219         border-style: $grid-row-wrap-border-style;
    220         border-top-color: lighten($grid-row-wrap-border-color, 5);
    221 
    222         overflow: hidden;
    223     }
    224 
    225     .#{$prefix}grid-row-alt .#{$prefix}grid-cell,
    226     .#{$prefix}grid-row-alt .#{$prefix}grid-rowwrap-div {
    227         background-color: $grid-row-cell-alt-background;
    228     }
    229 
    230     .#{$prefix}grid-row-over .#{$prefix}grid-cell,
    231     .#{$prefix}grid-row-over .#{$prefix}grid-rowwrap-div {
    232         border-color: $grid-row-cell-over-border-color;
    233 
    234  		@if $supports-gradients or $compile-all {
    235             @include background-gradient($grid-row-cell-over-background-color, $grid-row-cell-over-background-gradient);
    236         }
    237         
    238         background-color: $grid-row-cell-over-background-color;
    239     }
    240 
    241     .#{$prefix}grid-row-focused .#{$prefix}grid-cell,
    242     .#{$prefix}grid-row-focused .#{$prefix}grid-rowwrap-div {
    243         border-color: $grid-row-cell-focus-border-color;
    244 
    245         background-color: $grid-row-cell-focus-background-color;
    246     }
    247 
    248     .#{$prefix}grid-row-selected .#{$prefix}grid-cell,
    249     .#{$prefix}grid-row-selected .#{$prefix}grid-rowwrap-div {
    250         border-style: $grid-row-cell-selected-border-style;
    251         border-color: $grid-row-cell-selected-border-color;
    252 
    253 		color: white;
    254 		
    255         background-color: $grid-row-cell-selected-background-color !important;
    256         
    257         @if $supports-gradients or $compile-all {
    258             @include background-gradient($grid-row-cell-selected-background-color, $grid-row-cell-selected-background-gradient);
    259         }
    260     }
    261 
    262     .#{$prefix}grid-rowwrap-div {
    263         .#{$prefix}grid-cell,
    264         .#{$prefix}grid-cell-inner {
    265             border-width: 0;
    266 
    267             background: transparent;
    268         }
    269     }
    270 
    271     .#{$prefix}grid-row-body-hidden {
    272         display: none;
    273     }
    274 
    275     .#{$prefix}grid-rowbody {
    276         font: $grid-row-body-font;
    277 
    278         padding: $grid-row-body-padding;
    279 
    280         p {
    281             margin: 5px 5px 10px 5px;
    282         }
    283     }
    284 
    285     //grid cells
    286     .#{$prefix}grid-cell {
    287         overflow: hidden;
    288     }
    289 
    290     .#{$prefix}grid-cell-inner {
    291         overflow: hidden;
    292 
    293         -o-text-overflow: ellipsis;
    294         text-overflow: ellipsis;
    295 
    296         padding: $grid-cell-inner-padding-top $grid-cell-inner-padding-horizontal $grid-cell-inner-padding-bottom;
    297 
    298         white-space: nowrap;
    299     }
    300 
    301     .#{$prefix}grid-with-row-lines .#{$prefix}grid-cell-inner {
    302         line-height: $grid-row-cell-line-height - 2;
    303         padding-bottom: $grid-cell-inner-padding-bottom + 1;
    304     }
    305 
    306     // Action columns with a standard, 16x16 icon require less padding
    307     .#{$prefix}action-col-cell .#{$prefix}grid-cell-inner {
    308         line-height: 0;
    309         padding: 2px;
    310     }
    311 
    312     .#{$prefix}action-col-cell .#{$prefix}item-disabled {
    313         @include opacity(0.3);
    314     }
    315 
    316     .#{$prefix}grid-with-row-lines .#{$prefix}action-col-cell .#{$prefix}grid-cell-inner {
    317         padding-top: 1px;
    318     }
    319 
    320     .#{$prefix}grid-row .#{$prefix}grid-cell-special {
    321         padding: 0;
    322         border-right: 1px solid $grid-cell-with-col-lines-border-color;
    323         @include background-gradient(#f6f6f6, 'grid-cell-special');
    324     }
    325 
    326     .#{$prefix}grid-row .#{$prefix}grid-cell-row-checker {
    327         vertical-align: middle;
    328     }
    329 
    330     /*
    331     IE6-8 have issues with shrinking the TR to 0px (even w/line-height=0), so we
    332     use an IE-specific trick to make the row disappear. We cannot do this on any
    333     other browser, because it is not a non-standard thing to do and those other
    334     browsers will do whacky things with it.
    335     */
    336 
    337     .#{$prefix}ie6,
    338     .#{$prefix}ie7,
    339     .#{$prefix}quirks .#{$prefix}ie8 {
    340         .#{$prefix}grid-header-row {
    341             position: absolute;
    342         }
    343     }
    344 
    345     .#{$prefix}grid-row-selected .#{$prefix}grid-cell-special {
    346         border-right: 1px solid adjust-color($base-color, $hue: -0.175deg, $saturation: 25.296%, $lightness: -2.549%);
    347 
    348         @include background-gradient($grid-row-cell-selected-background-color, 'grid-cell-special');
    349     }
    350 
    351     .#{$prefix}grid-dirty-cell {
    352         background-image: theme-background-image($theme-name, 'grid/dirty.gif');
    353         background-position: 0 0;
    354         background-repeat: no-repeat;
    355     }
    356 
    357     .#{$prefix}grid-cell-selected {
    358         background-color: #B8CFEE !important;
    359     }
    360 
    361     @if not $supports-gradients or $compile-all {
    362         .#{$prefix}nlg {
    363             .#{$prefix}grid-cell-special {
    364                 background-repeat: repeat-y;
    365                 background-position: top right;
    366             }
    367 
    368             .#{$prefix}grid-row .#{$prefix}grid-cell-special,
    369             .#{$prefix}grid-row-over .#{$prefix}grid-cell-special {
    370                 background-image: theme-background-image($theme-name, 'grid/cell-special-bg.gif');
    371 
    372             }
    373 
    374             .#{$prefix}grid-row-focused .#{$prefix}grid-cell-special,
    375             .#{$prefix}grid-row-selected .#{$prefix}grid-cell-special {
    376                 background-image: theme-background-image($theme-name, 'grid/cell-special-selected-bg.gif');
    377             }
    378         }
    379     }
    380 
    381     .#{$prefix}grid-with-col-lines .#{$prefix}grid-cell {
    382         padding-right: 0;
    383         border-right: 1px solid $grid-cell-with-col-lines-border-color;
    384     }
    385 
    386     .#{$prefix}property-grid {
    387         .#{$prefix}grid-row .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner,
    388         .#{$prefix}grid-row-over .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner {
    389             padding-left: 12px;
    390             background-image: theme-background-image($theme-name, 'grid/property-cell-bg.gif');
    391             background-repeat: no-repeat;
    392             background-position: -16px 2px;
    393         }
    394     }
    395 
    396     .#{$prefix}grid-with-row-lines.#{$prefix}property-grid {
    397         .#{$prefix}grid-row .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner,
    398         .#{$prefix}grid-row-over .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner {
    399             background-position: -16px 1px;
    400         }
    401     }
    402 
    403     @if $include-ie {
    404         .#{$prefix}quirks .#{$prefix}ie .#{$prefix}grid-row .#{$prefix}grid-property-name .#{$prefix}grid-cell-inner {
    405             background-position: -16px 2px;
    406         }
    407     }
    408 
    409     .#{$prefix}unselectable {
    410         @include no-select;
    411     }
    412 
    413     .#{$prefix}grid-row-body-hidden {
    414         display: none;
    415     }
    416 
    417     .#{$prefix}grid-group-collapsed {
    418         display: none;
    419     }
    420 
    421     //grid expander
    422     .#{$prefix}grid-view {
    423         .#{$prefix}grid-td-expander {
    424             vertical-align: top;
    425         }
    426     }
    427 
    428     .#{$prefix}grid-td-expander {
    429         background: repeat-y right transparent;
    430     }
    431 
    432     .#{$prefix}grid-view {
    433         .#{$prefix}grid-td-expander {
    434             .#{$prefix}grid-cell-inner {
    435                 padding: 0 !important;
    436             }
    437         }
    438     }
    439 
    440     .#{$prefix}grid-row-expander {
    441         background-image: theme-background-image($theme-name, 'grid/group-collapse.gif');
    442         background-color: transparent;
    443 
    444         width: 9px;
    445         height: 13px;
    446 
    447         margin-left: 3px;
    448 
    449         background-repeat: no-repeat;
    450         background-position: 0 -2px;
    451     }
    452 
    453     .#{$prefix}grid-row-collapsed {
    454         .#{$prefix}grid-row-expander {
    455             background-image: theme-background-image($theme-name, 'grid/group-expand.gif');
    456         }
    457     }
    458 
    459     .#{$prefix}grid-resize-marker {
    460         position: absolute;
    461         z-index: 5;
    462         top: 0;
    463         width: 1px;
    464         background-color: #0f0f0f;
    465     }
    466 
    467     //column move icons, when moving columns
    468     .col-move-top,
    469     .col-move-bottom {
    470         width: 9px;
    471         height: 9px;
    472         position: absolute;
    473         top: 0;
    474         line-height: 0;
    475         font-size: 0;
    476         overflow: hidden;
    477         z-index: 20000;
    478         background: no-repeat left top transparent;
    479     }
    480 
    481     .col-move-top {
    482         background-image: theme-background-image($theme-name, 'grid/col-move-top.gif');
    483     }
    484 
    485     .col-move-bottom {
    486         background-image: theme-background-image($theme-name, 'grid/col-move-bottom.gif');
    487     }
    488 
    489     //pading toolbar
    490     .#{$prefix}tbar-page-number {
    491         width: 30px;
    492     }
    493 
    494     //grouped grid
    495     .#{$prefix}grid-group,
    496     .#{$prefix}grid-group-body,
    497     .#{$prefix}grid-group-hd {
    498         zoom: 1;
    499     }
    500 
    501     .#{$prefix}grid-group-hd {
    502         padding-top: 6px;
    503 
    504         .#{$prefix}grid-cell-inner {
    505             padding: 10px 4px 4px 4px;
    506 
    507             background: $grid-grouped-header-background-color;
    508 
    509             border-width: $grid-grouped-header-border-width;
    510             border-style: $grid-grouped-header-border-style;
    511             border-color: $grid-grouped-header-border-color;
    512 
    513             cursor: pointer;
    514         }
    515     }
    516 
    517     .#{$prefix}grid-group-hd-collapsible {
    518         .#{$prefix}grid-group-title {
    519             background: transparent no-repeat 0 -1px;
    520             background-image: theme-background-image($theme-name, 'grid/group-collapse.gif');
    521             padding: 0 0 0 14px;
    522         }
    523     }
    524 
    525     .#{$prefix}grid-group-title {
    526         color: $grid-grouped-title-color;
    527         font: $grid-grouped-title-font;
    528     }
    529 
    530     .#{$prefix}grid-group-hd-collapsed {
    531         .#{$prefix}grid-group-title {
    532             background-image: theme-background-image($theme-name, 'grid/group-expand.gif');
    533         }
    534     }
    535 
    536     .#{$prefix}grid-group-collapsed .#{$prefix}grid-group-body {
    537         display: none;
    538     }
    539 
    540     .#{$prefix}grid-group-collapsed .#{$prefix}grid-group-title {
    541         background-image: theme-background-image($theme-name, 'grid/group-expand.gif');
    542     }
    543 
    544     .#{$prefix}group-by-icon {
    545         background-image: theme-background-image($theme-name, 'grid/group-by.gif');
    546     }
    547 
    548     .#{$prefix}show-groups-icon {
    549         background-image: theme-background-image($theme-name, 'grid/group-by.gif');
    550     }
    551 
    552     .#{$prefix}column-header-checkbox .#{$prefix}column-header-inner {
    553         padding: 0;
    554     }
    555 
    556     .#{$prefix}grid-cell-special .#{$prefix}grid-cell-inner {
    557         padding-left: 4px;
    558         padding-right: 4px;
    559     }
    560 
    561     .#{$prefix}grid-row-checker,
    562     .#{$prefix}column-header-checkbox .#{$prefix}column-header-text {
    563         height: 14px;
    564         width: 14px;
    565         line-height: 0;
    566         background-image: theme-background-image($theme-name, 'grid/unchecked.gif');
    567         background-position: -1px -1px;
    568         background-repeat: no-repeat;
    569         background-color: transparent;
    570     }
    571 
    572     // Row checker is a div but column header checker is the text span element, so make it display: block
    573     // Header checkbox element needs centering
    574     .#{$prefix}column-header-checkbox .#{$prefix}column-header-text {
    575         display: block;
    576         margin: 0 5px;
    577     }
    578 
    579     @if $include-ie or $compile-all {
    580         /* IE6, IE7, and all IE Quirks mode need line-height to be the same as checkbox height or the header/row height will be too tall */
    581         .#{$prefix}quirks .#{$prefix}ie, .#{$prefix}ie7m {
    582             .#{$prefix}grid-row-checker,
    583             .#{$prefix}column-header-checkbox .#{$prefix}column-header-text {
    584                 margin-left: 3px;
    585             }
    586         }
    587     }
    588 
    589     .#{$prefix}grid-hd-checker-on .#{$prefix}column-header-text {
    590         background-image: theme-background-image($theme-name, 'grid/checked.gif');
    591     }
    592 
    593     .#{$prefix}grid-cell-row-checker .#{$prefix}grid-cell-inner {
    594         padding-top: 4px;
    595         padding-bottom: 2px;
    596         line-height: $grid-row-height - 6;
    597     }
    598     .#{$prefix}grid-with-row-lines .#{$prefix}grid-cell-row-checker .#{$prefix}grid-cell-inner {
    599         padding-top: 3px;
    600     }
    601     .#{$prefix}grid-row-checker {
    602         margin-left: 1px;
    603 
    604         background-position: 50% -2px;
    605     }
    606 
    607     .#{$prefix}grid-row-selected .#{$prefix}grid-row-checker,
    608     .#{$prefix}grid-row-checked .#{$prefix}grid-row-checker {
    609         background-image: theme-background-image($theme-name, 'grid/checked.gif');
    610     }
    611 
    612     //grid icons
    613     .#{$prefix}tbar-page-first {
    614         background-image: theme-background-image($theme-name, 'grid/page-first.gif') !important;
    615     }
    616 
    617     .#{$prefix}tbar-loading {
    618         background-image: theme-background-image($theme-name, 'grid/refresh.gif') !important;
    619     }
    620 
    621     .#{$prefix}tbar-page-last {
    622         background-image: theme-background-image($theme-name, 'grid/page-last.gif') !important;
    623     }
    624 
    625     .#{$prefix}tbar-page-next {
    626         background-image: theme-background-image($theme-name, 'grid/page-next.gif') !important;
    627     }
    628 
    629     .#{$prefix}tbar-page-prev {
    630         background-image: theme-background-image($theme-name, 'grid/page-prev.gif') !important;
    631     }
    632 
    633     .#{$prefix}item-disabled {
    634         .#{$prefix}tbar-loading {
    635             background-image: theme-background-image($theme-name, 'grid/refresh-disabled.gif') !important;
    636         }
    637 
    638         .#{$prefix}tbar-page-first {
    639             background-image: theme-background-image($theme-name, 'grid/page-first-disabled.gif') !important;
    640         }
    641 
    642         .#{$prefix}tbar-page-last {
    643             background-image: theme-background-image($theme-name, 'grid/page-last-disabled.gif') !important;
    644         }
    645 
    646         .#{$prefix}tbar-page-next {
    647             background-image: theme-background-image($theme-name, 'grid/page-next-disabled.gif') !important;
    648         }
    649 
    650         .#{$prefix}tbar-page-prev {
    651             background-image: theme-background-image($theme-name, 'grid/page-prev-disabled.gif') !important;
    652         }
    653     }
    654 
    655     //menu icons
    656     .#{$prefix}hmenu-sort-asc .#{$prefix}menu-item-icon {
    657         background-image: theme-background-image($theme-name, 'grid/hmenu-asc.gif');
    658     }
    659 
    660     .#{$prefix}hmenu-sort-desc .#{$prefix}menu-item-icon {
    661         background-image: theme-background-image($theme-name, 'grid/hmenu-desc.gif');
    662     }
    663 
    664     .#{$prefix}hmenu-lock .#{$prefix}menu-item-icon {
    665         background-image: theme-background-image($theme-name, 'grid/hmenu-lock.gif');
    666     }
    667 
    668     .#{$prefix}hmenu-unlock .#{$prefix}menu-item-icon {
    669         background-image: theme-background-image($theme-name, 'grid/hmenu-unlock.gif');
    670     }
    671 
    672     .#{$prefix}group-by-icon {
    673         background-image: theme-background-image($theme-name, 'grid/group-by.gif');
    674     }
    675 
    676     .#{$prefix}cols-icon .#{$prefix}menu-item-icon {
    677         background-image: theme-background-image($theme-name, 'grid/columns.gif');
    678     }
    679 
    680     .#{$prefix}show-groups-icon {
    681         background-image: theme-background-image($theme-name, 'grid/group-by.gif');
    682     }
    683 
    684     // Drag/drop indicator styles
    685     .#{$prefix}grid-drop-indicator {
    686         position: absolute;
    687         height: 1px;
    688         line-height: 0px;
    689         background-color: #77BC71;
    690         overflow: visible;
    691 
    692         .#{$prefix}grid-drop-indicator-left {
    693             position: absolute;
    694             top: -8px;
    695             left: -12px;
    696             background-image: theme-background-image($theme-name, 'grid/dd-insert-arrow-right.png');
    697             height: 16px;
    698             width: 16px;
    699         }
    700 
    701         .#{$prefix}grid-drop-indicator-right {
    702             position: absolute;
    703             top: -8px;
    704             right: -11px;
    705             background-image: theme-background-image($theme-name, 'grid/dd-insert-arrow-left.png');
    706             height: 16px;
    707             width: 16px;
    708         }
    709     }
    710 
    711     .#{$prefix}ie6 {
    712         .#{$prefix}grid-drop-indicator-left {
    713             background-image: theme-background-image($theme-name, 'grid/dd-insert-arrow-right.gif');
    714         }
    715 
    716         .#{$prefix}grid-drop-indicator-right {
    717             background-image: theme-background-image($theme-name, 'grid/dd-insert-arrow-left.gif');
    718         }
    719     }
    720 
    721     // Cell Editor
    722     .#{$prefix}grid-editor {
    723         // Position editor text over underlying grid cell text
    724         .#{$prefix}form-text {
    725             padding: 0 $grid-cell-editor-field-padding-horizontal;
    726         }
    727         .#{$prefix}form-cb-wrap {
    728             padding-top: $grid-cell-editor-checkbox-padding-top;
    729         }
    730     }
    731 
    732     // Row Editor
    733     .#{$prefix}grid-row-editor {
    734         position: absolute !important;
    735         z-index: 1;
    736         zoom: 1;
    737         overflow: visible !important;
    738 
    739         .#{$prefix}form-text {
    740             padding: 0 $grid-row-editor-field-padding-horizontal;
    741         }
    742         .#{$prefix}form-cb-wrap {
    743             padding-top: $grid-row-editor-cb-wrap-padding-top;
    744         }
    745         .#{$prefix}form-checkbox {
    746             margin-left: $grid-row-editor-checkbox-margin-left;
    747         }
    748         .#{$prefix}form-display-field {
    749             font: $grid-editor-font;
    750             padding-top: 0;
    751             padding-left: $grid-row-editor-field-padding-horizontal;
    752         }
    753 
    754         .#{$prefix}panel-body {
    755             background-color: $grid-row-editor-background-color;
    756             border-top: $grid-row-editor-border;
    757             border-bottom: $grid-row-editor-border;
    758         }
    759     }
    760 
    761     // Row/Cell Editor Shared Styles
    762     .#{$prefix}grid-editor, .#{$prefix}grid-row-editor {
    763         // Align checkbox input
    764         .#{$prefix}form-cb-wrap {
    765             text-align: center;
    766         }
    767         .#{$prefix}form-trigger {
    768             height: $grid-row-height - $form-field-border-width;
    769         }
    770         .#{$prefix}form-trigger-wrap {
    771             .#{$prefix}form-spinner-up, .#{$prefix}form-spinner-down {
    772                 background-image: theme-background-image($theme-name, 'form/spinner-small.gif');
    773                 height: 10px !important;
    774             }
    775         }
    776     }
    777     .#{$prefix}grid-editor, .#{$prefix}grid-row-editor {
    778         .#{$prefix}form-text {
    779             font: $grid-editor-font;
    780             height: $grid-row-height - 2;
    781         }
    782     }
    783 
    784     .#{$prefix}border-box .#{$prefix}grid-editor,
    785     .#{$prefix}border-box .#{$prefix}grid-row-editor {
    786         .#{$prefix}form-trigger {
    787             height: $grid-row-height;
    788         }
    789         .#{$prefix}form-text {
    790             height: $grid-row-height;
    791             padding-bottom: 1px; // fix for firefox/opera since they ignore line-height on inputs
    792         }
    793     }
    794 
    795     @if $include-ie {
    796         .#{$prefix}ie {
    797             .#{$prefix}grid-editor .#{$prefix}form-text {
    798                 padding-left: $grid-cell-editor-field-padding-horizontal + 1;
    799             }
    800             .#{$prefix}grid-row-editor .#{$prefix}form-text {
    801                 padding-left: $grid-row-editor-field-padding-horizontal + 1;
    802             }
    803         }
    804         .#{$prefix}ie8m {
    805             .#{$prefix}grid-editor .#{$prefix}form-text,
    806             .#{$prefix}grid-row-editor .#{$prefix}form-text {
    807                 padding-top: 1px;
    808             }
    809         }
    810         .#{$prefix}strict .#{$prefix}ie6,
    811         .#{$prefix}strict .#{$prefix}ie7 {
    812             .#{$prefix}grid-editor .#{$prefix}form-text,
    813             .#{$prefix}grid-row-editor .#{$prefix}form-text {
    814                 height: $grid-row-height - ($form-field-border-width * 3);
    815             }
    816         }
    817         .#{$prefix}quirks .#{$prefix}ie9 {
    818             .#{$prefix}grid-editor, .#{$prefix}grid-row-editor {
    819                 .#{$prefix}form-text {
    820                     line-height: $grid-editor-line-height + 2;
    821                 }
    822             }
    823         }
    824     }
    825 
    826     @if $include-opera {
    827         .#{$prefix}opera {
    828             .#{$prefix}grid-editor .#{$prefix}form-text {
    829                 padding-left: $grid-cell-editor-field-padding-horizontal + 1;
    830             }
    831             .#{$prefix}grid-row-editor .#{$prefix}form-text {
    832                 padding-left: $grid-row-editor-field-padding-horizontal + 1;
    833             }
    834         }
    835     }
    836 
    837 
    838     .#{$prefix}grid-row-editor-buttons {
    839         background-color: $grid-row-editor-background-color;
    840         position: absolute;
    841         bottom: -31px;
    842         padding: 4px;
    843         height: 32px;
    844 
    845         .#{$prefix}strict .#{$prefix}ie7m & {
    846             width: 192px;
    847             height: 24px;
    848         }
    849     }
    850 
    851     .#{$prefix}grid-row-editor-buttons-ml,
    852     .#{$prefix}grid-row-editor-buttons-mr,
    853     .#{$prefix}grid-row-editor-buttons-bl,
    854     .#{$prefix}grid-row-editor-buttons-br,
    855     .#{$prefix}grid-row-editor-buttons-bc {
    856         position: absolute;
    857         overflow: hidden;
    858     }
    859 
    860     .#{$prefix}grid-row-editor-buttons-bl,
    861     .#{$prefix}grid-row-editor-buttons-br {
    862         width: 4px;
    863         height: 4px;
    864         bottom: 0px;
    865         background-image: theme-background-image($theme-name, 'panel/panel-default-framed-corners.gif');
    866     }
    867     .#{$prefix}grid-row-editor-buttons-bl {
    868         left: 0px;
    869         background-position: 0px -16px;
    870     }
    871     .#{$prefix}grid-row-editor-buttons-br {
    872         right: 0px;
    873         background-position: 0px -20px;
    874     }
    875 
    876     .#{$prefix}grid-row-editor-buttons-bc {
    877         position: absolute;
    878         left: 4px;
    879         bottom: 0px;
    880         width: 192px;
    881         height: 1px;
    882         background-color: $grid-row-editor-border-color;
    883     }
    884 
    885     .#{$prefix}grid-row-editor-buttons-ml,
    886     .#{$prefix}grid-row-editor-buttons-mr {
    887         height: 27px;
    888         width: 1px;
    889         top: 1px;
    890         background-color: $grid-row-editor-border-color;
    891     }
    892     .#{$prefix}grid-row-editor-buttons-ml {
    893         left: 0px
    894     }
    895     .#{$prefix}grid-row-editor-buttons-mr {
    896         background-position: 0px -20px;
    897         right: 0px;
    898     }
    899 
    900     .#{$prefix}grid-row-editor-errors {
    901         ul {
    902             margin-left: 5px;
    903         }
    904         li {
    905             list-style: disc;
    906             margin-left: 15px;
    907         }
    908     }
    909 }