HomeHelpTrac

Changeset 15675 for trunk/templates


Ignore:
Timestamp:
11/15/11 22:06:19 (6 months ago)
Author:
Alexander Trofimov
Message:

Grid - design

Location:
trunk/templates/base
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/css/default.css

    r15674 r15675  
    104104} 
    105105 
     106.bx-def-color-bg-hl { 
     107    background-color: #f8f8ff; 
     108} 
     109 
     110.bx-def-color-bg-active { 
     111    background-color: #ffbb33; 
     112} 
     113 
    106114/* borders */ 
    107115 
  • trunk/templates/base/css/grid.css

    r15674 r15675  
    66 
    77 
    8 .bx-grid-table tr:hover { 
    9     background-color: #eee; 
     8.bx-grid-table-row-trans { 
     9   -webkit-transition:background-color 1s linear; 
     10   -moz-transition:background-color 1s linear; 
     11   -o-transition:background-color 1s linear; 
     12   transition:background-color 1s linear; 
    1013} 
    1114 
    12  
     15.bx-grid-table th, 
    1316.bx-grid-table td {  
    14     padding-top:5px; 
    15     padding-bottom:5px; 
    16     text-align:center; 
     17    padding-left:5px; 
     18    padding-right:5px; 
     19    text-align:left; 
    1720} 
    18 .bx-grid-table th {  
    19     text-align:center; 
     21.bx-grid-table th:first-child, 
     22.bx-grid-table td:first-child { 
     23    padding-left:10px; 
    2024} 
    2125 
     
    3438} 
    3539 
    36 .bx-grid-drag-handle { 
     40div.bx-grid-drag-handle { 
    3741    display:none; 
     42    width:16px; 
     43    height:16px;     
     44   
     45    background-image:url(../images/icons/grid-drag-handle.png);   
     46 
    3847    cursor:move; 
    3948} 
    4049 
    4150 
    42 .bx-grid-gragging-row { 
    43     background-color:white; 
     51.bx-grid-gragging-row {     
     52 
     53    -moz-border-radius: 3px; 
     54    -webkit-border-radius: 3px; 
     55    border-radius: 3px; 
    4456 
    4557    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";  
     
    4961    opacity: 0.9; 
    5062 
    51     -moz-box-shadow: 0px 10px 10px rgba(51, 51, 51, 0.7); 
    52     -webkit-box-shadow: 0px 10px 10px rgba(51, 51, 51, 0.7); 
    53     box-shadow: 0px 10px 10px rgba(51, 51, 51, 0.7);     
     63    -moz-box-shadow: 1px 1px 5px rgba(51, 51, 51, 0.5); 
     64    -webkit-box-shadow: 1px 1px 5px rgba(51, 51, 51, 0.5); 
     65    box-shadow: 1px 1px 5px rgba(51, 51, 51, 0.5);     
    5466} 
    5567 
    56 .bx-grid-drag-placeholder td { 
    57     text-align:left; 
     68.bx-grid-table .bx-grid-drag-placeholder td { 
     69    padding-left:0; 
    5870} 
  • trunk/templates/base/grid.html

    r15674 r15675  
    2323    <div id="__id_cont__"> 
    2424 
    25         <table id="__id_table__" class="bx-grid-table bx-def-margin-bottom bx-def-margin-top"> 
     25        <table id="__id_table__" class="bx-grid-table bx-def-margin-bottom bx-def-margin-top bx-def-border-bottom bx-def-border-top"> 
    2626            <thead> 
    27                 <tr> 
     27                <tr class="bx-def-border-bottom"> 
    2828                    <bx_repeat:row_header> 
    2929                        __header_cell__ 
     
    6969                paginate_get_per_page: '__paginate_get_per_page__', 
    7070                start: __start__, 
    71                 per_page: __per_page__ 
     71                per_page: __per_page__, 
     72                columns: __columns__ 
    7273            }); 
    7374            glGrids.__object__.setSearchInputText ('<bx_text_js:_sys_grid_search />');             
  • trunk/templates/base/scripts/BxBaseGrid.php

    r15674 r15675  
    135135            'start' => $iStart, 
    136136            'per_page' => $iPerPage, 
     137            'columns' => count($this->_aOptions['fields']), 
    137138            'bx_if:actions_bulk' => array ( 
    138139                'condition' => !empty($this->_aOptions['actions_bulk']), 
     
    203204        $sAttr = $this->_convertAttrs( 
    204205            $aField, 'attr_head', 
    205             false, // don't add default classes 
     206            'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 
    206207            isset($aField['width']) ? 'width:' . $aField['width'] : false // add default styles 
    207208        ); 
     
    213214        $sAttr = $this->_convertAttrs( 
    214215            $aField, 'attr_head', 
    215             false, // don't add default classes 
     216            'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 
    216217            isset($aField['width']) ? 'width:' . $aField['width'] : false // add default styles 
    217218        ); 
     
    247248        $sAttr = $this->_convertAttrs( 
    248249            $aField, 'attr_cell', 
    249             'rowhandler', // add default class 
     250            'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 
    250251            isset($aField['width']) ? 'width:' . $aField['width'] : false  // add default styles 
    251252        ); 
     
    256257        $sAttr = $this->_convertAttrs( 
    257258            $aField, 'attr_cell', 
    258             'rowhandler', // add default class 
     259            'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 
    259260            isset($aField['width']) ? 'width:' . $aField['width'] : false  // add default styles 
    260261        ); 
    261         return '<td ' . $sAttr . '><div id="' . $this->_sObject . '_cell_' . $aRow[$this->_aOptions['field_id']] . '" class="bx-grid-drag-handle">&Xi;</div></td>';  
     262        return '<td ' . $sAttr . '><div id="' . $this->_sObject . '_cell_' . $aRow[$this->_aOptions['field_id']] . '" class="bx-grid-drag-handle"></div></td>'; 
    262263    } 
    263264 
     
    265266        $sAttr = $this->_convertAttrs( 
    266267            $aField, 'attr_cell', 
    267             'rowhandler', // add default class 
     268            'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 
    268269            isset($aField['width']) ? 'width:' . $aField['width'] : false  // add default styles 
    269270        ); 
     
    274275        $sAttr = $this->_convertAttrs( 
    275276            $aField, 'attr_cell', 
    276             false, // don't add default classes 
     277            'bx-def-padding-sec-bottom bx-def-padding-sec-top', // add default classes 
    277278            isset($aField['width']) ? 'width:' . $aField['width'] : false // add default styles 
    278279        ); 
Note: See TracChangeset for help on using the changeset viewer.