[BUGFIX] Unify table layouts
authorFelix Kopp <felix-source@phorax.com>
Fri, 19 Aug 2011 08:44:45 +0000 (10:44 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 20 Aug 2011 09:04:53 +0000 (11:04 +0200)
Tables are styled with different layouts. These are unified and follow the
standard style (list, page, …). Style was taken from db_list.
These tables are rebrushed:

* file_list: folder and file list
* Scheduler: tasks table and information table
* TS-analyzer: template overview
* Web > Info / pagetree overview
* Move element / position map

Change-Id: Ia563e49fdfc6a06c706d4004454168ee177fdc36
Resolves: #28188
Releases: 4.6
Reviewed-on: http://review.typo3.org/4318
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_positionmap.php
typo3/class.file_list.inc
typo3/sysext/em/classes/extensions/class.tx_em_extensions_list.php
typo3/sysext/scheduler/class.tx_scheduler_module.php
typo3/sysext/t3skin/stylesheets/structure/element_move_element.css
typo3/sysext/t3skin/stylesheets/visual/module_file_list.css
typo3/sysext/t3skin/stylesheets/visual/module_web_info.css
typo3/sysext/tstemplate/ts/index.php
typo3/sysext/tstemplate_analyzer/class.tx_tstemplateanalyzer.php

index b1b456c..e8a927f 100644 (file)
@@ -405,7 +405,7 @@ class t3lib_positionMap {
 
                if (isset($backendLayout['__config']['backend_layout.'])) {
 
-                       $table = '<div class="t3-gridContainer"><table border="0" cellspacing="1" cellpadding="4" id="typo3-ttContentList">';
+                       $table = '<div class="t3-gridContainer"><table border="0" cellspacing="0" cellpadding="0" id="typo3-ttContentList">';
 
                        $colCount = intval($backendLayout['__config']['backend_layout.']['colCount']);
                        $rowCount = intval($backendLayout['__config']['backend_layout.']['rowCount']);
@@ -488,7 +488,7 @@ class t3lib_positionMap {
                        <!--
                                Map of records in columns:
                        -->
-                       <table border="0" cellpadding="0" cellspacing="1" id="typo3-ttContentList">
+                       <table border="0" cellpadding="0" cellspacing="0" id="typo3-ttContentList">
                                <tr>' . $row1 . '</tr>
                                <tr>' . $row2 . '</tr>
                        </table>
index d87fa2f..97a3ff4 100644 (file)
@@ -341,9 +341,8 @@ class fileList extends t3lib_recordList {
                                                        break;
                                                }
                                        }
-                                       $altRows = 'class="' . ($i++ % 2 == 0 ? 'bgColor6' : 'bgColor4') . '"';
 
-                                       $out .= $this->addelement(1, $theIcon, $theData, $altRows);
+                                       $out .= $this->addelement(1, $theIcon, $theData, ' class="file_list_normal"');
                                }
                                $this->eCounter++;
                                $this->dirCounter = $this->eCounter;
@@ -499,13 +498,8 @@ class fileList extends t3lib_recordList {
                                                        break;
                                                }
                                        }
-                                       if ($this->dirCounter % 2 == 0) {
-                                               $altRows = 'class="' . ($i++ % 2 == 0 ? 'bgColor6' : 'bgColor4') . '"';
-                                       } else {
-                                               $altRows = 'class="' . ($i++ % 2 == 0 ? 'bgColor4' : 'bgColor6') . '"';
-                                       }
 
-                                       $out .= $this->addelement(1, $theIcon, $theData, $altRows);
+                                       $out .= $this->addelement(1, $theIcon, $theData, ' class="file_list_normal"');
                                }
                                $this->eCounter++;
                        }
index 8a0b4de..f93ff57 100644 (file)
@@ -387,7 +387,7 @@ class tx_em_Extensions_List {
                $content .= '</form>
 
                        <!-- Loaded Extensions List -->
-                       <table cellspacing="1" class="t3-em-extension-list t3-em-extension-list-loaded">' . implode('', $lines) . '</table>';
+                       <table cellspacing="0" class="t3-em-extension-list t3-em-extension-list-loaded">' . implode('', $lines) . '</table>';
 
                return $content;
        }
@@ -468,7 +468,7 @@ EXTENSION KEYS:
                        $content .= '<label for="lookUp">' . $GLOBALS['LANG']->getLL('look_up') . '</label> <input type="text" id="lookUp" name="lookUp" value="' . htmlspecialchars($this->parentObject->lookUpStr) . '" /><input type="submit" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:search') . '" /></form><br /><br />';
                        $content .= $this->securityHint . '<br /><br />';
 
-                       $content .= '<table cellspacing="1" class="t3-em-extension-list t3-em-extension-list-installed">' . implode('', $lines) . '</table>';
+                       $content .= '<table cellspacing="0" class="t3-em-extension-list t3-em-extension-list-installed">' . implode('', $lines) . '</table>';
 
                        return $content;
                }
@@ -725,7 +725,7 @@ EXTENSION KEYS:
                global $LANG;
                $extList = $this->getInstalledExtensions();
 
-               $content = '<table cellspacing="1" class="t3-em-extension-list t3-em-extension-list-to-update">' .
+               $content = '<table cellspacing="0" class="t3-em-extension-list t3-em-extension-list-to-update">' .
                                '<tr class="t3-row-header">' .
                                '<td></td>' .
                                '<td>' . $LANG->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:tab_mod_name') . '</td>' .
index 205d74f..02ef1aa 100644 (file)
@@ -462,7 +462,7 @@ class tx_scheduler_Module extends t3lib_SCbase {
                } else {
                                // Initialise table layout
                        $tableLayout = array (
-                               'table' => array ('<table border="0" cellspacing="1" cellpadding="2" class="typo3-dblist">', '</table>'),
+                               'table' => array ('<table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist">', '</table>'),
                                '0' => array (
                                        'tr' => array('<tr class="t3-row-header" valign="top">', '</tr>'),
                                        'defCol' => array('<td>', '</td>')
@@ -979,7 +979,7 @@ class tx_scheduler_Module extends t3lib_SCbase {
                                // Initialise table layout
                        $tableLayout = array(
                                'table' => array(
-                                       '<table border="0" cellspacing="1" cellpadding="2" class="typo3-dblist">', '</table>'
+                                       '<table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist">', '</table>'
                                ),
                                '0'     => array(
                                        'tr'     => array('<tr class="t3-row-header">', '</tr>'),
index 2751f98..23f11b1 100644 (file)
@@ -3,10 +3,13 @@ Move Element
 
 - - - - - - - - - - - - - - - - - - - - - */
 
+table#typo3-ttContentList {
+       border: 1px solid #a2aab8;
+       background-color: #fff;
+}
 body#typo3-move-el-php img {
        vertical-align: middle;
 }
-
 body#typo3-move-el-php table#typo3-ttContentList img,
 body#typo3-move-el-php img#c-recIcon {
        margin-right: 4px;
index 49f283d..3f2770f 100644 (file)
@@ -4,6 +4,7 @@ File > List
 - - - - - - - - - - - - - - - - - - - - - */
 
 table#typo3-filelist {
+       background: #fff;
        border: 1px solid #a2aab8;
 }
 
@@ -18,15 +19,15 @@ table#typo3-filelist tr td.c-headLine a {
        color: #fff;
 }
 
-table#typo3-filelist td {
-       border-right: 1px solid #f1f1f1;
+table#typo3-filelist tr.file_list_normal:nth-child(even) td {
+       background-color: #f7f7f7;
 }
 
-table#typo3-filelist td:last-child {
-       border-right: none;
+table#typo3-filelist tr.file_list_normal:nth-child(odd) td {
+       background-color: #ffffff;
 }
 
-table#typo3-filelist tbody tr:hover td {
+table#typo3-filelist tbody tr.file_list_normal:hover td {
        background-color: #dedede;
 }
 
@@ -34,6 +35,7 @@ table#typo3-filelist tr td img {
        text-align: center;
 }
 
+
 table#typo3-filelist tr td div.typo3-clipCtrl,
 table#typo3-filelist tr td div.typo3-editCtrl {
        text-align: center;
index 2ee1c3e..27c265e 100644 (file)
@@ -3,29 +3,27 @@ Web > Info
 
 - - - - - - - - - - - - - - - - - - - - - */
 
+table.typo3-page-pages {
+       background-color: #fff;
+       border: 1px solid #a2aab8;
+}
 table.typo3-page-pages tr td.c-headLine {
        background-color: #abbbb4;
 }
-
 table.typo3-page-sysnote tr td {
        background-color: #d9d5c9;
 }
-
 table.typo3-page-sysnote tr td.c-headLine {
        background-color: #c5c1b5;
 }
-
 table#langTable td.c-blocked {
        background-color: #f6d3cf;
 }
-
 table#langTable td.c-ok {
        background-color: #cdeaca;
 }
-
 table#langTable td.c-fallback {
 }
-
 table#langTable td.c-leftLine {
        border-left: 1px solid #a2aab8;
 }
\ No newline at end of file
index 2fe3ed1..d8e938f 100644 (file)
@@ -134,8 +134,9 @@ class SC_mod_web_ts_index extends t3lib_SCbase {
                        $this->doc->inDocStylesArray[] = '
                                TABLE#typo3-objectBrowser A { text-decoration: none; }
                                TABLE#typo3-objectBrowser .comment { color: maroon; font-weight: bold; }
+                               TABLE#ts-analyzer { border: 1px solid #a2aab8; }
                                TABLE#ts-analyzer tr.t3-row-header { background-color: #A2AAB8; }
-                               TABLE#ts-analyzer tr td {padding: 0 2px;}
+                               TABLE#ts-analyzer tr td {padding: 0 4px;}
                                TABLE#ts-analyzer tr.t3-row-header td { padding: 2px 4px; font-weight:bold; color: #fff; }
                                .tsob-menu label, .tsob-menu-row2 label, .tsob-conditions label {padding: 0 5px; vertical-align: text-top;}
                                .tsob-menu-row2 {margin-top: 10px;}
index 2a108c5..489878c 100644 (file)
@@ -119,7 +119,7 @@ class tx_tstemplateanalyzer extends t3lib_extobjbase {
                $head.= '<td>' . $GLOBALS['LANG']->getLL('nextLevel', TRUE) . '</td>';
                $head.= '</tr>';
                $hierar = implode(array_reverse($GLOBALS['tmpl']->ext_getTemplateHierarchyArr($GLOBALS['tmpl']->hierarchyInfoArr, "", array(), 1)), "");
-               $hierar= '<table id="ts-analyzer" border="0" cellpadding="0" cellspacing="1">' . $head . $hierar . '</table>';
+               $hierar= '<table id="ts-analyzer" border="0" cellpadding="0" cellspacing="0">' . $head . $hierar . '</table>';
 
                $theOutput.=$this->pObj->doc->spacer(5);
                $theOutput.=$this->pObj->doc->section($GLOBALS['LANG']->getLL('templateHierarchy', TRUE), $hierar, 0, 1);