Commit 0d9a541e authored by Benjamin Kott's avatar Benjamin Kott Committed by Susanne Moog
Browse files

[TASK] Remove usage of deprecated CSS classes bgColorX

Releases: master
Resolves: #75554
Change-Id: Id9f971a36b3b8d91e7e80ec072370276551b1891
Reviewed-on: https://review.typo3.org/47631

Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Reviewed-by: default avatarSusanne Moog <typo3@susannemoog.de>
Tested-by: default avatarSusanne Moog <typo3@susannemoog.de>
parent 5cf26f1a
......@@ -14,34 +14,6 @@
}
//
// Background color classes
//
.bgColor-20 {
background-color: #e3dfdb;
}
.bgColor2 {
background-color: #585858;
color: #ffffff;
}
.bgColor3 {
background-color: #f6f2e6;
}
.bgColor3-20 {
background-color: #f7f7f7;
}
.bgColor4 {
background-color: #f1f1f1;
color: #212424;
}
.bgColor4-20 {
background-color: #f8f9fa;
}
.bgColor5 {
background-color: #9b9b9b;
}
//
// Docheader
//
......
......@@ -135,8 +135,4 @@ body#ext-rte-app-rte-select-image-php {
a {
text-decoration: none;
}
table tr td table tr.bgColor4 td a {
text-decoration: underline;
}
}
......@@ -402,7 +402,6 @@ class Clipboard
foreach ($this->clipData[$pad]['el'] as $k => $v) {
if ($v) {
list($table, $uid) = explode('|', $k);
$bgColClass = $table == '_FILE' && $this->fileMode || $table != '_FILE' && !$this->fileMode ? 'bgColor4-20' : 'bgColor4';
// Rendering files/directories on the clipboard
if ($table == '_FILE') {
$fileObject = ResourceFactory::getInstance()->retrieveFileOrFolderObject($v);
......@@ -450,7 +449,7 @@ class Clipboard
</div>
</td>
</tr>';
$localizationData = $this->getLocalizations($table, $rec, $bgColClass, $pad);
$localizationData = $this->getLocalizations($table, $rec, '', $pad);
if ($localizationData) {
$lines[] = $localizationData;
}
......
......@@ -733,8 +733,6 @@ class ExtendedTemplateService extends TemplateService
$pointer--;
$row = $this->hierarchyInfo[$pointer];
$depthDataArr[$row['templateID']] = $row;
$depthDataArr[$row['templateID']]['bgcolor_setup'] = isset($this->clearList_setup_temp[$row['templateID']]) ? ' class="bgColor5"' : '';
$depthDataArr[$row['templateID']]['bgcolor_const'] = isset($this->clearList_const_temp[$row['templateID']]) ? ' class="bgColor5"' : '';
unset($this->clearList_setup_temp[$row['templateID']]);
unset($this->clearList_const_temp[$row['templateID']]);
$this->templateTitles[$row['templateID']] = $row['title'];
......
......@@ -211,7 +211,7 @@ function updateQryForm(s) {
/*]]>*/
</script>
<table>
<tr class="tableheader bgColor5"><th colspan="2">Easy SQL check</th></tr>
<tr class="tableheader"><th colspan="2">Easy SQL check</th></tr>
<tr><td colspan="2">
<select name="tx_dbal[QUERY]"size="1" onchange="updateQryForm(this.options[this.selectedIndex].value)">
<option value="SELECT" ' . ($input['QUERY'] === 'SELECT' ? 'selected="selected"' : '') . '>SELECT</option>
......@@ -242,7 +242,7 @@ updateQryForm(\'' . $input['QUERY'] . '\');
/*]]>*/
</script>
';
$out .= '<tr id="tx-dbal-result" class="bgColor4"><th>Result:</th><td>';
$out .= '<tr id="tx-dbal-result"><th>Result:</th><td>';
switch ($input['QUERY']) {
case 'SELECT':
$qry = $this->getDatabaseConnection()->SELECTquery($input['FIELDS'], $input['FROM'], $input['WHERE'], $input['GROUP'], $input['ORDER'], $input['LIMIT']);
......@@ -259,7 +259,7 @@ updateQryForm(\'' . $input['QUERY'] . '\');
}
$out .= '<pre>' . htmlspecialchars($qry) . '</pre></td></tr>';
$out .= '
<tr class="tableheader bgColor5">
<tr class="tableheader">
<th colspan="2">RAW SQL check</th>
</tr>
<tr>
......@@ -270,7 +270,7 @@ updateQryForm(\'' . $input['QUERY'] . '\');
</td>
</tr>';
if (!empty($input['RAWSQL'])) {
$out .= '<tr class="bgColor4">';
$out .= '<tr>';
$parseResult = $GLOBALS['TYPO3_DB']->SQLparser->parseSQL($input['RAWSQL']);
if (is_array($parseResult)) {
$newQuery = $GLOBALS['TYPO3_DB']->SQLparser->compileSQL($parseResult);
......
......@@ -610,7 +610,6 @@ abstract class ImportExport
}
}
}
$pInfo['class'] = $table == 'pages' ? 'bgColor4-20' : 'bgColor4';
$pInfo['type'] = 'record';
$pInfo['size'] = $record['size'];
$lines[] = $pInfo;
......@@ -641,7 +640,6 @@ abstract class ImportExport
}
$pInfo['ref'] = 'SOFTREF';
$pInfo['size'] = '';
$pInfo['class'] = 'bgColor3';
$pInfo['type'] = 'softref';
$pInfo['_softRefInfo'] = $info;
$pInfo['type'] = 'softref';
......@@ -718,12 +716,11 @@ abstract class ImportExport
$icon = '<span class="' . $iconClass . '" title="' . htmlspecialchars($pInfo['ref']) . '">' . $this->iconFactory->getIcon($iconName, Icon::SIZE_SMALL)->render() . '</span>';
$pInfo['preCode'] = $preCode . '&nbsp;&nbsp;&nbsp;&nbsp;' . $icon;
$pInfo['class'] = $htmlColorClass ?: 'bgColor3';
$pInfo['type'] = 'rel';
if (!$staticFixed || $this->showStaticRelations) {
$lines[] = $pInfo;
if (is_array($record) && is_array($record['rels'])) {
$this->addRelations($record['rels'], $lines, $preCode . '&nbsp;&nbsp;', array_merge($recurCheck, array($pInfo['ref'])), $htmlColorClass);
$this->addRelations($record['rels'], $lines, $preCode . '&nbsp;&nbsp;', array_merge($recurCheck, array($pInfo['ref'])));
}
}
}
......@@ -759,7 +756,6 @@ abstract class ImportExport
$pInfo['title'] = htmlspecialchars($fI['filename']);
$pInfo['ref'] = 'FILE';
$pInfo['size'] = $fI['filesize'];
$pInfo['class'] = $htmlColorClass ?: 'bgColor3';
$pInfo['type'] = 'file';
// If import mode and there is a non-RTE softreference, check the destination directory:
if ($this->mode === 'import' && $tokenID && !$fI['RTE_ORIG_ID']) {
......@@ -810,7 +806,6 @@ abstract class ImportExport
$pInfo['title'] = htmlspecialchars($fI['filename']) . ' <em>(Original)</em>';
$pInfo['ref'] = 'FILE';
$pInfo['size'] = $fI['filesize'];
$pInfo['class'] = $htmlColorClass ?: 'bgColor3';
$pInfo['type'] = 'file';
$lines[] = $pInfo;
unset($this->remainHeader['files'][$ID]);
......@@ -831,7 +826,6 @@ abstract class ImportExport
$pInfo['title'] = htmlspecialchars($fI['filename']) . ' <em>(Resource)</em>';
$pInfo['ref'] = 'FILE';
$pInfo['size'] = $fI['filesize'];
$pInfo['class'] = $htmlColorClass ?: 'bgColor3';
$pInfo['type'] = 'file';
$lines[] = $pInfo;
unset($this->remainHeader['files'][$extID]);
......@@ -1181,12 +1175,12 @@ abstract class ImportExport
foreach ($output as $fN => $state) {
$tRows[] = '
<tr>
<td class="bgColor5">' . $this->getLanguageService()->sL($GLOBALS['TCA'][$table]['columns'][$fN]['label'], true) . ' (' . htmlspecialchars($fN) . ')</td>
<td class="bgColor4">' . $state . '</td>
<td>' . $this->getLanguageService()->sL($GLOBALS['TCA'][$table]['columns'][$fN]['label'], true) . ' (' . htmlspecialchars($fN) . ')</td>
<td>' . $state . '</td>
</tr>
';
}
$output = '<table border="0" cellpadding="0" cellspacing="1">' . implode('', $tRows) . '</table>';
$output = '<table class="table table-striped table-hover">' . implode('', $tRows) . '</table>';
} else {
$output = 'Match';
}
......
......@@ -4,9 +4,9 @@
<f:if condition="{tsconfParts99}">
<f:then>
<div>
<table border="0" cellpadding="0" cellspacing="1">
<table class="table table-striped table-hover">
<f:for each="{lines}" as="line">
<tr><td nowrap="nowrap" class="bgColor5">
<tr><td nowrap="nowrap">
<f:if condition="{line.defaultPageTSconfig}">
<f:then>
<strong>{f:translate(key: 'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:editTSconfig_default')}</strong>
......@@ -15,8 +15,7 @@
<f:format.raw>{line.title}</f:format.raw>
</f:else>
</f:if></td></tr>
<tr><td nowrap="nowrap" class="bgColor4"><f:format.raw>{line.content}</f:format.raw><f:render partial="EditIcon" arguments="{editIcon: line.editIcon, editTitle: line.editTitle}" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td nowrap="nowrap"><f:format.raw>{line.content}</f:format.raw><f:render partial="EditIcon" arguments="{editIcon: line.editIcon, editTitle: line.editTitle}" /></td></tr>
</f:for>
</table><br />
<f:render partial="EditIcon" arguments="{editIcon: editIcon, editTitle: editTitle, editAll: 1}" />
......
......@@ -169,7 +169,7 @@ class FolderBrowser extends AbstractElementBrowser implements ElementBrowserInte
// Combine icon and folderpath:
$foldernameAndIcon = $aTag_alt . $icon . htmlspecialchars(GeneralUtility::fixed_lgd_cs($subFolder->getName(), $titleLength)) . $aTag_e;
$lines[] = '
<tr class="bgColor4">
<tr>
<td nowrap="nowrap">' . $foldernameAndIcon . '&nbsp;</td>
<td>' . $aTag . '<span title="' . $lang->getLL('addToList', true) . '">' . $this->iconFactory->getIcon('actions-edit-add', Icon::SIZE_SMALL)->render() . '</span>' . $aTag_e . '</td>
<td>&nbsp;</td>
......
......@@ -252,8 +252,8 @@ class UserElementsController
$A = array('<a href="#" onClick="' . $onClickEvent . 'return false;">', '</a>');
$subcats[$k2i] = '<tr>
<td></td>
<td class="bgColor4" valign="top">' . $A[0] . $logo . $A[1] . '</td>
<td class="bgColor4" valign="top">' . $A[0] . '<strong>' . $title . '</strong><br />' . $description . $A[1] . '</td>
<td>' . $A[0] . $logo . $A[1] . '</td>
<td>' . $A[0] . '<strong>' . $title . '</strong><br />' . $description . $A[1] . '</td>
</tr>';
}
}
......@@ -277,10 +277,10 @@ class UserElementsController
$uriBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Routing\UriBuilder::class);
$url = (string)$uriBuilder->buildUriFromRoute('rtehtmlarea_wizard_user_elements', array('OC_key' => ($openKeys[$openK] ? 'C|' : 'O|') . $openK));
$lines[] = '<tr><td colspan="3" class="bgColor5"><a href="#" title="' . $GLOBALS['LANG']->getLL('expand', true) . '" onClick="jumpToUrl(' . GeneralUtility::quoteJSvalue($url) . ');return false;"><i class="fa fa-caret-square-o-' . ($openKeys[$openK] ? 'left' : 'right') . '" title="' . $GLOBALS['LANG']->getLL('expand', true) . '"></i><strong>' . $title . '</strong></a></td></tr>';
$lines[] = '<tr><td colspan="3"><a href="#" title="' . $GLOBALS['LANG']->getLL('expand', true) . '" onClick="jumpToUrl(' . GeneralUtility::quoteJSvalue($url) . ');return false;"><i class="fa fa-caret-square-o-' . ($openKeys[$openK] ? 'left' : 'right') . '" title="' . $GLOBALS['LANG']->getLL('expand', true) . '"></i><strong>' . $title . '</strong></a></td></tr>';
$lines[] = $v;
}
$content .= '<table border="0" cellpadding="1" cellspacing="1">' . implode('', $lines) . '</table>';
$content .= '<table class="table table-striped table-hover">' . implode('', $lines) . '</table>';
}
$content .= $this->doc->endPage();
return $content;
......
......@@ -8501,29 +8501,6 @@ button.close {
.typo3-tstemplate-ceditor-control {
cursor: pointer;
}
.bgColor-20 {
background-color: #e3dfdb;
}
.bgColor2 {
background-color: #585858;
color: #ffffff;
}
.bgColor3 {
background-color: #f6f2e6;
}
.bgColor3-20 {
background-color: #f7f7f7;
}
.bgColor4 {
background-color: #f1f1f1;
color: #212424;
}
.bgColor4-20 {
background-color: #f8f9fa;
}
.bgColor5 {
background-color: #9b9b9b;
}
div#typo3-docbody {
bottom: 0;
overflow: auto;
......@@ -9592,9 +9569,6 @@ table#typo3-EBfiles tr td.c-wCell {
body#ext-rte-app-rte-select-image-php a {
text-decoration: none;
}
body#ext-rte-app-rte-select-image-php table tr td table tr.bgColor4 td a {
text-decoration: underline;
}
.slider {
display: inline-block;
position: relative;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment