From e235b90cf1ac2ef521d534d1db252364b193859f Mon Sep 17 00:00:00 2001 From: Benjamin Kott <benjamin.kott@wfp2.com> Date: Tue, 12 Apr 2016 22:04:54 +0200 Subject: [PATCH] [TASK] Remove obsolete constant editor CSS Releases: master Resolves: #75557 Change-Id: I556d536d590fd7ad2d531c2d803ee2b771155bb4 Reviewed-on: https://review.typo3.org/47633 Reviewed-by: Frank Naegler <frank.naegler@typo3.org> Tested-by: Frank Naegler <frank.naegler@typo3.org> Reviewed-by: Susanne Moog <typo3@susannemoog.de> Tested-by: Susanne Moog <typo3@susannemoog.de> --- .../Public/Less/TYPO3/_deprecated.less | 3 -- .../TypoScript/ExtendedTemplateService.php | 4 +- .../t3skin/Resources/Public/Css/backend.css | 3 -- .../TypoScriptTemplateModuleController.php | 2 - .../Resources/Private/Less/styles.less | 40 ------------------- .../Resources/Public/Css/styles.css | 30 -------------- 6 files changed, 2 insertions(+), 80 deletions(-) delete mode 100644 typo3/sysext/tstemplate/Resources/Private/Less/styles.less delete mode 100644 typo3/sysext/tstemplate/Resources/Public/Css/styles.css diff --git a/Build/Resources/Public/Less/TYPO3/_deprecated.less b/Build/Resources/Public/Less/TYPO3/_deprecated.less index 610d6abb9e73..79c647e8198a 100644 --- a/Build/Resources/Public/Less/TYPO3/_deprecated.less +++ b/Build/Resources/Public/Less/TYPO3/_deprecated.less @@ -9,9 +9,6 @@ color: #fff; } } -.typo3-tstemplate-ceditor-control { - cursor: pointer; -} // diff --git a/typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php b/typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php index 540836e29faf..f1c904e4be26 100644 --- a/typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php +++ b/typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php @@ -1159,7 +1159,7 @@ class ExtendedTemplateService extends TemplateService if ($subcat != $params['subcat_name']) { $subcat = $params['subcat_name']; $subcat_name = $params['subcat_name'] ? $this->subCategories[$params['subcat_name']][0] : 'Others'; - $output .= '<h3 class="typo3-tstemplate-ceditor-subcat">' . $subcat_name . '</h3>'; + $output .= '<h3>' . $subcat_name . '</h3>'; } $label = $this->getLanguageService()->sL($params['label']); $label_parts = explode(':', $label, 2); @@ -1299,7 +1299,7 @@ class ExtendedTemplateService extends TemplateService $checkboxID = 'check-' . $idName; // Handle type=color specially if ($typeDat['type'] === 'color' && substr($params['value'], 0, 2) != '{$') { - $appendedGroupAddon = '<span class="input-group-addon colorbox" id="colorbox-' . $idName . '" class="typo3-tstemplate-ceditor-colorblock" style="background-color:' . $params['value'] . ';"></span>'; + $appendedGroupAddon = '<span class="input-group-addon colorbox" id="colorbox-' . $idName . '" style="background-color:' . $params['value'] . ';"></span>'; } else { $appendedGroupAddon = ''; } diff --git a/typo3/sysext/t3skin/Resources/Public/Css/backend.css b/typo3/sysext/t3skin/Resources/Public/Css/backend.css index c917ff4790e5..d22624d936a1 100644 --- a/typo3/sysext/t3skin/Resources/Public/Css/backend.css +++ b/typo3/sysext/t3skin/Resources/Public/Css/backend.css @@ -8498,9 +8498,6 @@ button.close { .t3-row-header a:hover { color: #fff; } -.typo3-tstemplate-ceditor-control { - cursor: pointer; -} div#typo3-docbody { bottom: 0; overflow: auto; diff --git a/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php b/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php index 629105bb4cf9..3bd175609ee3 100755 --- a/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php +++ b/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php @@ -169,8 +169,6 @@ class TypoScriptTemplateModuleController extends BaseScriptClass $this->pageinfo = BackendUtility::readPageAccess($this->id, $this->perms_clause); $this->access = is_array($this->pageinfo); - $this->moduleTemplate->getPageRenderer()->addCssFile(ExtensionManagementUtility::extRelPath('tstemplate') . 'Resources/Public/Css/styles.css'); - $lang = $this->getLanguageService(); if ($this->id && $this->access) { diff --git a/typo3/sysext/tstemplate/Resources/Private/Less/styles.less b/typo3/sysext/tstemplate/Resources/Private/Less/styles.less deleted file mode 100644 index e87c8ba722a6..000000000000 --- a/typo3/sysext/tstemplate/Resources/Private/Less/styles.less +++ /dev/null @@ -1,40 +0,0 @@ -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/* - - - - - - - - - - - - - - - - - - - - - -Template > Constant Editor -- - - - - - - - - - - - - - - - - - - - - */ - -#ext-tstemplate-Modules-TsTemplate-index-php { - dl.typo3-tstemplate-ceditor-constant { - dt { - display: inline; - font-weight: bold; - margin-right: 5px; - } - - dd { - div.typo3-tstemplate-ceditor-row { - margin-top: 2px; - padding: 3px; - } - - div.typo3-tstemplate-ceditor-colorblock { - display: -moz-inline-box; - display: inline-block; - margin-left: 5px; - width: 50px; - } - } - } -} diff --git a/typo3/sysext/tstemplate/Resources/Public/Css/styles.css b/typo3/sysext/tstemplate/Resources/Public/Css/styles.css deleted file mode 100644 index bb9b75baf3b2..000000000000 --- a/typo3/sysext/tstemplate/Resources/Public/Css/styles.css +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ -/* - - - - - - - - - - - - - - - - - - - - - -Template > Constant Editor -- - - - - - - - - - - - - - - - - - - - - */ -#ext-tstemplate-Modules-TsTemplate-index-php dl.typo3-tstemplate-ceditor-constant dt { - display: inline; - font-weight: bold; - margin-right: 5px; -} -#ext-tstemplate-Modules-TsTemplate-index-php dl.typo3-tstemplate-ceditor-constant dd div.typo3-tstemplate-ceditor-row { - margin-top: 2px; - padding: 3px; -} -#ext-tstemplate-Modules-TsTemplate-index-php dl.typo3-tstemplate-ceditor-constant dd div.typo3-tstemplate-ceditor-colorblock { - display: -moz-inline-box; - display: inline-block; - margin-left: 5px; - width: 50px; -} -- GitLab