[TYPO3-core] RFC #14195: Reorganize the backend stylesheets

Steffen Gebert steffen at steffen-gebert.de
Sat Apr 24 20:08:19 CEST 2010


Hi,

This is a SVN patch request.

Type: Cleanup

Bugtracker references:
http://bugs.typo3.org/view.php?id=14195

Branches: trunk

Problem:
TYPO3 Backend loads first the styles for v3.x and afterwards t3skin, which  
overwrites the previously made definitions by the core. This su**s.

Solution:
* Remove all (not absolutely needed) CSS from core
* Add the now missing CSS to t3skin
* Restructure the CSS files and separate between structure definitions  
(height, width, position, etc.) and visual styles (color, border, …)

Notes:
(1) Complete reviews by reading might be very hard ;-)
Not many changes were made to PHP files, these could be reviewed also by  
reading.

(2) Find the files attached to the BT entry. Please apply it with --binary  
option for the patch command, as images are included. Please also use  
--force, as deleting some files fails (I think because of different $Id$  
strings). Also attached files-to-delete.txt for the core-dev who committs  
this patch and want's to delete the unused 0-byte files.

(3) Find some ideas and explanations of how-to-use in the "Backend  
Skinning Guide" doc_core_skinning [1]

(4) the backend without an installed skin is still usable to install a  
skin - that was our goal and not more

(5) #13131: Add API to add stylesheet directories
added $TBE_STYLES['stylesheetDirectories'], which is reverted by this  
patch.
Instead we use $TBE_STYLES['skins'] to include additional stylesheet  
directories

(6) #13823: Backend not printable if more than one page
added $TBE_STYLES['styleSheetFile_print'], which is reverted by this patch.
Instead the file is included like all the other files, but definitions  
placed inside @media print { .. }

(7) #13899: Add Viewport layout to BE
introduced a second <div id="typo3-toolbar">. This patch silently renames  
this to typo3-topbar (which then contains the toolbar); this has been  
agreed with Stefan

(8) This patch adds lots of CSS files, which have to be loaded by your  
browser. We have to find a solution for beta3, to concatenate (compress)  
them. This also leads to an unstyled backend in IE6 as it seems not to  
accept more than 31 CSS files [2].

(9) This was task of T3UXW09 Team 3, major credits go to Fabien Udriot.

Regards
Steffen

[1]  
https://svn.typo3.org/TYPO3v4/Documentation/doc_core_skinning/trunk/doc/manual.sxw
[2] http://thebignoob.com/posts/ie-stylesheet-limit/


More information about the TYPO3-team-core mailing list